**** BEGIN LOGGING AT Fri Nov 13 02:59:59 2015 Nov 13 03:17:35 ums? im not sure what that is Nov 13 03:17:45 usb mass storage mode Nov 13 03:18:03 aah. yeah it wont go into that Nov 13 03:18:04 it's an u-boot command that makes the BBB appear like a USB stick Nov 13 03:18:12 im pretty sure that since my uuid in the fstab is wrong Nov 13 03:18:16 it cant find the filesystem Nov 13 03:18:30 so even though it wants an emergency console, theres nothing there to serve a tty Nov 13 03:19:02 is there a hardware io that forces ums on? Nov 13 03:19:07 jump a pin high? Nov 13 03:21:26 hey. Nov 13 03:21:30 it seems my connection at home dropped Nov 13 03:21:39 it happens :) Nov 13 03:21:55 is there a hardware io that i can bring high to force ums on/ Nov 13 03:21:57 ? Nov 13 03:21:59 anyway, as I was saying, ums is great for fixing small problems like an fstab edit Nov 13 03:22:02 but Nov 13 03:22:10 you're using windows, which doesn't understand ext4 filesystems Nov 13 03:22:17 i do have a linux box Nov 13 03:22:19 oh Nov 13 03:22:24 but either way Nov 13 03:22:31 that still requires a working console Nov 13 03:22:43 and then you may as well fix it using initramfs Nov 13 03:23:06 im all for fixing it. how would i use initramfs? Nov 13 03:23:14 new sd? Nov 13 03:23:17 have you checked yet whether hardware handshake (aka hardware flow control) is disabled Nov 13 03:23:25 no sd involved, your serial cable needs to work Nov 13 03:23:29 gotcha Nov 13 03:23:31 let me check Nov 13 03:23:51 and hw flow control is suspect #1 for a non-responsive console Nov 13 03:24:21 flow control is set to none Nov 13 03:24:40 is that how it should be? Nov 13 03:24:43 yes Nov 13 03:24:57 but it doesn't respond at all to you typing Nov 13 03:24:58 ? Nov 13 03:25:00 hah, darn. Nov 13 03:25:19 no... but if i have a usb keyboard plugged in i can hit ctrl alt del and it reboots Nov 13 03:25:38 it wont respont to hit any keep to abort auto booting Nov 13 03:25:45 key* Nov 13 03:25:48 usb keyboard won't work in u-boot Nov 13 03:25:55 but you're right it does work in initramfs Nov 13 03:26:11 im using putty as my terminal client Nov 13 03:26:28 anything that might bork up the serial experience with putty? Nov 13 03:26:34 no idea Nov 13 03:26:46 try teraterm Nov 13 03:26:50 k Nov 13 03:26:51 usually if settings are wrong then you also don't see anything (or just garbage) Nov 13 03:26:55 but Nov 13 03:26:57 you have output Nov 13 03:26:59 and a keyboard Nov 13 03:28:32 hmm, wait, what exactly is the output you get from initramfs? can you put it in pastebin ? Nov 13 03:29:23 sure if you can tell me what pastebin is Nov 13 03:29:33 sorry. total noob with pastebin Nov 13 03:29:40 pastebin.com Nov 13 03:29:50 k Nov 13 03:30:03 a way to show people chunks of text Nov 13 03:30:10 there are many similar services, any will do Nov 13 03:30:32 (never copy/paste anything more than one or two lines straight into the irc channel) Nov 13 03:31:43 gotcha. slamming is frowned upon :) Nov 13 03:33:11 http://pastebin.com/x1ngc7SQ Nov 13 03:34:13 hey, my home connection hasn't ping-timeouted... Nov 13 03:34:20 woo, it's up again Nov 13 03:34:46 lol Nov 13 03:34:47 http://pastebin.com/x1ngc7SQ Nov 13 03:34:52 hope your still here Nov 13 03:34:58 I never left Nov 13 03:35:13 ah now i noticed the - Nov 13 03:35:34 so it seems it actually manages to find the rootfs with that UUID Nov 13 03:36:37 wait, is that SD card still inserted? if so, what happens if you try to boot without it ? Nov 13 03:36:50 i shall try Nov 13 03:37:21 same uuid Nov 13 03:37:44 and this uuid differs from my backup file's uuid Nov 13 03:37:47 still systemd-fsck saying "rootfs: clean" ? Nov 13 03:37:49 ok Nov 13 03:37:55 yes clean Nov 13 03:38:12 so it can find your rootfs just fine, I also see no error (other than some unimportant noise) Nov 13 03:38:31 most likely it's the "ro" in the cmdline that's making it enter emergency mode Nov 13 03:38:48 you tried pressing control-D ? Nov 13 03:39:23 i did Nov 13 03:39:45 what happens then? Nov 13 03:39:53 nothing at all Nov 13 03:40:07 ive tried entereing the sysctl default and hitting enter Nov 13 03:40:25 i see my terminal client echo my keypresses, but no responses from the bb Nov 13 03:40:38 hmm Nov 13 03:40:49 we really need to get into u-boot Nov 13 03:40:54 what serial cable are you using? Nov 13 03:41:01 the one for the raspberry pi Nov 13 03:41:04 have led's on the serial/usb cable? Nov 13 03:41:14 (red lead unconnected) Nov 13 03:41:25 you sure you connected the leads right? Nov 13 03:41:25 nope... no leds Nov 13 03:41:32 i am sure, yes Nov 13 03:41:42 i can try reversing my tx rx lines if you like Nov 13 03:41:47 no, since you have output Nov 13 03:41:55 my thoughts as well Nov 13 03:41:57 so that one is connected right Nov 13 03:42:08 still leaves enough options for wrong connections though Nov 13 03:42:12 so the ground is connected right too. Nov 13 03:42:17 yep Nov 13 03:42:27 only one unconnected is the 5v supply Nov 13 03:42:34 rts/cts/5v are not connected on the BBB side anyway Nov 13 03:42:49 thats a good thing. ive let enough smoke out of my last one. Nov 13 03:42:57 using pin 1/4/5 ? Nov 13 03:42:57 like to keep it inside this one... Nov 13 03:43:08 correct uavcam Nov 13 03:43:47 cables works at other devices? Nov 13 03:43:47 btw instead of putty you can use 'screen' on linux Nov 13 03:44:09 this is true... Nov 13 03:44:15 ok, another possibility Nov 13 03:44:21 e.g. screen /dev/ttyUSB0 115200,clocal,-crtscts,-ixon,-ixany Nov 13 03:44:43 if i connect this setup to my linux box, would the uart flas instructions floating around the internet (possibly) work? Nov 13 03:45:00 flash* Nov 13 03:45:32 no idea, but if you only borked one file then reflashing it seems overkill Nov 13 03:45:56 if you have a working serial connection, you can use ums Nov 13 03:46:05 ah whats 20 minutes? :) id be happy if it just worked Nov 13 03:46:23 20 minutes? via uart? I doubt that very much Nov 13 03:47:54 hm. seems like im dummied. Nov 13 03:48:16 but try to get into u-boot by pressing any key during the brief window where it says so Nov 13 03:48:25 i will try again Nov 13 03:48:48 no effect Nov 13 03:49:45 you're really, *really* sure you connected it right? since really the only way this can't work is if your cable is broken or you plugged it in wrong Nov 13 03:50:11 no effect on the any key Nov 13 03:50:24 tried reversing the tx rx lines, hah Nov 13 03:50:27 that was some output Nov 13 03:50:36 (btw, I quickly did the math, the max theoretical transfer rate via uart is 360 KB/s) Nov 13 03:50:46 dear god Nov 13 03:51:16 except your serial cable probably wouldn't support it anyway, if it worked at all Nov 13 03:51:22 reversing tx an rx --> to same output?? Nov 13 03:51:26 im still stymied that the board wont detect the flasher on the SD Nov 13 03:51:36 uvacam no, many many symbols. Nov 13 03:51:38 lukesaber: sounds like a misflashed SD Nov 13 03:52:24 uavcam: pull-up on cable + pull-down on BBB = recipe for randomness Nov 13 03:52:27 then im going to go buy a new SD. this one is from radio shack, and id be happier telling myself that at least i ruled out the sd card Nov 13 03:52:38 lukesaber: have you tried reflashing the card first? Nov 13 03:52:44 absolutely Nov 13 03:52:54 with multiple images, flasher, and non flasher Nov 13 03:53:14 tried dropping the image, and using the flash tool reccomended Nov 13 03:53:32 yeah. i read same utput not some output :D Nov 13 03:53:33 BBBlfs is also an option Nov 13 03:53:44 lfs? Nov 13 03:54:23 https://github.com/ungureanuvladvictor/BBBlfs Nov 13 03:54:43 linux from scratch Nov 13 03:54:44 don't use the included scripts though, they're garbage Nov 13 03:54:46 no Nov 13 03:55:00 read the description Nov 13 03:55:32 remember I mentioned usb in the list of boot devices Nov 13 03:55:50 you did Nov 13 03:56:00 that actually looks like a great option!! Nov 13 03:56:30 if you connect the BBB via usb to a linux system in that mode, you'll see it appears as a network device (network manager will try to connect to it. it will fail, but it's actually important it tries) Nov 13 03:57:00 BBBlfs can then boot a tiny linux system on it that makes the eMMC appear as a block device (like an usb stick) Nov 13 03:57:18 and then i can check out the goofs i goofed. Nov 13 03:57:19 same as u-boot's ums, except 1. you don't need console access (though the output is funny to see) Nov 13 03:57:38 2. it's fast enough to do complete reflashing, unlike u-boot's ums which is pig slow Nov 13 03:57:40 * GenTooMan hides from the stick of BBB. Nov 13 03:57:49 and yes you can Nov 13 03:57:58 excellent. Nov 13 03:58:05 so, only follow the build instructions from BBBlfws Nov 13 03:58:05 thanks zmatt! Nov 13 03:58:16 never run its script Nov 13 03:58:27 oh Nov 13 03:58:36 instead run the tool it compiled called "usb_flasher" (yes, its name is badly chosen) Nov 13 03:58:42 another good point lol Nov 13 03:59:04 that's the core part of BBBlfs which boots the BBB into UMS mode Nov 13 03:59:10 that's all you need really Nov 13 03:59:29 the flash script contains wrong assumptions and absolutely zero error-checking Nov 13 03:59:46 so i build my dependencies, and run the usb_flasher and hopefully im in Nov 13 04:00:00 gotcha. wrong ttys etc Nov 13 04:00:07 more like wrong partition Nov 13 04:00:15 :) sounds familiar. Nov 13 04:00:36 it assumes the image you want to flash has 2 partitions, one FAT boot partition and one ext4 rootfs Nov 13 04:00:39 that used to be true Nov 13 04:00:51 current images no longer have a separate boot partition Nov 13 04:01:14 but the script will still try to act on partition 2 and it doesn't notice all the failures since, no error checking Nov 13 04:01:39 interestingly enough, the sdcard flashers still have two partitions. lol Nov 13 04:01:44 they have to Nov 13 04:01:55 for the usb boot? Nov 13 04:01:56 the no-FAT boot method only works for eMMC Nov 13 04:02:01 not for SD cards Nov 13 04:02:05 gotcha Nov 13 04:02:35 but try to fix first, saves you a reflash Nov 13 04:02:41 so use the lo FAT method. ... I hate the fact that the FAT still exists after decades of better options oh well. Nov 13 04:02:59 GenTooMan: it's gone in current eMMC images Nov 13 04:03:04 agree. if its a uuid problem then i can fix that up, otherwise... flash. Nov 13 04:03:09 again, thank you very much! Nov 13 04:03:14 lukesaber: the "ro" doesn't belong in the cmdline either Nov 13 04:03:15 It's not gone in the SD cards though. Nov 13 04:03:26 GenTooMan: it *can't* .. bootROM requires is Nov 13 04:03:26 zmatt ill have to figure out that one as well Nov 13 04:03:34 *it Nov 13 04:03:52 GenTooMan: it will not even attempt the no-FAT method if it detects an SD card Nov 13 04:03:58 have a good night! im off to bed Nov 13 04:04:03 thanks for your help zmatt Nov 13 04:04:05 zmatt Le sigh Nov 13 04:04:20 ill let you know how it worked out. :) Nov 13 04:04:41 GenTooMan: worse still, eMMC has a dedicated boot mode that's reeaaaly easy to use Nov 13 04:04:48 but bootROM doesn't use that either Nov 13 04:05:14 (that would be fetched from one of the mmcblk0boot[01] partitions) Nov 13 04:06:52 the protocol: pull CMD low, start clocking, when the card is done with internal init it starts sending data blocks from the boot partition until you let CMD go high again to indicate you've had enough (or you hit the end of the boot partition) Nov 13 04:07:12 how's that for easy Nov 13 04:08:19 but no, it goes through the motions of normal card initialization and probes four fixed locations (not in the boot partitions) for their custom header Nov 13 04:11:37 Yeah they have some new boot thing mode for NOR flash. Still the biggest available nor flash is 2G Nov 13 04:12:00 nor flash is a very different story Nov 13 04:12:06 that supports xip Nov 13 04:12:11 always has, nothing new about it Nov 13 04:13:15 the most annoying thing is spansion removing the 4K sector mode on their Nor flash. Makes it useless to use it as part of a FAT system. Nov 13 04:16:41 I am not sure why they made the XIP mode. I am also not certain why they went with 24 bit addressing instead of 32bit address modes. That's the same stupid idea that gave us the Y2K bug. Nov 13 04:19:30 Enough whining from me. Sleep time :D Nov 13 04:20:49 I don't immediately see anything about 24-bit Nov 13 04:21:09 they say max size is 128 MB... that's bigger than 24-bit addressing Nov 13 04:23:03 32-bit addressing is impossible anyhow, max is 28-bit Nov 13 08:57:49 Hi, I want to communicate other board with rs-232. Can I using rx,tx and gnd to other boards RS232 Nov 13 08:57:51 _ Nov 13 08:58:35 <_av500_> yes and no Nov 13 08:58:40 <_av500_> you have to take care about levels Nov 13 08:58:47 levels? Nov 13 08:58:51 <_av500_> voltage levels Nov 13 08:59:01 <_av500_> BBB has 0/3.3V on the uarts Nov 13 08:59:03 BBB 3.3V I think Nov 13 08:59:14 <_av500_> real RS"§" is up to +/-12V Nov 13 08:59:17 <_av500_> RS232 Nov 13 08:59:35 <_av500_> so you need to know at what voltages the other board operates Nov 13 09:00:13 other board using 3.3V Nov 13 09:02:49 my friend add RS232 port for communication Nov 13 09:04:01 If I buy TTL to RS232. It can be solving my communication problem right ? Nov 13 09:04:31 <_av500_> if both are using 3.3V TTL you can connect directly Nov 13 09:04:43 can you check link please http://www.robotistan.com/rs232den-ttle-cevirici-modul Nov 13 09:05:40 we did not know can be direct. Than added on board rs232 port Nov 13 09:06:21 <_av500_> if you have two of these, its fine Nov 13 09:06:25 <_av500_> and more robust Nov 13 09:06:29 <_av500_> over longer cables Nov 13 09:19:26 ok thanks @av500 Nov 13 09:29:09 _av500_: direct connection is also asking for trouble due to power domain crossing Nov 13 09:29:45 <_av500_> "same desk domain" Nov 13 09:29:50 <_av500_> should work Nov 13 09:29:56 no it won't Nov 13 09:30:07 they'd need to share the same power plane Nov 13 09:30:39 or you need to take care to disable the output drivers before the power down the other side Nov 13 09:31:01 which is tedious, and you'll forget about it sooner or later Nov 13 09:32:20 in which case, since serial is high by default, when one device is powered down the other one starts ramming current down the protection diode of its input Nov 13 09:32:37 which is generally a good way to fry a chip Nov 13 09:58:00 so, they call a level shifter "çevrici" in erdoganistan Nov 13 09:58:02 interesting Nov 13 09:58:42 and expensive too Nov 13 09:59:00 HHE: http://www.aliexpress.com/item/Free-shipping-MAX3232-RS232-to-TTL-Serial-Port-Converter-Module-DB9-Connector-MAX232/32379970719.html?spm=2114.01020208.3.84.kJWyOJ&ws_ab_test=searchweb201556_2_21_79_78_77_92_91_22_80,searchweb201644_5,searchweb201560_9 Nov 13 10:00:06 zmatt, nerienna here, I tested the script and it doesn't work on my kernel Nov 13 10:00:09 zmatt: you have that problem with RS-232 level converters as well Nov 13 10:00:36 maybe I first have to install a package and I don't know which Nov 13 10:00:41 zmatt: it just gets usually ignored becaues there is no way you can parasitically power a whole PC from the data lines over the protection diodes Nov 13 10:01:12 Can't locate experimental.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./show-pins-v2.pl line 8. Nov 13 10:01:45 KotH: you don't have that problem with RS-232 Nov 13 10:02:07 Sandhya: oh, perl is too old... Nov 13 10:02:20 Sandhya: that's not really related to the kernel at all though Nov 13 10:02:46 so I could fix it by installing a newer version? Nov 13 10:02:55 zmatt: you have it. the same as everywhere. It is just that the level shifter sinks all the power flowing into it Nov 13 10:03:44 KotH: except RS-232 is specifically protected against it Nov 13 10:03:47 "RS-232 drivers and receivers must be able to withstand indefinite short circuit to ground or to any voltage level up to ±25 volts." Nov 13 10:04:39 withstand short circuit != does not parasitically power Nov 13 10:05:49 true, but if the chip is designed for it that's usually not a problem Nov 13 10:06:28 you mean the circuit. it's not a problem of the chip per-se Nov 13 10:06:31 the issue usually isn't that the power rail is being raised slightly (that's dissipated via many routes anyway) but that it's happening through an I/O Nov 13 10:06:39 lol Nov 13 10:06:47 i see, you have never done low power designs :) Nov 13 10:07:19 apt tells me pearl is already the newest version Nov 13 10:07:48 Sandhya: yeah I get it, you have an ancient distro, I'll tweak the script to remove the dependency on 'experimental' Nov 13 10:08:11 it's quite "funny" to try to debug why your circuit misbehaves from time to time, only to realize you forgot to connect power and the 2 GPIO pins you have are powering it Nov 13 10:08:30 KotH: yeah I've met the phenomenon Nov 13 10:08:43 however it's not really relevant in this context Nov 13 10:09:43 true that. only chocolate matters Nov 13 10:11:25 Sandhya: uploaded a new version, try again Nov 13 10:11:35 (same url) Nov 13 10:12:43 most likely it'll still fail due to difference in kernel, but who knows, it might accidently work Nov 13 10:13:57 have to type it - 2 different PCs and 2 different networks ^^ Nov 13 10:17:02 and try to remember which ip is my beaglebone... Nov 13 16:02:56 Hi Nov 13 16:03:35 do I have to boot from external sd , not eMMC , in order to free the eMMC pins on P8 header? Nov 13 16:03:59 yes Nov 13 16:04:27 thanks Nov 13 16:04:31 that's kind of the meaning of not using the eMMC, yes Nov 13 19:26:44 noob! Nov 14 01:42:00 * GenTooMan wakes zmatt by making a nonwitty remark. Nov 14 02:52:55 zmatt you there? **** ENDING LOGGING AT Sat Nov 14 02:59:59 2015