**** BEGIN LOGGING AT Mon May 30 02:59:59 2016 May 30 07:28:07 <_Hodor> Hi all. I have BBB with debian jessie installed on it. I can ssh from ethernet and i can access internet too. I have also setup wifi with TL-WN727N. i can get IP and SSH from my Wifi dongle. after ssh I can ping to nameserver 8.8.8.8 and after few moments of connection my ssh hangs fro few seconds. when it resumes, i no longer ping to nameserver 8.8.8.8 May 30 07:28:25 <_Hodor> although ssh is still connected and i can do rest of all stuff on BBB May 30 07:29:25 <_Hodor> my question is. When causes my BBB to freeze?? and how can i keep my connection to name server consistent May 30 07:29:37 <_Hodor> any lead to positive direction is highly appreciated May 30 07:31:30 _Hodor: sounds like a confused routing table. How do you set up your wifi dongle? May 30 07:33:33 <_Hodor> through /etc/network/interfaces i set my wlan to auto May 30 07:33:50 <_Hodor> made wlan to dhcp May 30 07:34:01 <_Hodor> provided ssid and its passowrd May 30 08:04:19 hi all May 30 08:05:45 hello May 30 08:06:02 hi May 30 08:07:59 how to reset bbb to default? May 30 08:08:37 i have on bbb i flash emmc and now ssh doesn't work May 30 08:08:42 need to boot from sd May 30 08:09:46 any idea? May 30 08:12:21 imm? May 30 08:13:04 adevi: if you need to boot on uSD. You insert your uSD, push the boot button on the bbb and you plug the switching adapter May 30 08:14:10 adevi: of course I assume you flash your uSD with a OS image May 30 08:17:49 you mean keep pushed boot button? May 30 08:17:58 until leds start May 30 08:20:35 adevi: yep, I mean keep pushing the boot button while you power on the bbb. May 30 08:21:41 adevi: need a little dexterity ;) May 30 08:21:57 I did all this the leds starts May 30 08:21:58 ok May 30 08:22:18 now I want to connect to the board May 30 08:22:46 I assume that the board has ip 192.168.7.2 May 30 08:23:22 but I cannot ping it May 30 08:23:23 It takes time to flash the bbb May 30 08:23:31 and here is the issue May 30 08:23:34 around 20 min May 30 08:23:56 if the leds continue to blink I assume that the board is working and the OS is loaded May 30 08:24:25 I dont wanna to flash the bb May 30 08:24:31 I want to boot from sd card May 30 08:24:50 guys, please pay a bit of attention May 30 08:25:02 adevi: ok I first didn't understand your problem May 30 08:25:08 just want to boot May 30 08:25:25 from microSD May 30 08:25:29 not from eMMC May 30 08:26:07 adevi: your first question was how to reset the beaglebone... May 30 08:26:24 adevi: to boot from sd May 30 08:26:31 exactly May 30 08:26:38 I just want to boot from SD May 30 08:26:44 not to flash eMMC May 30 08:28:13 adevi: I know 2 options: have OS image which is bootable from the uSD (normally it's mentionned in the name of image file) May 30 08:29:13 adevi: option 2: see /boot/uEnv.txt to change the way of booting May 30 08:30:54 adevi: But you can't ssh your beagle right ? May 30 08:31:55 exacty May 30 08:32:05 so I write the image May 30 08:32:16 ping to 192.168.7.2 is out May 30 08:32:19 What's the image on your bbb ? May 30 08:32:26 sorry on the uSD May 30 08:32:28 ? May 30 08:32:34 from beagleboard.org May 30 08:32:48 written with windows utilities May 30 08:33:09 could you be more precise please May 30 08:33:21 Name , version ? May 30 08:34:36 bone-debian-7.9-lxde-4gb-armhf-2015-11-12-4gb May 30 08:34:41 .img May 30 08:35:07 but as leds are blinking I assume that the os is loaded and the bbb is running May 30 08:35:50 is any timeout during the ssh for the first time ? May 30 08:35:55 parhaps generate keyes ? May 30 08:36:00 keys? May 30 08:36:13 because ping can be filtered from firewall May 30 08:36:48 I ssh again and waiting for reply May 30 08:36:54 Normally there is a pop when you connect the beaglebone by ssh ? Did you get that ? May 30 08:37:14 a pop? May 30 08:37:29 what do you mean? May 30 08:38:27 The first time you use ssh on the bbb, you have a warning window about security and you have to check YES May 30 08:38:41 I use macos May 30 08:39:06 I use ssh -v still nothing May 30 08:41:07 Ok, I'm not the most skillful guy on the channel but advice: next time explain your issue in detail and what equipment do you use May 30 08:41:28 use puTTY May 30 08:41:56 I have terminal May 30 08:42:04 putty is for windows May 30 08:42:31 let me ask you something else May 30 08:42:42 perhaps will be something you encountered May 30 08:42:58 if the bbb was flashes to eMMC May 30 08:43:13 is normal to boot without microsd May 30 08:43:25 how can I boot again from microsd May 30 08:43:37 or how can I delete the eMMC ? May 30 08:43:44 this is unclear to me May 30 08:44:15 How do you know the image you mentionned is a micro-sD image. see http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Jessie_Snapshot_lxqt May 30 08:45:47 I know the page May 30 08:46:05 but was proven that writting the image from windows is best method May 30 08:46:14 instead of using dd or else May 30 08:46:46 what about serial connection? May 30 08:46:55 can you tell me how to ? May 30 08:47:03 using serial driver first May 30 08:48:20 perhaps putty from windows using serial settings? May 30 08:52:02 I use putty over usb. I set ip adress and port. That's all for me ... May 30 08:52:14 Did you see that screen http://tinyurl.com/jk8h98z May 30 08:53:17 the problems appear to be booting from internal emmc May 30 08:53:56 I have not idea how to disable and make it from microsd May 30 08:54:58 That's why I send you the link elinux to download the last debian image SDcard May 30 08:58:12 I did it, but looks that the bbb is not booting from micro May 30 08:58:16 but form emmc May 30 09:00:06 what is the s2 button? May 30 09:01:23 adevi: boot button May 30 09:02:45 adevi: ok, so you're sure you have a sdcard booting linux image. Did you ever ssh to the bbb ? May 30 09:04:43 was working but now is not May 30 09:04:58 this is quite strange as ssh setting cannot be changed May 30 09:07:10 adevi: could you connect your beaglebone by your internet browser May 30 09:08:35 telnet 192.168.7.2 80 Trying 192.168.7.2... May 30 09:08:44 no May 30 09:10:03 adevi: what's the command line you use in terminal ? May 30 09:11:08 telnet 192.168.7.2 80 May 30 09:12:34 adevi: did you try sudo ssh root@192.168.7.2 ? May 30 09:14:35 dirkk thanks buddy, I will look forward to solve this May 30 09:14:41 by for now May 30 10:21:40 dirkk: why would you ever ssh as root? May 30 10:21:55 (I'm referring to the "sudo", not the "root@") May 30 10:44:59 zmatt: it's a command on the console. all commands on the console need sudo May 30 10:46:01 lol May 30 11:04:14 <_Hodor> Hi all.... I have a BBB with debian jessie. I have connected wifi dongle with BBB and i can ssh from my wifi. Issue is i am unable to ping to 8.8.8.8. I have tried many workarounds from google but nothing is promising. I am out of ideas May 30 11:04:32 <_Hodor> any suggestion or ponter to right direction will be helpful to me May 30 11:05:14 <_Hodor> my wifi dongle is TP link's TL-WN727N May 30 11:05:17 can you check the routing table (ip route) May 30 11:05:46 if you can reach the bbb but it can't reach the internet then probably there's something messed up in its network settings May 30 11:07:03 <_Hodor> ok i am going to post my routing table May 30 11:07:12 use pastebin or such May 30 11:09:18 <_Hodor> One thing worth mention is. that i updated rc.local file and with that i can ping to 8.8.8.8 when it boots, but later it hangs for a moment and than it never pings to google or 8.8.8.8 May 30 11:10:40 <_Hodor> http://pastebin.com/xPjQmjpz May 30 11:10:48 <_Hodor> here is my routing table May 30 11:11:28 ok, so it appears it also has an ethernet connection (or at least it thinks it does) and is preferring that over wifi May 30 11:11:39 <_Hodor> ok May 30 11:12:31 <_Hodor> yes my ping result always shows ethernet's ip May 30 11:12:40 <_Hodor> with message server unreachable May 30 11:13:32 unfortunately I don't know anything about the network manager they use by default (connman) or how to reconfigure it to give a higher priority to wifi May 30 11:14:40 but why do you have a LAN that's handing out a default route if that default route doesn't actually lead to the internet? May 30 11:15:17 *a DHCP server on your LAN May 30 11:16:14 <_Hodor> well previously we set internet by using ethernet than we had to move to wifi May 30 11:16:29 <_Hodor> since than it is keeping ethernet is default May 30 11:16:30 <_Hodor> thanks May 30 11:16:38 <_Hodor> i will look on changing default connection May 30 11:17:54 also if possible the gateway on your ethernet should be changed to avoid handing out a default gateway May 30 11:30:48 <_Hodor> just added default gateway. It added another line but this time with wlan0 although default eth0 is still there May 30 11:31:03 <_Hodor> i think i have to update the default instead of adding a new one May 30 11:32:56 don't try to manually override settings when you have a network manager active, it generally ends up in hopeless fights. look up how to configure connman properly (or switch to a different network manager if you prefer) May 30 11:35:24 it may be needed to configure ethernet manually instead of using dhcp, since basically your dhcp server is basically lying to the bbb about offering internet connectivity May 30 11:36:53 that connman prefers ethernet over wifi when both are offering a default gateway is not really surprising, that makes perfect sense May 30 15:15:06 tbr: I'm using BBB rev C May 30 15:15:16 zmatt: it does power off with 1-2 seconds May 30 15:15:38 lindi-: which manufacturer CCo or E14? May 30 15:17:10 tbr: http://www.ebay.com/itm/BeagleBone-Black-Development-AM335X-Evaluation-Board-512MB-DDR3-RAM-HD-2GB-Rev-C-/311577978708 says Circuitco so I guess CCo? May 30 15:19:09 2GB eMMC? that can't be a revC then May 30 15:19:21 hello all May 30 15:19:32 please help me with this one May 30 15:19:33 tbr: oh, then the seller is misleading me :/ May 30 15:19:49 the image written on sd for boot contains x server? May 30 15:19:57 I need to set up a vac May 30 15:19:57 tbr: but it does actually have 4 GB space in eMMC May 30 15:20:01 lindi-: inspect the board, does it have stickers or other markings about the revision? May 30 15:20:06 vnc May 30 15:20:10 tbr: the board is at different office right now May 30 15:20:25 k May 30 15:20:30 tbr: I have dmesg output if that helps? May 30 15:20:32 adevi: which image? May 30 15:20:40 lindi-: I don't think you can tell from that May 30 15:20:48 I'm referring to img file debian May 30 15:21:29 adevi: which one of them? May 30 15:21:36 anyone? May 30 15:21:40 tbr: "mmcblk0: mmc1:0001 MMC04G 3.60 GiB" so it's not really 2GB May 30 15:21:45 there are 3-5 different varieties of the images alone... May 30 15:21:57 lindi-: ok, so the ebay listing is just inaccurate May 30 15:22:00 tbr: yeah May 30 15:22:17 I'm talking about debian 7. bb version May 30 15:22:48 https://debian.beagleboard.org/images/bone-debian-7.9-lxde-4gb-armhf-2015-11-12-4gb.img.xz May 30 15:22:52 tbr: are there multiple revisions with a 4 GB eMMC? May 30 15:23:14 lindi-: there is one by CircuitCo and one by Element14 May 30 15:23:46 tbr: ok May 30 15:23:48 but neither should have that problem May 30 15:23:58 especially not with a current image May 30 15:24:00 tbr: I'll try to get a photo of the actual board May 30 15:27:14 if anyone knows, to vnc the bbb xserver is needed? May 30 15:27:45 what would be the best x server for bbb? thanks May 30 15:29:00 adevi: the question is if you want to run a fullblown xserver on the HDMI framebuffer or if you want VNC only May 30 15:33:13 I need to run matplotlib May 30 15:33:22 so what is the recommendation May 30 15:33:23 ? May 30 15:34:52 are you going to use the HDMI output at all? May 30 15:34:52 I sow that xlde is installed May 30 15:35:11 no hdmi May 30 15:35:24 most likely a ulcd May 30 15:35:54 then you'll likely want to disable that xserver and just start an independent vnc server May 30 15:37:38 why disable xlde? May 30 15:45:23 adevi: because that just costs you additional CPU cycles? May 30 15:54:08 tbr: what is your proposal to run python graph in vac? May 30 15:54:11 tbr: what is your proposal to run python graph in vac? May 30 15:54:16 tbr: what is your proposal to run python graph in vnc? May 30 15:54:26 damn, spelling .. May 30 15:55:02 adevi: I have no idea what you are trying to do, sorry. May 30 17:13:02 tbr: I'm now looking at the PCB, should it say "rev C" somewhere? May 30 17:14:09 does it have the dog logo? May 30 17:15:01 yep May 30 17:15:23 there's "dog + beaglebone" and "dog + beagleboard.org" May 30 17:17:32 sounds like possibly a circuitco board May 30 17:17:43 ok May 30 17:18:03 anyway, did you try it with an up to date kernel? May 30 17:18:14 ah, the paper even says "It is manufactured in Richardson, TX by Circiotco, LLC" May 30 17:18:20 no I didn't change the kernel yet May 30 17:18:33 you should try a recent image May 30 17:18:50 sure, or maybe also test if this occurs already in the bootloader? May 30 17:18:52 http://elinux.org/Beagleboard:BeagleBoneBlack_Debian May 30 17:19:12 I wouldn't trust on U-boot setting things up enough May 30 17:19:34 sure but if u-boot survices this then I know it is something that can be solved with software? May 30 17:19:59 http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Jessie_Snapshot_iot if you don't need HDMI, this should work well May 30 17:20:22 no need for HDMI in my case May 30 17:20:36 I'm only interested in this USB proxy scenario May 30 17:21:19 lindi-: the delay suggests it's still exactly the problem I described May 30 17:21:36 zmatt: hmm May 30 17:22:35 the pmic reports the usb power status change, the driver misinterprets this and reports a power button press to userspace, which proceeds to shutdown May 30 17:23:33 ok but I should be able to catch that by modifying inittab? May 30 17:24:00 ehh, is inittab really still consulted for anything? May 30 17:24:05 not sure :) May 30 17:26:42 tbh I'm not sure which userspace config is responsible for acting on the event... my bbb images don't react to pmic events I think May 30 17:27:33 although I also haven't recently tested that since I usually use a custom compiled kernel which omits the driver May 30 17:29:05 should hitting the power button have the same effect? May 30 17:29:11 yes May 30 17:29:20 ok, I'll compare May 30 17:30:24 * tbr just recently switched hence and forth on a BBW running debian from about a year ago May 30 17:30:26 uh oh... http://www.buienradar.nl/ May 30 17:30:57 zmatt: I held power button down for 2 seconds and nothing seemed to happen at least with the usbproxy image May 30 17:31:11 zmatt: looks like weather is happening :) May 30 17:31:44 tbr: yes and it sounds like it's starting to happen nearby May 30 17:31:49 zmatt: I connected the USB port and could see that the system stops responding after 1-2 seconds (had while true; do date; sleep 0.1; done running for easy measurement) May 30 17:32:09 lindi-: do you have access to debug UART? May 30 17:32:20 not right now but I could connect some wires I guess May 30 17:33:03 3.3V Vref preferred. 5V should work too (the buffers sure are sized for it) May 30 17:33:04 lindi-: boot it up again and check logs (journalctl -b-1) assuming the system is configured to keep them persistent (this is default), or as tbr suggested checking the debug console would be useful as well May 30 17:33:28 the usbproxy image is stil debian 7 with sysvinit. I need to replicate this with the factory image or newer image May 30 17:33:50 I think even rcn's wheezy images use systemd May 30 17:33:58 yes, I pointed you to the elinux page May 30 17:34:06 zmatt: dpkg -S /sbin/init said sysvinit May 30 17:34:20 ok so it's a fairly odd images May 30 17:34:22 *image May 30 17:34:25 yeah May 30 17:34:49 tbh I never use anything older then stretch myself... May 30 17:39:36 I'll write bone-debian-8.4-iot-armhf-2016-05-13-4gb.img.xz and see if that behaves any differently May 30 17:39:53 don't forget to unxz :) May 30 17:40:26 of course not :) May 30 17:40:49 "nc -l -p 1234 > /dev/mmcblk1" on the BBB and "pv bone-debian-8.4-iot-armhf-2016-05-13-4gb.img.xz | unxz | nc 192.168.1.82 1234" on my laptop May 30 17:43:21 what the hell is pv ? May 30 17:44:04 it is a neat tool May 30 17:44:13 does throughput and such May 30 17:44:26 ok May 30 17:44:52 zmatt: "pv - monitor the progress of data through a pipe" May 30 17:44:59 yeah I just found it May 30 17:45:03 quite handy May 30 17:52:05 there's another one that's also quite handy, but I can't remember the name. It attaches to a named process, finds its file operation and prints out progress for it. Works with cp etc May 30 18:04:32 weather is now unambiguously here :/ May 30 18:05:15 here it's just annoyingly warm - room temperature at 27 °C May 30 18:06:23 it's annoyingly warm here too... tends to make my brain go into thermal shutdown May 30 19:32:54 is bone-debian-8.4-iot-armhf-2016-05-13-4gb.img.xz supposed to listen for SSH? I can't find any open ports with nmap May 30 19:33:09 it does reply to ping though so it is alive May 30 19:40:06 it should also expose that CDC-ACM serial May 30 21:14:12 hi, is it possible to use mini-USB as OTG host on BBB? May 30 21:14:39 and if so, is it hard to achieve? May 30 21:16:40 maciejjo: it is possible but requires some creativity May 30 21:16:57 does it require hw mod? May 30 21:17:29 well, you need to feed the port and the connected device 5V from somewhere May 30 21:19:29 hotplugging is also probably not going to work, in fact I'd suggest compiling a kernel where the relevant usb drivers are modules to be able to load them after carefully setting things up May 30 21:19:51 but maybe I'm overly pessimistic there May 30 21:20:54 the 5v is a hard requirement though... the mini-B port is definitely not going to provide it yet both the am335x and the connected usb device absolutely require sensing VBUS May 30 21:21:17 hotplugging as in hotplugging of usb devices on this port? May 30 21:21:50 zmatt: if you run it into e.g. a powered hub or device, then you don't need Vusb May 30 21:21:54 yes, though now that I think of it I'm not really sure why I saw an obstacle May 30 21:21:58 tbr: wrong May 30 21:22:21 zmatt: I've done that on OMAP3 successfully May 30 21:22:24 tbr: an USB device is forbidden to signal its presence by pulling up D+/D- (depending on speed) unless VBUS is present May 30 21:22:55 you can do it by connecting a hub chip and lying about vbus to it May 30 21:23:00 zmatt: and USB hubs that feed back Vusb to the host and thus violate the spec don't exist. right. May 30 21:23:17 right, you'd need to find a spec-violating hub May 30 21:23:42 I'm sure they do exist, just like male A - male A cables exist May 30 21:23:45 my point was: it is possible, you need to try it out. May 30 21:24:00 spec compliance went out the door at the first step May 30 21:24:41 if i had a hub I wouldn't need this port in the first place May 30 21:25:06 what are you trying to connect to it? May 30 21:25:08 well, not entirely... you may be able to make it a spec-compliant host post as long as you consider the slightly creative cable you'd need to be part of the BBB's internal details :P May 30 21:25:12 also hubs are cheap May 30 21:25:20 webcam and wifi module May 30 21:25:30 ah, two power-hungry devices May 30 21:25:46 in case of wifi probably also bursty May 30 21:27:33 is this a problem with this usb-mini port? May 30 21:28:31 wiring things up and adapters and stuff is going to be more expensive than a powered hub May 30 21:28:39 not specifically, like I said you need to grab 5v from somewhere anyway, regardless of whether the device draws little or much power (or even no power, as in spec-compliant self-powered devices) May 30 21:29:44 tbr: powered hub is a little problematic, as this is battery-powered robot May 30 21:30:03 well you need 5V for the BBB anyway May 30 21:30:17 and the usb devices draw more power than the hub May 30 21:31:02 also, the hub hopefully contains decent caps to stabilize the output power, something entirely missing on the BBB May 30 21:31:10 (yes, that's a design mistake) May 30 21:32:28 thinking of it, I still have one free USB port on battery pack, maybe I could use this to power the hub May 30 21:44:33 I found a powered hub lying around, works OK with two devices May 30 21:46:56 probably will do the job May 30 22:08:26 there ya go, not as much fun as hacking the device port into a second host port but certainly simpler :) May 30 22:14:41 lol... https://www.varusteleka.com/en/product/dutch-body-bag-surplus/33522 May 30 22:14:50 "We recommend also purchasing" .. "East Bloc doctor's giant pliers, menacing, surplus", "Mil-Tec Pocket chain saw, 73 cm" **** ENDING LOGGING AT Tue May 31 02:59:58 2016