**** BEGIN LOGGING AT Thu Apr 28 02:59:58 2016 Apr 28 03:05:06 Hello... Apr 28 03:05:48 I have a BBG and MotorBridgeCape. The cape does not work. How can I add a serial port and update firmware? Apr 28 03:09:27 I unzipped a .zip file for updating firmware from a forum on SeeedStudio's website. I tried to listen to their examples but... Apr 28 03:09:46 No luck. Apr 28 03:09:54 I get an error. Apr 28 03:15:27 Here is the error I receive. Apr 28 03:15:48 ./script/flasher MotorBridgeFirmware.bin Apr 28 03:15:48 make: execvp: ./script/flasher: Permission denied Apr 28 03:15:48 Makefile:202: recipe for target 'flash_firmware' failed Apr 28 03:15:48 make: *** [flash_firmware] Error 127 Apr 28 04:41:48 hi Apr 28 04:42:10 I cant connect beaglebone to pc though usb Apr 28 04:42:33 I plug in already Apr 28 04:43:03 but i cant access 192.168.7.2 Apr 28 04:43:09 please help me :( Apr 28 04:43:15 please Apr 28 04:51:55 duc: what do the LEDs do on the BBB? also does the PC see a network interface appear? Apr 28 04:52:30 I'm trying to flash a debian image onto beaglebone black via a microSD card. The manual said this boot process shouldn't take more than 45 min. It has been more than 45 min. How do I know why it is done flashing the image onto beaglebone? Apr 28 04:53:07 *How do I know when it is done flashing the image onto beaglebone? Apr 28 04:54:42 Kit_: did you use a flasher image? Apr 28 04:55:32 they are easily recognizable by having "flasher" in the filename Apr 28 10:41:23 Can someone help me loggin in to beaglebone.org ? openID doesn't seem to working. Looking at projects is just looking at the doggy...no cool code. Apr 28 10:46:27 openID is easy...but it's not really working. Works at wordpress. Apr 28 11:36:40 hi Apr 28 11:59:22 Hi Apr 28 12:02:45 hi Apr 28 12:03:34 how to add new beagle bone black board info to the new kernel to customized Apr 28 14:19:53 Are there any tricks to getting SPI mode 1 to work on a BBW with a 3.2.20 kernel? I'm setting spi_board_info.mode to SPI_MODE_1 in my board file, but it seems the SPI bus is still in mode 0. Changing .max_speed_hz in the same structure does change the clock rate as expected, so I think I'm in the right place. Apr 28 15:51:52 gferencz: wow that's an ancient kernel... Apr 28 16:02:22 Has anyone else come across this feature, when trying to use i2c bus 1 on P9-19/20: "omap_i2c 4802a000.i2c: timeout waiting for bus ready" ? I am using the image default cape settings on the Beaglebone debian image 4.1.12-ti-r29 Apr 28 16:02:45 check for conflicting pinmux of i2c1 Apr 28 16:03:26 http://gerbil.xs4all.nl/show-pins-v3.pl you can use this script to check whether any pins other than the ones intended are configured to i2c1 sda/scl Apr 28 16:05:23 it doesn't look like anything is conflicting. both are listed as cape i2c sda and slc respectively Apr 28 16:06:31 yeah on the left are just descriptive names, including the "typical" application Apr 28 16:07:02 the other columns, the ones that make sense look normal, but here is the line from scl/P9.19, sda/P9.20 is the same: 95 fast rx up 3 i²c 2 scl i2c@4819c000 (pinmux_i2c2_pins) Apr 28 16:07:05 the actual pinmux is on the right (where unmuxed pins show gpio ) Apr 28 16:08:01 that's a different i2c though Apr 28 16:08:49 so, i2c-2, not i2c-1, if I am reading that correct Apr 28 16:10:09 i2c1 is 0x4802a000 and muxable to {P.24,P.26} or {P9.17,P9.18} Apr 28 16:10:40 i2c2 is 0x4819c000 and muxable to {P9.19,P9.20} or {P9.21,P9.22} Apr 28 16:11:16 (typo... {P.24,P.26} should be {P9.24,P9.26} of course) Apr 28 16:11:49 ok, getting what bus is what, is a royal pain, when just getting started (finally, I have only owned the blasted thing for 3 years) Apr 28 16:12:01 https://goo.gl/Jkcg0w Apr 28 16:12:16 check the orange-marked tabs (BBB, P9, P8) Apr 28 16:13:06 BBB is in list form (see menu Data -> Filter views for various ways to sort it), P9/P8 give an overview of the expansion header pins Apr 28 16:13:20 ok, so pin 19/20, is bus 2, which is for the cape ID EEPROM? Apr 28 16:13:43 yes, although you can also use it for other purposes Apr 28 16:14:12 it is used for cape identification, but not reserved exclusively for that purpose Apr 28 16:15:07 that is what I was reading on it. Not like small EEPROM's are i/o intensive for the bus. I would like to use a dedicated seperate bus for my primary 'noisy' i2c communication Apr 28 16:15:15 (the Signals tab of my spreadsheet can also be useful btw to perform a "reverse lookup": find where the pins of some particular peripheral are accessible) Apr 28 16:15:30 cape id is done only once at boot Apr 28 16:15:49 it queries 4 specific i2c addresses to check for a cape eeprom there Apr 28 16:16:04 of course you can also just disable bone-capemgr entirely if you don't need it Apr 28 16:16:06 that would make sense, and I see the 4 addresses on bus 2 as being reserved/UU Apr 28 16:16:40 I disable it in general Apr 28 16:17:00 since we don't use any off-the-shelf capes, we connect custom hw Apr 28 16:17:41 yeah, I was planning on using an eeprom on my custom cape, just because it would be nice if/when I ever upgrade from a Rev B to a newer version Apr 28 16:18:26 zmatt, Yeah. The board file to device tree migration seems like an effort. I suppose it needs to be done soon. Apr 28 16:19:07 gferencz: there's really a serious need for better tools to generate device trees Apr 28 16:19:14 a simple gui preferably Apr 28 16:20:15 Documentation between the last time I played with this thing (on Angstrom) and the latest build, seems behind. Playing with PRU stuff, I find either stuff that flat out doesn't work, or stuff (liek pru_speak) that doesn't build, or has broken links in the documents Apr 28 16:20:24 "I need this and this and this, allocate to these pins" .. and getting a list of properties the driver needs rather than having to hunt through kernel docs (or not unusually, driver sources) Apr 28 20:04:55 Is it possible to boot the bbb from a usb stick? Apr 28 20:06:17 not in the "like a PC" way Apr 28 20:09:12 Is there any way to install OpenBSD on a bbb without using the sd card? My sd card slot seems to be broken. Apr 28 20:09:35 netboot ? Apr 28 20:13:30 Yes how do I get it to do a netboot instead of booting the debian currently installed? Apr 28 20:13:33 you can boot the device from a PC over USB Apr 28 20:13:47 or over the UART Apr 28 20:14:31 * ogra_ would just intercept the boot to get to the uboot prompt via serial ... and then pull what you need from tftp Apr 28 20:14:38 yeah Apr 28 20:14:40 Help Apr 28 20:14:53 was going to ask if u-boot speaks network in the latest debian images Apr 28 20:15:08 did it ever not ? Apr 28 20:15:20 I never used it, so I don't know :) Apr 28 20:15:39 Using bonescript I would like to make a servo move 90 degrees with a push button can someone help me please Apr 28 20:16:10 Vestax: so, there you go, use U-boot and tftp your way from there :) Apr 28 20:16:22 I'm new to u-boot. So should I boot normally into debian, then edit some file in order to make it netboot? Apr 28 20:16:47 Vestax: no, you interrupt the boot process at the U-boot stage Apr 28 20:16:48 no, you attach a serial cable and start a serial console app on the PC you attached to ... Apr 28 20:17:22 there is usually a 3 sec countdown in the bootloader ... if you hit a key there you end up in a bootloader console Apr 28 20:18:59 ah cool. I have only booted it so many times and got mad cause the sd card can't be read Apr 28 20:19:05 Thanks a lot for the info! Apr 28 20:22:35 I was here asking yesterday if someone has ever had a bbb that can't read sd cards. My board can't no matter what I have tried. There is no physical damage. Apr 28 20:23:38 I got the bbb a few days ago. To RMA it would cost me almost the same as a new bbb since I ordered it from China and I live in Sweden. Apr 28 20:24:06 It would be nice if I could somehow blow life into it... Apr 28 20:59:57 Vestax: I guess you could try to carefully diagnose it... it could e.g. just be some contact problem between the card slot and the pcb Apr 28 21:01:44 Vestax: you could alter the device tree to remove the card slot from linux' knowledge and use the pins as gpio instead Apr 28 21:02:55 then all kinds of tests can be done even just using software: e.g. configure the pins as inputs with internal pull-down and confirm they read as high (the external pull-ups should easily win from the internal pull-downs) Apr 28 21:03:39 for all 7 pins sequentially, drive that pin low and confirm the other 6 remain high... this excludes short-circuits between the pins Apr 28 21:03:46 That could be an idea Apr 28 21:04:36 with all pins configured to input (with pull-up or pull-disabled), confirm that the card-detect input responds to the insertion of a card Apr 28 21:04:46 What does the mmcinfo in u-boot on a working bbb? Apr 28 21:05:00 => mmcinfo Card did not respond to voltage select! Apr 28 21:05:02 not sure, I'm not deeply familiar with u-boot Apr 28 21:05:25 yeah that just means it didn't get any reply to the early initialization command Apr 28 21:05:29 I get that regardless if I have a card inserted Apr 28 21:05:43 mmc's way to report any error at all is: don't respond Apr 28 21:06:23 so "did not respond" is not a very useful indication Apr 28 21:06:42 usbboot - boot from USB device Apr 28 21:06:56 Looks as if it is possible to boot from USB, right? Apr 28 21:07:08 like tbr explained Apr 28 21:07:23 It would be easier to boot with USB than netboot. Not that it would matter that much Apr 28 21:07:38 i think it is a lot harder to set up on the PC side Apr 28 21:07:38 it's boot via usb, but not as we know it (apologies to star trek...) Apr 28 21:07:56 (than setting up a tftp server) Apr 28 21:07:57 note that mmc has no lower-limit on operating speed, so if you configure the pins as gpio and all the checks I mentioned above pass you can try to communicate with the mmc just by bit-banging Apr 28 21:08:06 Vestax: btw you can also flash the eMMC via USB Apr 28 21:09:16 ogra_: setting up a tftp server is surprisingly easy actually https://github.com/mvduin/bbb-asm-demo/blob/master/extra/dnsmasq.conf Apr 28 21:09:26 (this is bootp + tftp) Apr 28 21:09:33 How would I flash the eMMC via USB? Apr 28 21:09:44 Vestax: http://gerbil.xs4all.nl/flash-images.html Apr 28 21:09:51 zmatt, thats what i mean ... iirc it was quite some effort to set up the usbboot PC side Apr 28 21:10:16 * ogra_ has only done that back in the days with pandaboards ... and i always found tftp to be easier Apr 28 21:10:19 ogra_: but isn't u-boot's "usbboot" actually just booting from an USB stick like you'd expect? Apr 28 21:10:25 no Apr 28 21:10:29 the opposite would be the "ums" command Apr 28 21:10:50 it uses the usb protocol to pull stuff from a PC though an usb cable ... Apr 28 21:11:13 okay... Apr 28 21:11:14 like tbr said ... "not as we know it" Apr 28 21:12:11 Vestax: BBBlfs is a bit brittle, and the included scripts are garbage, but it's very useful to put an eMMC into usb mass-storage mode so you have free access to the eMMC Apr 28 21:12:18 which means you can flash it, image it, repair it, etc Apr 28 21:12:33 u-boot has a similar thing (the "ums" command) but it's slooooooooow Apr 28 21:13:22 Vestax: the pastebin I linked to in that transcript contains the details on putting a BBB into ums mode using BBBlfs, including a description of what's going on behind the scenes Apr 28 21:15:14 Thanks! Still it sounds as good ol' netboot is maybe the easiest way Apr 28 21:15:51 ?? you have netboot working?! I've never even tried that other than for baremetal apps Apr 28 21:15:59 BBBlfs is terribly easy (when it works) Apr 28 21:16:20 (apologies if I made it sound more complicated than it is simply by describing it in so much detail) Apr 28 21:18:16 in practice I plug the BBB into usb while holding its S2 button, once it's detected by the OS run sudo ./usb_flasher .. after waiting a bit it then shows up like an usb stick Apr 28 21:22:07 note btw that usb-boot works exactly like netboot, except with the BBB presenting itself as an RNDIS network interface. BBBlfs avoids the requirement for setting up bootp and tftp servers by using libusb to talk the RNDIS protocol with the BBB directly Apr 28 21:22:57 ok. I read the instructions and explanations. It makes sense now Apr 28 21:23:28 most of the irc transcript is about cloning a BBB, which has some tricky points to avoid cloning *too much* of the BBB (like SSH keys and such) Apr 28 21:23:52 But how would I go about installing openbsd on it then. I still need to partition and format the "disks" Apr 28 21:24:36 the whole eMMC appears as e.g. /dev/sdb Apr 28 21:24:56 you can partition it, create filesystems, install anything you want Apr 28 21:25:17 Sorry for asking maybe obvious questions but it's almost midnight and I need sleep, but I feel that now I have a good teacher here that I don't want to let go :-) Apr 28 21:26:42 some concern will be of course that you need u-boot in a place where the ROM bootloader can find it (that's explained in detail in the README of https://github.com/mvduin/bbb-asm-demo ) and u-boot needs to be able to find the kernel to load Apr 28 21:27:06 Yes I understand that it would be easy to install Linux that way if it's mounted on a linux. But creating the OpenBSD installation that way from linux..? Apr 28 21:27:08 the default boot-script of u-boot as included with e.g. debian is fairly linux-biased Apr 28 21:27:46 well the biggest hurdle is the difference in architecture, not the difference in OS Apr 28 21:27:58 so you need an installer that doesn't care Apr 28 21:28:21 hence usually people use 'dd', which is well-known to really not give a shit about what it's copying ;) Apr 28 21:29:24 Could I use dd to copy the openbsd installation image for bbb on the mounted disk, and it would start the installation when I reboot the bbb? Apr 28 21:29:29 if you netboot you should be able to boot an installer ramdisk image Apr 28 21:29:58 Vestax: generally it would be a problem to install onto the same media you boot from, unless the installer loads itself fully into RAM Apr 28 21:31:01 I read on a blog earlier that it's possible to boot the openbsd installer image from sd card then install it on the same exact card Apr 28 21:31:11 So I think it would work Apr 28 21:31:13 netbooting may be easier indeed.... I just realized you probably meant having u-boot (already present on the bbb) perform a netboot, rather than netbooting from scratch including u-boot itself Apr 28 21:31:22 Vestax: ok, then it might indeed Apr 28 21:31:30 some installers indeed load fully into memory Apr 28 21:31:59 e.g. they have some compressed archive on the install disk which is unpacked into the ram-based root fs Apr 28 21:32:16 http://www.tedunangst.com/flak/post/OpenBSD-on-BeagleBone-Black ... see the last paragraph Apr 28 21:32:55 Thats the page I meant Apr 28 21:33:04 Vestax: if you want to diagnose the sd slot btw you may want to stick to linux first... at least there I could help you, whereas I know nothing about openbsd and my utilities for it won't work there :) Apr 28 21:33:21 but, first got a train to catch, bbl Apr 28 21:33:37 Vestax, well, that last paragraph should get you into a bsd installer if i understand it correctly Apr 28 21:33:46 Well I have to go to sleep now Apr 28 21:35:01 zmatt, I need to consider if I'm going to attempt trying to fix the sd card reader somehow, or just forget that it even exists Apr 28 21:35:33 Are you always here, or can I contact you some other way if I decide to give it a try? Apr 28 21:35:54 I personally wouldn't really miss it... but then again if it's just some silly short it would be nice to know and be able to fix it maybe Apr 28 21:36:21 I'm usually here... if you poke me and stick around I generally respond within a day or so ;) Apr 28 21:39:12 I don't think that my patience can handle days. Apr 28 21:39:36 I have already waited for the board to arrive for more than 5 weeks from China Apr 28 21:39:52 hehe, well it's a worst-case estimate Apr 28 21:40:28 I figured that the bbb would be the easiest most mature board to run OpenBSD on... Now this Apr 28 21:40:51 But I guess this is how you learn Apr 28 21:41:02 Thanks a lot for the help! Apr 28 21:41:10 why did you order in china ? was it particulary cheap there ? Apr 28 21:41:19 It's possible that I will contact you later Apr 28 21:41:30 * ogra_ tends to jst buy from amazon these days :) Apr 28 21:41:45 I couldn't find it anywhere in Sweden Apr 28 21:42:15 So I figured that if I am going to get it from abroad I might as well go with the cheapest one Apr 28 21:42:56 Shipping from Sweden is so damn expensive so RMA is usually not worth it abroad anyway Apr 29 01:54:17 <<<---<<<---<<< Apr 29 01:55:05 RASPBERRY PI IS BETTER YOU BEAGLE TURDS! Apr 29 02:10:35 does anybody knows how to enable Timer4 (for example) in the beaglebone black under linux (yocto)? I have been looking in the web at it seems that is not possible **** ENDING LOGGING AT Fri Apr 29 02:59:58 2016