**** BEGIN LOGGING AT Sun Jul 09 03:00:02 2017 Jul 09 11:35:27 Hi all, can I write PRU code in C? Jul 09 12:22:01 hi all can pru have interrupt? Jul 09 12:42:52 pruss has an interrupt controller (perhaps "event manager" would be a better name for it), but the pru cores don't support actual interrupts. rather, two of the interrupt controller's outputs go to bits 30 and 31 of register R31, so pru can easily see if an "interrupt" is pending Jul 09 12:44:37 what if i have an async input connected to the PRU input, i can't detect it changed with interrup? Jul 09 12:44:41 how do i overcome this? Jul 09 14:39:08 cyberguy: there are two external pins which go directly to the pru interrupt controller, P9.20 and P9.19, both muxmode 6 ("edc latch 0/1") Jul 09 14:40:00 you can then setup the pru intc to trigger on high-level, low-level, rising-edge, or falling-edge Jul 09 14:42:22 of course pru will then still need to periodically poll for interrupts (by inspecting R31), but at least there's no risk you accidently miss an event Jul 09 14:43:41 (this is certainly not the only solution of course. for example you can also use eCAP for edge detection, which also provides a timestamp of when the edge occurred) Jul 09 15:23:19 Hi. Is anyone online? Jul 09 15:33:11 nah, once a day a large batch of messages is delivered here via UUCP Jul 09 15:59:54 can i use emmc instead of SD Jul 09 16:00:35 and how can i download new application over eMMc Jul 09 16:14:18 yassin: yes of course you can Jul 09 16:15:24 yassin: look at the note: https://beagleboard.org/latest-images "To turn these images into eMMC flasher images, edit the /boot/uEnv.txt file on the Linux partition on the microSD card and remove the '#' on the line with 'cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh'. Enabling this will cause booting the microSD card to flash the eMMC. Images are no longer provided here for this to avoid people Jul 09 16:15:30 accidentally overwriting their eMMC flash." Jul 09 16:19:02 Hey guys, is my BeagleBoard supposed to pop up on my computer when I plug it in via Usb? Jul 09 16:19:24 I plugged in an sd card already and it's not showing up Jul 09 16:19:34 i want to install debian on it. Jul 09 16:26:20 Nitro525: to reflash it, make a flasher microsd card. you can find the latest images at http://elinux.org/Beagleboard:BeagleBoneBlack_Debian Jul 09 16:26:41 oh wait, beagleboard or beaglebone? Jul 09 16:28:06 on current systems it will show up via usb as network device, serial device (console), and a small read-only FAT filesystem with some docs and (no longer necessary) drivers for windows still probably Jul 09 19:17:04 zmatt: sorry, i was out after my last messages :) Jul 09 19:17:23 zmatt: with "fast I/O" I meant things like 6gb/s SATA, PCIe, 1Gb Ethernet, etc Jul 09 19:17:35 zmatt: not hand wired I/O - the PRUs are amazing Jul 09 19:18:01 zmatt: off-the-shelf getting data fast from A to B Jul 09 19:56:52 anyone have issues loading latest debian image on bbbw? Jul 09 20:06:02 hi Jul 09 20:07:05 having some trouble with latest debian 8.7 image on bbbw... its not detecting wifi and bluetooth module Jul 09 20:07:07 any ideas? Jul 09 22:58:17 Hey there, anybody here who successfully uses the PRUDAQ cape with Kernel 4.9.35-1-lts, or the -ti version? I'm stuck at the device tree udpates. It seems the PRUDAQ setup tools use an old kernel layout to insert the capes, and I am not sure how to fix that. Jul 09 23:04:06 and here is my dmseg: https://pastebin.com/AXpkLEHb Jul 09 23:08:28 https://www.irccloud.com/pastebin/QhhMj8r9/ Jul 09 23:12:53 https://www.irccloud.com/pastebin/vKHccJUz/ Jul 09 23:15:45 This post on the mailing list describes my problem exactly, but the proposed changes do not work for me because I cannot echo anything to "echo prudaq > /sys/devices/platform/bone-capemgr/slots" Jul 09 23:16:27 (debian moved the bone-capemgr to the /platform/ directory which I guess partly causes this) Jul 09 23:17:04 The post: https://groups.google.com/forum/#!topic/prudaq-users/f6TZJ8ubanc Jul 09 23:19:54 https://www.irccloud.com/pastebin/AZbE61jY/ Jul 09 23:20:36 The whole slots thing seems to have changed, which is unfortunately the most professional way I can express this :) Jul 09 23:36:20 hmm? Jul 09 23:37:00 that change happened a long time ago though Jul 09 23:37:15 hold on lemme see what you pasted Jul 09 23:37:44 thanks Jul 09 23:37:47 so, the reason the overlay doesn't load is due to "cape-universal" Jul 09 23:38:06 this is sort of a giant overlay that lets you configure pins at runtime Jul 09 23:38:29 ugh, instead the beaglebone deabian 4gb to emmc. extremely slow responsiveness Jul 09 23:38:43 install* Jul 09 23:39:03 fasle: this kernel log doesn't look like you're using a recent system though? Jul 09 23:39:37 i am using a pc for this chat session Jul 09 23:40:04 fasle: which image are you using? Jul 09 23:40:09 i have beaglebone black rev c board, purchased less a month ago. i did not like preinstalled os Jul 09 23:40:20 peferred to have a linux gui desktop Jul 09 23:40:26 https://www.irccloud.com/pastebin/75iUZIVV/ Jul 09 23:40:48 4.9.36-bone-rt-r6 Jul 09 23:41:01 fasle: I mean, what did you download and install? Jul 09 23:41:06 exactly Jul 09 23:41:23 one second Jul 09 23:42:10 ahh wait nm I made a thought error Jul 09 23:42:25 BBB-blank-debian-9.0-lxqt-armhf-2017-06-25-4gb.img Jul 09 23:42:29 I was expecting to see remoteproc_pru mentioned since that's enabled by default nowadays Jul 09 23:42:46 but you replaced the -ti kernel by a -bone kernel, which doesn't support remoteproc_pru, hence I'm not seeing messages about it :) Jul 09 23:42:48 I dd'ed bone-debian-8.7-lxqt-4gb-armhf-2017-03-19-4gb.img Jul 09 23:43:04 I tried with the ti as well Jul 09 23:43:22 changed at 4am because ... trial and error Jul 09 23:43:26 hehe Jul 09 23:43:41 is ti, faster? Jul 09 23:43:41 this stuff really is a bit messy, since the preferred mechanism changed more than once Jul 09 23:43:45 do you want me to change to the -ti branch and then come back? Jul 09 23:43:48 no Jul 09 23:44:11 you actually don't want remoteproc_pru since the software you're trying to use is designed for uio_pruss Jul 09 23:45:05 yes! so uio_pruss worked one boot, and I could start the data acquisition with the script ("option 2") but all the readouts were 0 Jul 09 23:45:08 belway: no, if anything the -bone kernel is probably slightly more efficient than the -ti kernel since the -ti kernel is an SMP kernel (since it also supports the multicore beaglebone-x15) while the BBB is single-core Jul 09 23:45:32 fasle: there are two aspects here: making sure uio_pruss is enabled and making sure pinmux is done Jul 09 23:45:40 the overlay would have done both presumably Jul 09 23:46:15 I read that there are several ways of doing it, not necessarily with overlays. Maybe I messed something up there? Jul 09 23:46:22 I added .. hold on Jul 09 23:46:33 can you pastebin your /boot/uEnv.txt ? Jul 09 23:46:47 probably the easiest way right now is indeed by not using an overlay at all Jul 09 23:46:56 cool I'd be up for that :) Jul 09 23:47:17 the overlay route can still work, but probably it would need to be revised for the current situation, which might be messy Jul 09 23:47:48 My uEnv.txt https://www.irccloud.com/pastebin/4qr539P1/ Jul 09 23:47:49 nowadays there are two lines in /boot/uEnv.txt which control whether uio_pruss or remoteproc_pru is enabled Jul 09 23:48:10 the file is really messy i guess from all the epxerimatation Jul 09 23:48:15 indeed Jul 09 23:48:27 in fact the two lines seem to be gone P Jul 09 23:48:27 :P Jul 09 23:48:44 unless maybe 2017-03-19 isn't recent enough Jul 09 23:48:44 I never saw them but I do take the blame haha Jul 09 23:48:55 I did some upgrades Jul 09 23:49:15 latest images can be found here -> http://elinux.org/Beagleboard:BeagleBoneBlack_Debian Jul 09 23:49:58 you can then comment out the line that enables remoteproc-pru and uncomment the line that enables uio-pruss Jul 09 23:50:14 ok Jul 09 23:50:34 upgrade to latest 4.4 or 4.9 -ti or -bone kernel Jul 09 23:50:34 https://www.irccloud.com/pastebin/zFBDL5Y2/ Jul 09 23:51:01 (I actually patched some uio_pruss bugs very very recently, which rcn swiftly integrated) Jul 09 23:52:02 if you're not using a gui (prudaq probably conflicts with it anyway?), the "iot" image may be a better choice than the lxqt image Jul 09 23:52:14 I will try! This is what I will flash: https://www.irccloud.com/pastebin/qcPRfSnz/ Jul 09 23:52:22 ok the iot version it is Jul 09 23:53:07 thanks will be back after installation Jul 09 23:53:19 i will try. thanks Jul 09 23:53:46 fasle: after the /boot/uEnv.txt change hopefully prudaq will work, but it will still read zeros until pin config is done Jul 09 23:54:07 I did the pins and the wires as given in the example Jul 09 23:54:08 for this you can use the "config-pin" command Jul 09 23:54:14 ah ok Jul 09 23:54:31 (that's part of "cape-universal" I mentioned earlier) Jul 09 23:57:48 the IOT image states it is not a GUI Jul 09 23:58:12 that's the key difference yes Jul 09 23:58:36 yeah I deleted the gui stuff it takes away tons of space on the emmc Jul 09 23:58:43 which also means it leaves more free space on the ... Jul 09 23:58:47 that exactly Jul 09 23:59:17 i will try as i want it to be faster than a pretty GUI Jul 09 23:59:22 my goal is just to have the measurements running and then report some of the data via rest api Jul 10 00:00:00 fasle: the iot image still has the webserver and such :) Jul 10 00:00:06 nice Jul 10 00:00:28 (there's also a "console" image which is really minimalistic for people who prefer to just install the stuff they need) Jul 10 00:00:46 well first things first. Maybe with my next reinstall tonight lol Jul 10 00:01:26 actually, that one sounds better, which image is that one for minimalistic console? Jul 10 00:01:53 "console" :P Jul 10 00:02:25 both jessie (debian 8) and stretch (debian 9) versions can be found on the wiki page I linked above Jul 10 00:03:23 no flasher for some reason, but you can turn a "standalone" image into a flasher using the instructions in the "Flashing eMMC" section of the wiki page Jul 10 00:03:29 will stretch work well with prudaq? Jul 10 00:04:09 the console image showed BeagleBoard-xM and listed underneath older images Jul 10 00:04:30 oh you have an xM ? Jul 10 00:05:05 no, hence i did not try it. i have Beaglebone Black Rev C Jul 10 00:05:35 so use "microSD/Standalone: (console) (All BeagleBone Variants)" Jul 10 00:06:04 (or I'd probably prefer stretch-console myself, jessie is already getting quite old) Jul 10 00:08:51 btw are there any beagle user groups in the Bay Area where people talk about projects? Jul 10 00:17:23 * zmatt has no idea Jul 10 00:21:05 going to try bone-debian-9.0-lxqt-armhf-2017-07-02-4gb.img then install oracle java 8 and ti pru code generation tools Jul 10 00:21:27 I thought you said you didn't want a gui? Jul 10 00:21:58 oh no the java install is huge Jul 10 00:22:06 though you said, stretch was worth a shot? Jul 10 00:22:06 i had full disk problems Jul 10 00:22:28 go with console or iot if you want java + some space Jul 10 00:22:33 that Jul 10 00:23:04 this is true for both jessie and stretch Jul 10 00:23:09 (as far as I know) Jul 10 00:23:22 i was following the instructions on the web page. thought java was needed? Jul 10 00:23:39 not at all Jul 10 00:23:47 no it is just confusingly listed at the top Jul 10 00:24:14 you only need a small image, then you connect and install the stuff you need. Faster than deleting stuff imo Jul 10 00:24:43 it just has instructions on how to install oracle java 8, probably because people asked about it Jul 10 00:24:50 found it, Stretch-iot, thanks i will reimage sd Jul 10 00:25:21 yeah that's what I am putting on the sd right now. Don't forget to then change the config on the sd card Jul 10 00:25:24 to have it flash Jul 10 00:25:53 basically the page has lots of things that you *can* install or configure, that doesn't mean all of it is relevant for everyone :) Jul 10 00:26:21 I'd be happy to clean it up a little if the wiki is writeable Jul 10 00:26:43 thanks, the nub was following the webpage word for word, ugh Jul 10 00:26:44 the Beagleboard: namespace is protected Jul 10 00:27:43 flash to sd -> mount -> change stuff -> put it in bbb -> wait for flashing -> reboot -> mess around with hava and stuff Jul 10 00:27:52 *java Jul 10 00:30:27 i noticed a huge responsiveness hit after java and oracle, web browser was useless Jul 10 00:30:36 on the previous images Jul 10 00:31:00 probably you ran out of space Jul 10 00:31:08 yeah I stopped running desktops on these devices Jul 10 00:31:09 no idea why you would want to install that in the first place Jul 10 00:31:21 or why you'd want to use a beaglebone as a desktop :) Jul 10 00:31:39 if you want integration with your desktop you could set up sftp shares or so Jul 10 00:32:40 also makes it less painful to re-flash because you're not customizing too much on the desktop side Jul 10 00:33:10 so you could just copy your home dir and keep your .bashrc etc. Jul 10 00:33:36 for me, it is new, the pi was working well as desktop, web server, turning on leds. Want to try out the beaglebone since hardware was more powerful before i moved onto the project tasks Jul 10 00:34:03 really? I never had a good experience with desktop on the pi Jul 10 00:34:16 but yeah go ahead if you prefer this Jul 10 00:34:55 it will be neat to see how debian iot works compared to the windows iot Jul 10 00:35:34 the pi is probably stronger at graphics. the bbb wins easily from the pi on points like i/o, peripherals, and openness though :) Jul 10 00:37:13 i am glad this chat feature worked well. Thanks for your time and sharing info. i need to sign off due to real life, "wife" is calling me. the joys of marriage Jul 10 00:37:34 high-priority interrupt ;) Jul 10 01:10:59 Friends, I just loaded the latest Debian (2017-07-01) on my BBB C. When I run sudo node-red, node-red locks-up after loading palette node message. Any ideas? Jul 10 01:12:14 * zmatt has no experience with node-red Jul 10 01:42:38 I just flashed my BBBlue with Debian Image 2017-03-19 Jul 10 01:43:21 Now I'm not sure if I should have a /sys/devices/platform/cape*/slots file with the universaln overlay Jul 10 01:44:17 I don't have the /sys/devices/platform/bone_capemgr directory let alone the slots file. Jul 10 01:53:45 no bone_capemgr ? o.O Jul 10 01:54:13 what kernel are you running? (uname -r) Jul 10 02:12:25 flashing beaglebone black rev c with the debian iot img... when the image has transferred to the board, all four lights will stay light, correct? it has been awhile only seeing first light blink Jul 10 02:15:44 sup? Jul 10 02:15:58 flashing beaglebone black rev c with the debian iot img... when the image has transferred to the board, all four lights will stay light, correct? it has been awhile only seeing first light blink Jul 10 02:16:27 Jessie version? Jul 10 02:17:52 bone-debian-9.0-iot-armhf-2017-07-02-4gb.img.xz Jul 10 02:18:01 stretch-iot Jul 10 02:19:57 bone-debian-8.7-iot-armhf-2017-03-19-4gb.img.xz Jul 10 02:20:02 huh... Jul 10 02:23:19 http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#microSD.2FStandalone:_.28stretch-iot.29_.28All_BeagleBone_Variants.29 Jul 10 02:25:44 Yeah, the image I have is from beagle.org Jul 10 02:25:56 4.4.54-ti-r93 Jul 10 02:26:11 http://beagleboard.org/latest-images Jul 10 02:26:42 I am trying to use LabVIEW ontop of BBB Jul 10 02:26:57 https://www.labviewmakerhub.com/doku.php?id=learn:tutorials:libraries:linx:misc:beagle-bone-black-update-os Jul 10 02:27:14 This page says you have to modify a .sh file Jul 10 02:28:01 belway: standalone isn't a flasher Jul 10 02:28:07 belway: it just booted from sd card Jul 10 02:28:32 roger that Jul 10 02:28:39 the wiki page has a section on how to change a standalone card into a flasher card with a one line change to /boot/uEnv.txt Jul 10 02:29:55 you can read the /boot/uEnv.txt file and uncomment the line; #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh Jul 10 02:30:53 I saw that, I am a newbie to the BBB and eLinux. Can I just use the cmd line you have there, and that will do the trick? Jul 10 02:34:12 Can I edit this in a putty terminal? Jul 10 02:39:23 you boot the bbb with the non-flasher image you prepared. Jul 10 02:39:36 I did that Jul 10 02:39:50 Then you login and change the uEnv there, then reboot while holding the button and it should flash Jul 10 02:40:06 What is the root PW? Jul 10 02:40:58 user is debian Jul 10 02:41:02 I can putty in as debian, and do an "ls" and all I get is "bin" Jul 10 02:41:11 and pass is temppwd Jul 10 02:41:23 OK lemme try that Jul 10 02:41:39 then cd /boot Jul 10 02:44:49 I see uEnv.txt, how can I edit it in a putty window? Thanks for your help, nver done this before. Jul 10 02:46:58 try sudo vim /boot/uEnv.txt Jul 10 02:47:12 sudo nano /boot/uEnv.txt might be better Jul 10 02:51:27 wow! I would have NEVER figured that out. :-) So I found the flasher.sh. removed the #, and did a write out Jul 10 02:51:54 Now I just need to reboot the board withe the boot button pushed in? Jul 10 02:52:05 shut it down first Jul 10 02:52:17 sudo systemctl poweroff -i Jul 10 02:52:29 ok.. Jul 10 02:52:53 when the lights are out you can restart with the button pressed Jul 10 02:53:26 then after a couple of seconds you should see the LEDs having a moving pattern Jul 10 02:55:16 disconnected Usb and ethernet. pushed button and applied power. Here we go, looks like the board is flashing. I see the knight rider pattern on the leds Jul 10 02:55:28 yes he is coming for you :) Jul 10 02:55:44 LoL... so you are an older dude like me? Jul 10 02:56:08 haha 30s Jul 10 02:56:58 Ah, I was with the older one with David hasselhoff aka "the hoff". LoL. Jul 10 02:57:11 I know nowadays it's the Cylon pattern Jul 10 02:57:41 Yes! Battlestart galactica (again, I grew up with the one from the 70s) Jul 10 02:58:10 Will be 50 in a couple years, OMG I am still dorking around with this crap! Jul 10 02:59:37 My dad is 76 and recently did his first arduino circuit Jul 10 02:59:48 so you got ways to go **** ENDING LOGGING AT Mon Jul 10 03:00:02 2017