**** BEGIN LOGGING AT Tue Oct 07 03:00:00 2014 Oct 07 04:31:38 HELP!!! I have a BBB running Angstrom from the emmc, up to now it runs fine. I have a 8gb microSD card in the slot that I have been able to mount with no problem. Oct 07 04:32:11 I am trying to get the system to auto mount the SD card on boot, but have had problems with permissions. Oct 07 04:33:27 I tried to modify the /etc/fstab file and suddenly, the BBB won't boot properly. I can't get in to it to change back to a normal boot. I have tried to remove the microSD card and it still won't boot. Oct 07 04:34:17 How do I regain control of my system? I suppose I can re-flash the system all over again, but I would rather not, because I loose everything I have done so far! Oct 07 04:35:15 The BBB boots a very short sequence (lights flash a little) and then go straight to HeartBeat. It does not look like the normal boot. Oct 07 04:35:52 I'd think about connecting UART or maybe hdmi to see what goes on there Oct 07 04:38:17 I'm afraid of the serial connection I bought from (Sparkfun, Adifruit, I forget who) that said it is what I need. I googled and saw potential 5V on the wrong pins. How do I connect to the serial port safely to see what's up? Oct 07 04:38:52 BTW, I'm new to this stuff, sorry! Oct 07 04:39:34 I have never booted with the serial system showing the boot sequence. That's why I bought the cable, but haven't used it yet. Oct 07 04:40:01 If you have any other board(s), you can probably just connect from there, otherwise maybe check TX-GND with voltmeter? Oct 07 04:41:30 Since lights are blinky, I think it means that kernel has started, I'd think something fails before network goes up, but dunno about Angstrom (only used arch here) Oct 07 04:44:03 Also, I think all pins on BBB's UART0 header except 1 (closest to ethernet side) and 3, 4 (TX, RX) are not connected, so should be safe wrt them Oct 07 04:45:11 The cable I bought is a USB on the computer end and has a 6-pin connector for the BBB. Should I plug it into the USB on my Mac and measure to see if there any 5V pins and clip them to be safe? Oct 07 04:46:23 It has been a few weeks since I searched. At the time, I decided to investigate later, since I didn't have a pressing need for serial display on bootup Oct 07 04:48:02 Sorry, just read the last comment about the pins. Oct 07 04:48:56 In my experience, it's just so much more easier and carefree when you have that serial access ;) Oct 07 04:49:05 There is no key on the connector. My colors are: blk, brn, red, orng, yel, grn. w Oct 07 04:49:17 Which way do they connect to the BBB? Oct 07 04:50:22 I dunno, can't get much from colors, sorry, maybe someone more familiar with particular cable can Oct 07 04:58:51 MK_FG: Have you used a serial cable for boot diagnostics? How do I set this up on my Mac to view the boot sequence? Oct 07 04:59:13 BTW, I googled and think the cable is ok Oct 07 05:00:28 Do I open a terminal window on the mac to view the stream? How do I tell it what to look for? Oct 07 05:01:02 I did, only from linuxes though Oct 07 05:02:03 I just connect the thing, make sure nothing's already using that uart (esp. in case of other boards - i.e. do setconsole and stop agetty there) and just do e.g.: screen /dev/ttyAMA0 115200 Oct 07 05:07:28 I'm a bit hesitant to say this, but I think I've seen (on teh internets) that this uart0 on bbb is 5V-tolerant, you can probably google more, but maybe trusting random sources on that is not a good idea ;) Oct 07 05:26:57 I got the serial to work. I logged in and switched back to an older fstab and got it to boot properly. WHEW!!! Oct 07 05:27:33 Note that you might want to add "nofail" option to fstab on such less-relevant changes Oct 07 05:27:45 ...so that boot might proceed regardless Oct 07 05:28:06 Where would it go? Oct 07 05:28:29 E.g. "/dev/mmcblk0p1 /boot vfat nofail 0 2" Oct 07 05:28:56 Dunno if angstrom honors it, but probably should Oct 07 05:29:37 Thanks, will try, tomorrow, I'm going to bed now. Thanks for the help! It has been very valuable! Oct 07 05:30:18 cheers! Oct 07 08:49:22 <_rotti> hi Oct 07 08:49:40 grüezi Oct 07 08:51:25 <_rotti> are there any experiences with the expectation of lifetime of the emmc on a bbb? i've had it several times that a microsd card in a white bone got damages after "some time" of use.... Oct 07 08:52:15 <_rotti> (it's running debian at the moment) Oct 07 08:52:26 Shouldn't it be more of a function of what you write on it and how often? Oct 07 08:52:50 * eintopf have one sd card 2 years in use without any problems Oct 07 08:52:54 _rotti: ;-) Oct 07 08:53:27 _rotti: according to a big open source developer, it's almost impossible to kill an sd card. at least they tried and failed at it Oct 07 08:53:37 _rotti: but i guess they didnt use extremely cheap chinese crap Oct 07 08:54:03 <_rotti> well, okay, maybe we should order better cards in the future ;) Oct 07 08:54:29 There was this nice post on how to spot all kinds of counterfeit cards... Oct 07 08:54:39 http://www.bunniestudios.com/blog/?p=918 Oct 07 08:54:43 ^^^ dat one Oct 07 08:54:44 MK_FG: dont buy on the street? Oct 07 08:54:48 Heheh Oct 07 08:54:55 Probably a good idea, yeah Oct 07 08:56:53 <_rotti> MK_FG: thanks for the link... iirc i've seen that "aoolf" code on our cards, too Oct 07 08:57:43 It's not the code itself that's weird (at least according to the guy), but the fact that they'd use same tech for printing it Oct 07 08:58:06 <_rotti> i'll try to find the broken one Oct 07 08:58:42 Or rather not only the shared code itself, but that too, actually Oct 07 13:07:39 hey, im working with shared ram on the beaglebone (using node-pru) and it seems like I can only write 8kb instead of 12kb.. has anyone noticed something similar? Oct 07 13:11:55 LuaStoned, I can't help, but node-pru sound intresting, you got a link? Oct 07 13:12:05 https://github.com/omcaree/node-pru/ Oct 07 13:12:26 what im curious about is the 2048 offset here https://github.com/omcaree/node-pru/blob/master/src/pru.cpp#L13 Oct 07 13:13:26 since prussdrv_pru_write_memory doesn't seem to use that offset.. Oct 07 13:16:24 sharedMem_int[OFFSET_SHAREDRAM + i] = (unsigned int) element->NumberValue(); Oct 07 13:18:09 yeah, but where does the offset come from? Oct 07 13:18:40 what are those first 2048 bytes of the sharedMem region then Oct 07 13:19:08 memarea is a pointer to the starting address where data/ content is stored. Oct 07 13:19:33 think you have dataram and iram Oct 07 13:20:11 Writes to either PRU Data RAM or Instruction RAM. Oct 07 13:20:28 so I think the offset is to put it into the right bit of ram Oct 07 13:20:53 oh ok Oct 07 13:20:55 Each of the PRU cores have an 8kb data ram associated with them Oct 07 13:20:59 http://elinux.org/ECE497_BeagleBone_PRU Oct 07 13:21:10 http://elinux.org/ECE497_BeagleBone_PRU#Sending_an_array_to_the_PRU Oct 07 13:21:30 looks like 8kb is right Oct 07 13:22:15 well, this is the dataram.. but there should be 12kb shared ram Oct 07 13:22:47 http://elinux.org/BeagleBone_PRU_Notes Oct 07 13:24:16 strange Oct 07 13:24:46 it lookes like node-pru is using the dataram not the sharedram, but I could be wrong Oct 07 13:26:11 you might have to write the pointer to the shared ram into the data ram Oct 07 13:26:25 prussdrv_map_prumem(PRUSS0_SHARED_DATARAM, &sharedMem); Oct 07 13:26:46 since the _SHARED_DATARAM is 4.. it should give the right pointer (or -1 on unsupported systems) Oct 07 13:27:45 ahh ok Oct 07 13:27:50 I found: Oct 07 13:27:51 http://hipstercircuits.com/beaglebone-pru-ddr-memory-access-the-right-way/ Oct 07 13:27:59 which does it in python Oct 07 13:28:14 when I write to shared memory 0 (with the 2048) offset, I can read on addr 0 from within the PRU.. so I guess the offset is right Oct 07 13:29:22 but the problem is, I can only write 8kb (well I can write 12 w/o error) but I can only correctly read the first 8kb back.. Oct 07 13:31:10 okay, the 2048 offset for shared dataram is also shown here: https://github.com/beagleboard/am335x_pru_package/blob/master/pru_sw/example_apps/PRU_memAccess_DDR_PRUsharedRAM/PRU_memAcc_DDR_sharedRAM.c Oct 07 14:21:37 this is really odd, im writing 3072 x 4bytes each, but the last 1024 x 4bytes are not written or read back properly :/ Oct 07 14:56:15 LuaStoned: what's the buffer size you're reading from? Oct 07 14:56:38 you mean /sys/class/uio/uio0/maps/map0/size? Oct 07 14:57:19 0x80000 Oct 07 15:03:51 i can not install nmp to beaglebone black? it gives that error ENOTFOUND? Do i need to change any proxy settings? I am new here. can anyone help please Oct 07 15:06:25 thurgood? Oct 07 15:08:50 when i install nmp, i get the error ENOTFound bla bla bla? Do i need to change network settings? I am using a mac Oct 07 15:14:54 amila: you get the error when doin *WHAT* specifically? Oct 07 15:15:19 LetoThe2nd: installing N-Methyl-2-pyrrolidon Oct 07 15:15:26 KotH: *sniff* thanks Oct 07 15:16:42 LetoThe2nd: sorry, that's the only techincal thing that came up when googling for nmp Oct 07 15:17:08 KotH: guessed that much Oct 07 15:19:07 * mashiara supposes nmp is meant to be npm for Node Package Manager Oct 07 15:20:09 IIICK! JS! Oct 07 15:21:12 do i hear a thumping here? Oct 07 15:21:32 yes Oct 07 15:23:46 * LetoThe2nd starts munching on #beagle Oct 07 15:24:09 noone knows what might cause PRU's shared ram to only be 8k instead of 12k Oct 07 15:24:10 ? Oct 07 15:25:22 no, when i try to install anything from nmp, i get that error. i searched on internet. many had suggested to chaneg proxy or something. but as i am new, i dont know that. for an example, rooot@beaglebone:~# nmp install -g bonescript Oct 07 15:26:24 what error do you get? Oct 07 15:26:34 can you ping 8.8.8.8? Oct 07 15:26:52 amila: is the bbb even connected to the internet? Oct 07 15:27:05 amila: maybe it would be a good idea to ask in a nodejs channell... Oct 07 15:27:17 amila: we dont have enough snowboarders here to answer such questions Oct 07 15:27:40 it would be a good idea to call npm and not nmp if you want the node package manager Oct 07 15:27:41 yes, its connected to the internet. but i can not ping 8.8.8.8. Network is unreachable message is there Oct 07 15:27:57 then it's not connected. Oct 07 15:28:03 amila you do not have the network bridge setup Oct 07 15:28:05 what is your host os? Oct 07 15:28:28 now its connected to a win 7 Oct 07 15:28:55 machine and running linux 3.8.13 on beaglebone Oct 07 15:29:15 amila follow that: http://lanceme.blogspot.co.at/2013/06/windows-7-internet-sharing-for.html Oct 07 15:30:27 anyway, the PRU is weird :( Oct 07 15:30:50 wow thnx alot mate, really appriciate your help. il try my best with that. if i connect to OSX, is there any tutorial for that as well LuaStoned? Oct 07 15:31:15 amila just google something like beaglebone usb network bridge osx.. ;) Oct 07 15:33:22 nice one, i was just a programmer. so i didnt know anything about these electical thinngs. i am really sorry for asking stupid things. one more if you don't mind, is there any solution to send notifications from BBB to a server or atleast pushnotifications? I got one tutorial. but that did not work Oct 07 15:34:12 well, you gotta have it connected to the web obviously, after that there should be plenty of (node) libs for pushbullet / pushover / the push service of your choice.. Oct 07 15:35:48 il give a try LuaStoned. Appriciate your help. World will be a better place when you guys are there. May be some people smile when they see those stupid questions. But hats off for your help mate. il try my best to figurethisout Oct 07 15:36:11 yo're welcome :) Oct 07 16:11:23 Hi. This is my first time in this forum. Until 2 days ago, I was able to boot the BBB from both the eMMC and the microSD card, but the bootting from the microSD card doesn Oct 07 16:11:28 t work anymore. Oct 07 16:13:16 I can see all the 4 LEDs flashing when I boot from eMMC, but the LEDs stay turned off whenever I try to boot from microSD card. Only the LED near the 5V power source stays alive Oct 07 16:24:58 bump ... Oct 07 16:26:06 BnNmusic this channel is sorta afk, it takes some time :) Oct 07 16:26:42 maybe your mircoSD is corrupted? Oct 07 17:23:09 hello. if someone working at TI has info on this old chip (circa 1980) that would help a bunch of auto enthusiasts : "TI PORTUGAL 8406XB SN96527N" Oct 07 17:24:32 please MP if you can help with this Oct 07 17:25:03 <_av500_> das: your car broke down? Oct 07 17:25:19 hey _av500_ Oct 07 17:25:46 same model as mine, friends have issues with it Oct 07 17:26:29 it's a small board that reads the oil level plugged in the engine, but we don't know how the chip works Oct 07 17:26:57 you can still drive without it but they're rather touchy when it comes to oil levels :p Oct 07 17:27:05 <_av500_> oil is overrated Oct 07 17:27:20 especially for older motors Oct 07 17:36:54 Hello everyone Oct 07 17:38:05 I was wondering, what is the most popular OS for the Beaglebone Black? Oct 07 17:39:07 If "popular" as numerous (across all existing devices), I'd guess it should be the one bbb comes with pre-installed Oct 07 17:42:26 Hi MK, thanks for your thoughts. What about with developers? Oct 07 17:43:57 Sorry for a non-answer ;) Oct 07 17:44:13 My vote goes to arch arm Oct 07 17:45:35 anyone here now that knows a bit about the PRU and it's shared memory? Oct 07 17:46:35 Thanks Mike, right now I am working on which OS to support for a new Cellular/Zigbee/CAN/USB cape Oct 07 18:47:46 I'm having some problems with netinstall of debian, I can't get current scripts from RobertCNelson to work when it comes time to copy the microSD over to eMMC. anyone have recent experience with this that might be able to help me? Oct 07 18:55:57 Eurghh headache lol Oct 07 20:06:37 Hey Everyone! Does anyone know of a Dual Band USB WIFI adapter that supports 802.11ac for BeagleBone Black? Oct 07 20:13:00 and you expect to get .11ac bandwidth over usb2 how ? Oct 07 20:13:23 magic ofc! Oct 07 20:14:50 of course the OP (who already left) might be stuck with a network that has the "suck on it! poor people need not to connect" approach and has on .11ac enabled... Oct 07 20:14:55 only Oct 07 20:15:30 lol, still noone active that worked with the PRU? Oct 07 20:16:17 afraid so... no-one smarter than me telling about the spidev1.0 which is actually 0.0 -dilemma I have... Oct 07 20:17:01 i've been through plenty of spi issues already :v Oct 07 20:18:18 it works fine, at least on 2MHz for PN532 (with libnfc) the misleading name just annoys me Oct 07 20:19:09 I also had interesting times earlier this year with old C4 beagleboard and SPI Oct 07 20:19:49 spent a few evenings reading kernel sources etc... Oct 07 20:35:58 Hi all, I noticed in BB-SPIDEV0-00A0.dts that SCLK is an input with a pull-up. But this device functions as an SPI Master, so why is the clk an input? Oct 07 20:38:46 I don't know, maybe it could be slave as well in this configuration ? Oct 07 20:38:59 ioctl is used to set the SPI parameters anyway Oct 07 20:52:19 mashiara: OK, thanks Oct 07 23:31:53 is there still a world shortage on beaglebones? Oct 07 23:32:24 No. Oct 07 23:32:27 There never was. Oct 07 23:44:04 * jpfau finally caves and buys a Rev C board Oct 07 23:44:16 my A5A just has not enough space, and the lights are TOO BRIGHT Oct 07 23:44:57 the Rev C has dimmer leds? Oct 07 23:45:05 A5B has dimmer LEDs Oct 07 23:45:08 and everything since Oct 07 23:46:09 See http://elinux.org/Beagleboard:BeagleBoneBlack#Revision_A5B Oct 07 23:47:26 the LEDs are excruciatingly bright on my A5A. I honestly had to lock it in a draw to keep it from illuminating my room at night :P Oct 07 23:47:34 *drawer Oct 07 23:48:55 * vagrantc remembers stumbling across something in /proc or /sys that listed the model, but forgets where now Oct 07 23:49:20 I usually just look at the label on the sides. I don't recall if it's P1 or P2 Oct 07 23:50:14 hard to do over ssh Oct 07 23:51:44 haha fair enough Oct 08 00:23:04 hi everyone! After updating to the kernel 3.14.19-ti-r29 I can't boot my BBB anymore. User leds light up all 4 and then I mostly just see the heatbeat led and not much other activity and I can't SSH into it. Searching the net, I've seen a suggestion that this might be due to an outdated uEnv.txt file. Since I set up the Debian on the eMMC back in September 2013, I haven't reflashed the system and only updated it via apt-get. Oct 08 00:24:58 I used 3.8.13-bone66 kernel before the upgrade Oct 08 00:43:48 rainforest1155: do you have a serial cable? You can pretty easily see what bootup is doing with a serial cable Oct 08 00:44:17 essential debug tool Oct 08 00:54:04 jpfau: I don't have one yet. Oct 08 00:55:24 would the contents of the uEnv.txt file be of any use? I posted it here http://pastebin.com/aVWXYtWH Oct 08 00:58:16 this looks pretty sane to me... Oct 08 00:58:54 oh! Oct 08 00:59:16 kernel name/version?! :P Oct 08 00:59:18 I can also roll back to a backup. The uboot currently installed seems to be from July 2013. Could it be that the version is too old? If so, is there an easy way to update it? In the /boot/uboot folder, I did notice a tools folder that contains a bootloader_update script. Should I try using that before attempting another kernel update? Oct 08 00:59:53 you really should invest in a debug cable if you're gonna try this .. otherwise you really are stabbin in the dark Oct 08 00:59:57 (literally) Oct 08 01:00:01 I have to agree with veremit Oct 08 01:00:04 been there, done that Oct 08 01:00:04 veremit: I installed this version https://rcn-ee.net/deb/wheezy-armhf/v3.14.19-ti-r27/ Oct 08 01:00:09 I bought a cable for pretty much this exact reason Oct 08 01:00:21 its only a few $/E/£ Oct 08 01:00:26 Did the dtbs install in the right place? Oct 08 01:00:33 and its useful for any other embedded system too Oct 08 01:00:35 I'm wary of this line: loadfdt=load mmc ${mmcdev}:${mmcpart} 0x815f0000 /dtbs/${fdtfile} Oct 08 01:00:57 you're not gonna know unless you can see uboot's debug output Oct 08 01:02:01 one thing I can guarantee .. if you're mixing stock with rcn's images/code/kernels .. he's patched uboot and a few other tricks .. so its not gonna work if you mix/match bits from everywhere unless you really know what you're doing. Oct 08 01:02:16 yes, from what I can tell the dtbs ended up in the correct place and I could also see the backup copies of the previous files in place Oct 08 01:02:33 and the uEnv.txt hasn't changed since updating? Oct 08 01:03:07 nope, it's date is Sep 2013 - so basically when I first set the BBB up Oct 08 01:03:37 I've only used RCN's stuff as far as I can recall Oct 08 01:03:52 * jpfau shrugs Oct 08 01:03:59 I'd get one of those cables if I were you Oct 08 01:04:12 debugging booting is nearly impossible without one Oct 08 01:04:33 ^^^ Oct 08 01:04:39 you mighta had a last filesystem mount time thats throwing the kernel Oct 08 01:04:49 there's all sorts of gotchas Oct 08 01:04:57 the 15 eur pricetag did put me off, but I guess I'll have to bite the bullet Oct 08 01:05:05 YOu can find cheaper. Oct 08 01:05:11 trust me .. it'll be money worth spent Oct 08 01:05:16 But the rule still stands with debug equipment. Oct 08 01:05:22 should be able to get down to about e5 Oct 08 01:05:28 or maybe 10 Oct 08 01:05:34 yeah, I was skeptical at first but I definitely don't regret buying one Oct 08 01:05:44 Debug equipment should be trustworthy--do you want to find after several hours of troubleshooting that the issue was with your tool? Oct 08 01:05:55 do you have any sources / specs for which one I'd need? Oct 08 01:06:03 * veremit checks his tool .. or tools .. :D Oct 08 01:06:37 http://elinux.org/Beagleboard:BeagleBone_Black_Accessories Oct 08 01:06:59 you want something thats 3v3 compatible .. or switchable 5v/3v3 Oct 08 01:07:22 I bought a clone of the FTDI cable, it was like $5 cheaper although some reviews said they accidentally shipped a 5v one Oct 08 01:07:28 I got a 3.3V one but I ymmv Oct 08 01:07:32 -I Oct 08 01:08:06 (basically, don't take the gamble I did :P ) Oct 08 01:08:42 thank you guys! I'll shell out the monies before I make another attempt Oct 08 01:08:58 gotta crash - way too late. Have a good one. Oct 08 01:10:45 I'm a beaglebone newb trying to dig into i2C using C++. I see there is a (slow) way using sysfs? I see there are a couple of libraries for direct memory mapping, but they don't sound too refined and/or tested. Anybody got a personal favorite? Oct 08 01:11:43 yeah /dev/i2c or /dev/bus/i2c is one method Oct 08 01:12:09 look up i2c in the kernel docs .. should be some stuff in there iirc Oct 08 01:12:20 might be i2c-dev Oct 08 01:12:46 should be some c calls you can use I'da thought Oct 08 01:13:52 eg. https://www.kernel.org/doc/Documentation/i2c/dev-interface Oct 08 01:13:56 I don't know linux that well (or at all for that matter:p) I was hoping for a library to make it simple and not cause a terrible performance hit. Oct 08 01:14:15 you can try python .. there's probably a lib. Oct 08 01:14:22 have you looked on adafruit or similar? Oct 08 01:16:58 I managed to get a crosscompiler setup and run a hello world program. I scratched the surface of how to use the sysfs stuff, just trying to cut to the chase and not waste a bunch of time barking up the wrong tree. Oct 08 01:17:13 good luck :) Oct 08 02:35:42 isn't it true that one of the key applications of the pru is encryption, e.g., for tls? Oct 08 02:37:23 if so, then how does one know if the use of pru by a "user" application would clash with something like a secure network (https?) library? Oct 08 02:57:59 ? **** ENDING LOGGING AT Wed Oct 08 03:00:00 2014