**** BEGIN LOGGING AT Thu Apr 05 03:00:05 2018 Apr 05 03:00:16 I have an elf file. This file needs to be compiled, I guess. Apr 05 03:00:29 On the bone. It will take forever. Apr 05 03:01:17 uhh, you mean you have source code that needs to be compiled? (an elf executable is the output) Apr 05 03:01:28 Oh. Apr 05 03:01:46 That is it. The commands told me to scp the file to the BBBlue. Apr 05 03:01:55 I did it. It is done. Apr 05 03:02:02 But...it is just an elf file. Apr 05 03:02:14 i.e. a program Apr 05 03:02:19 I guess. Apr 05 03:02:30 I have no clue. I cannot read it b/c it...you know. Apr 05 03:02:56 ? Apr 05 03:03:11 Yep. That is what I am typing right now. ? Apr 05 03:03:14 Huh? Apr 05 03:03:16 Hahhaah. Apr 05 03:03:37 I downloaded the file. Do I uncompress it or what? Apr 05 03:03:44 I am at a loss. Apr 05 03:04:43 what file? downloaded from where? what do you get when you run the command "file" with the filename as argument (on the beaglebone) ? Apr 05 03:05:01 HOld please. Apr 05 03:05:08 I will get all that info. Apr 05 03:06:02 https://github.com/mirkix/ardupilotblue where it states prebuild ardupilot and it has as link ending in "blue." Apr 05 03:06:22 I will run the file w/ file. Apr 05 03:06:27 Please hold. Apr 05 03:07:54 https://pastebin.com/HubeAFSH is the output Apr 05 03:08:11 okay yeah that's simply an executable Apr 05 03:08:46 Oh. Apr 05 03:08:55 make sure it's marked as executable ( chmod a+x arducopter-3_5_4 ) and run it with appropriate arguments ( https://github.com/mirkix/ardupilotblue#run-ardupilot ) Apr 05 03:09:41 I got you. So, I just needed to make it executable. Apr 05 03:10:02 chmod will do wonders! Apr 05 03:10:55 yeah that should be added to the "Prebuild ArduPilot" section, along with fixing the title of that section to "Prebuilt ArduPilot" Apr 05 03:11:16 I always forget. Apr 05 03:11:50 I have done the chmod cmd many times but always fail when it is not in my face. Apr 05 03:12:01 or maybe "Download prebuilt ArduPilot" Apr 05 03:12:15 I did that already. I wanted to try another way. Apr 05 03:12:32 that doc should also make it clearer that Download prebuilt, Compile, and Cross-compile are three alternatives Apr 05 03:12:39 right now it looks like three sequential steps Apr 05 03:12:52 Yep. Apr 05 03:13:21 This is my mistake. I took the challenge and did not understand. Apr 05 03:14:37 I am getting cmd not found. Apr 05 03:14:40 Odd days. Apr 05 03:15:21 (There's also a third option: build on a beaglebone but use distcc to offload the actual compilation to one or more faster machines with suitable cross-compiler installed. This works great for projects which are normally difficult to cross-compile) Apr 05 03:15:37 the current directory is not in the default search path for commands Apr 05 03:16:02 I am using...oh. Apr 05 03:16:31 Where shall I look? Apr 05 03:16:38 either copy the executable into /usr/local/sbin/ to place it in the default search path for privileged commands, or invoke it with explicit path, e.g. ./arducopter instead of just arducopter Apr 05 03:16:54 Okay. Apr 05 03:18:10 (history lesson: traditionally unix systems were usually multi-user, so searching for commands in the current directory would be a security hazard. imagine putting a command named "ls" in some public directory :) Apr 05 03:19:18 I will just use cp instead of invoking it w/ an explicit path. I tried the latter. I received permission denied and command not found. Apr 05 03:19:35 I tried it w/ sudo and w/out. Apr 05 03:19:39 uh what Apr 05 03:19:45 Yep. Apr 05 03:20:23 if you're in the directory where the file is located, and the file is executable, sudo ./filename cannot possibly give permission dnied Apr 05 03:20:28 *denied Apr 05 03:20:32 it did. Apr 05 03:20:53 then it's an error produced by the program itself Apr 05 03:20:57 I'd guess Apr 05 03:21:01 Oh. Apr 05 03:21:02 Okay. Apr 05 03:21:04 No issue. Apr 05 03:21:41 just in case, can you pastebin a log of your terminal session where you invoke the command? (also include an invocation of ls -l filename) Apr 05 03:21:52 I already compiled the software earlier anyway. Apr 05 03:22:04 zmatt: I am sorry. I just erased the file. Apr 05 03:22:16 rm -rf Apr 05 03:22:25 Sorry man. Apr 05 03:22:36 why -rf ? Apr 05 03:22:53 rm all the junk that came along w/ it. Apr 05 03:22:58 it was a single file Apr 05 03:23:01 Oh. Apr 05 03:23:06 Oops! Apr 05 03:23:23 zmatt: I can get it back and test what you want me to test if necessary. Apr 05 03:24:05 I was just assuming you wanted to get that program working Apr 05 03:24:36 I have most of it working except for spidev-2.0/2.1. Apr 05 03:24:42 For the BBBlue. Apr 05 03:24:43 what do you mean? Apr 05 03:24:52 I will show you. Please hold. Apr 05 03:27:19 https://github.com/mirkix/BBBMINI/blob/master/doc/software/software.md but I think that it has many commands that should not be followed one after another. Apr 05 03:28:47 I did it natively. It took forever and a day. Apr 05 03:29:33 and? Apr 05 03:29:51 zmatt: I cannot find what I found earlier that had me listening to the commands. Please hold a bit longer. Apr 05 03:30:00 there are no references to "spidev-2.0/2.1" on that page, what are you trying to show me? Apr 05 03:31:24 Forget it. Apr 05 03:31:29 I cannot find it again. Apr 05 03:31:35 I will keep looking if necessary. Apr 05 03:31:54 or just explain what problem you're having Apr 05 03:32:22 it also still sounds odd to me that the prebuilt version wasn't working for you Apr 05 03:33:29 Oh well. Poo Poo happens. Apr 05 03:33:42 I guess I am mistaken and maybe that fellow changed something. Apr 05 03:34:00 Who knows? I will check. Apr 05 03:35:18 oh duh I can't believe it took me so long to realize it's you Apr 05 03:35:25 why do you need changing your name? that's really annoying Apr 05 03:35:39 need=keep Apr 05 03:37:36 Some person keeps using my names. Apr 05 03:38:06 first set_, then fortnight, and I got fed up. Apr 05 03:38:13 I just started typing random names. Apr 05 03:38:21 why don't you register your nickname with nickserv? Apr 05 03:38:30 Oh. I thought I did. Apr 05 03:38:33 set_ Apr 05 03:38:40 but they keep stealing it. Apr 05 03:38:59 you can't steal a nickname when it's registered with nickserv, that's what nickserv is for Apr 05 03:39:34 also, 05:38 -NickServ- set_ is not registered. Apr 05 03:39:55 Hmm. Apr 05 03:40:09 Oh. I will do that then. Apr 05 03:40:27 I stole fortnight. It was used by someone else. Apr 05 03:41:01 there is someone using the nickname right now, but he's been connected for less than a day so most likely that person will disconnect again sooner or later Apr 05 03:41:10 oh wait Apr 05 03:41:14 What? Apr 05 03:41:23 unless it was because of freenode itself Apr 05 03:41:30 I just realized I got disconnected earlier too Apr 05 03:41:34 Maybe. Apr 05 03:41:47 Updated servers? Apr 05 03:42:24 anyway, if that person disconnects (or changes name) and hasn't registered set_ with nickserv in the mean time, you can grab it and register it Apr 05 03:42:59 Okay. Apr 05 03:43:12 I could just state that this is set_. Apr 05 03:43:19 <<<<<<<< set_ Apr 05 03:44:26 anyway, I don't actually care what nickname you use, but it would be nice if you just picked one instead of changing it all the time Apr 05 03:44:39 Okay. Apr 05 03:44:41 Done. Apr 05 03:45:17 You just want to know not to talk to me. Apr 05 03:45:18 I know. Apr 05 03:45:37 Sorry but ding dong. Apr 05 03:45:39 ... Apr 05 03:47:57 I try to answer coherent questions regardless of who asks them Apr 05 03:50:19 Okay. Fair enough. Apr 05 05:11:16 Any ideas where to begin investigating that the PWR button doesn't trigger shutdown? Apr 05 05:11:32 which board? Apr 05 05:12:28 pocket beagle. I've seen it work. Maybe i'll try with a freshly flashed card that I haven't customized Apr 05 05:13:15 you've seen it work? interesting Apr 05 05:13:34 on this board, not necessarily with this sd card and whats' on it Apr 05 05:13:37 always debian Apr 05 05:13:45 but I've modified some things that mgiht be interfering Apr 05 05:14:01 it's not a currently intermittent problem, it's consistent Apr 05 05:14:33 it's not currently an intermittent problem, to word it better Apr 05 05:14:54 since I was just browsing the schematic and noticed it lacks the rtc oscillator... but I guess maybe the rtc can be configured to run off an internal clock source instead Apr 05 05:15:27 in that case it's just a kernel driver issue, iirc the pmic driver was already bad but actually got worse at some point Apr 05 05:15:42 I think I actually did a patch in our kernels for that reason, hold on Apr 05 05:15:49 maybe I misremember Apr 05 05:15:54 no wait, never mind, that's unrelated Apr 05 05:16:16 k. my rtc is working fwiw Apr 05 05:16:38 you're using it? Apr 05 05:16:50 yes Apr 05 05:17:06 but I'm talking about a pwr button not rtc eh? Apr 05 05:17:08 oh yeah I guess it keeps the time across reboot Apr 05 05:17:22 I know, but the rtc is requires to power off the system (don't ask) Apr 05 05:17:23 yes Apr 05 05:17:31 oh interesting Apr 05 05:17:44 actually that could be connected Apr 05 05:18:03 it's quite possible i've not seen the pwr button work only when the rtc isn't configured yet Apr 05 05:18:04 so, 'sudo poweroff' works normally? Apr 05 05:18:29 I usually do sudo shutdown -h now which works Apr 05 05:18:51 I think there's something a bit different about my rtc.. Apr 05 05:19:01 never mind then Apr 05 05:19:22 if poweroff (or shutdown -h) works normally then the issue isn't related to what I just said Apr 05 05:19:28 k Apr 05 05:19:46 so either no event is being generated, or the event doesn't trigger poweroff Apr 05 05:19:52 which kernel? Apr 05 05:20:25 I was thinking what's different is that my clock is at /dev/rtc1 instead of /dev/rtc0 Apr 05 05:20:36 maybe not important Apr 05 05:20:43 oh you're talking about an external rtc Apr 05 05:20:47 yes Apr 05 05:20:48 I'm talking about the internal one Apr 05 05:21:21 I think this contains the kernel version? /boot/dtbs/4.9.82-ti-r102/ Apr 05 05:21:28 yes Apr 05 05:21:40 and I think you taught me that :) Apr 05 05:21:41 does /sys/bus/i2c/devices/0-0024/tps65217-pwrbutton exist? Apr 05 05:21:44 thanks again Apr 05 05:24:19 yes, it does Apr 05 05:26:02 check the name of its event device: echo /sys/bus/i2c/devices/0-0024/tps65217-pwrbutton/input/input*/event* Apr 05 05:26:07 just trying with a new sd for a sec Apr 05 05:26:12 unmodified distro Apr 05 05:26:42 then monitor that event device using: Apr 05 05:26:51 perl -C0 -E 'say unpack "H*", $_ while sysread STDIN, $_, 256' and press the power button to see if an event is generated Apr 05 05:29:41 lol i just tried to eject the spring-loaded sd card with one finger instead of counter squeezing the other side of the board and it super ejected the thing across the room. I had a bit of trouble finding it Apr 05 05:29:59 been there, done that Apr 05 05:30:06 really? I haven't yet Apr 05 05:30:14 ? Apr 05 05:30:32 i will try your suggestion shortly. getting there. Apr 05 05:30:33 I mean I've also managed to high-speed-eject an sd card from a beaglebone once Apr 05 05:30:57 that's what I havne't yet :) Apr 05 05:31:48 uhh, but you just said that happened? I'm really confused now Apr 05 05:32:25 until now, I have not yet had a super-eject happen Apr 05 05:32:32 only controlled ;) Apr 05 05:33:03 k trying ... Apr 05 05:34:13 what is echo /sys/bus/i2c/devices/0-0024/tps65217-pwrbutton/input/input*/event* supposed to do? I did literally that and it repeated what I echoed Apr 05 05:34:40 what? it is supposed to list the filename(s) matching that glob Apr 05 05:34:57 you have a tps65217-pwrbutton device but it has no input event device within it? Apr 05 05:35:07 no just gave me back /sys/bus/i2c/devices/0-0024/tps65217-pwrbutton/input/input*/event* Apr 05 05:35:27 i haven't heard of input event devices before now Apr 05 05:35:41 https://pastebin.com/raw/Mt73RWzD Apr 05 05:36:46 what is inside the tps65217-pwrbutton for you? Apr 05 05:36:58 in ...pwrbutton I have, driver_override modalias power subsystem uevent Apr 05 05:37:14 eh? it didn't load the driver? Apr 05 05:37:41 maybe I should take a step back and tell you the very few things I have modified Apr 05 05:37:49 in case something catches your attention. Apr 05 05:38:10 in /boot/uEnv.txt I added a line to enable the 4 uarts Apr 05 05:38:15 you said you just tested an unmodified distro? Apr 05 05:38:45 I added a ppp chat script and replaced the interfaces file with a version that brings up ppp at boot Apr 05 05:38:52 enabling the uarts requires no changes in /boot/uEnv.txt Apr 05 05:39:29 maybe I'm working from old information Apr 05 05:39:47 and I modified the default pin mode for P2_01 by recompiling the dtb and replacing it Apr 05 05:39:58 (from pwm to gpio) Apr 05 05:40:25 all those things seem to be working Apr 05 05:40:36 i'll try with a newly flashed card righ tnow Apr 05 05:40:58 wait, pocketbeagle... what exactly did you do for the uarts? since unlike the beaglebone, there shouldn't be any information out there that makes you meddle with uEnv.txt for uarts Apr 05 05:41:03 for the pocketbeagle Apr 05 05:41:28 overlays are basically not used at all on the pocketbeagle Apr 05 05:41:40 (you still can for select purposes, but) Apr 05 05:41:58 changing the default pin mode is a good example of something for which you should probably use an overlay Apr 05 05:42:13 to avoid your changes from being lost when you update the kernel Apr 05 05:42:19 I was working with a bbg and I think I was told they're basically compatible but I don't know if that's exact enough Apr 05 05:42:25 bbg == beaglebone green Apr 05 05:42:39 for pinmux purposes they aren't, not remotely, since they have totally different headers Apr 05 05:42:42 and pin numbers Apr 05 05:43:23 oh i think i edited the wrong uEnv.txt Apr 05 05:43:26 as far as overall method of configuring pins, that is the same provided you're not staring at old information for the beaglebone Apr 05 05:43:29 i was going from this btw http://beaglebone.cameon.net/home/serial-ports-uart Apr 05 05:43:44 yeah that's totally obsolete information Apr 05 05:44:24 in fact, that won't do anything whatsoever Apr 05 05:44:30 on kernel 4.x Apr 05 05:44:31 hm no my uEnv was in the only place I found it Apr 05 05:44:36 so anyway yeah, old info? Apr 05 05:44:52 interesting.. what's the new way? Apr 05 05:45:35 brb Apr 05 05:47:36 btw i just checked on the fresh card the pwr button. I was logged in and when I pushed it the lights started flickering in a different pattern then settled on only pwr light and i think usr2 (3rd) led light on solid. It logged me out. Apr 05 05:47:46 when I shutdown -h now it turns off all the usr lights Apr 05 05:48:00 and only the pwr light stays on when i do that shutdown command Apr 05 05:48:18 in other words it's not shutting down Apr 05 05:48:33 so you're sure you've seen shutdown working? Apr 05 05:48:54 I wonder what it is doing, it kind of seems like on this fresh card it is Apr 05 05:49:00 except for that one solid light Apr 05 05:49:09 it's halted probably Apr 05 05:49:11 or is that more of a halt or something less power donw Apr 05 05:49:13 k Apr 05 05:49:17 or actually Apr 05 05:49:24 on the beaglebone green all the lights would go out Apr 05 05:49:31 brb Apr 05 05:49:44 it might also be waiting for the shutdown it scheduled via the rtc Apr 05 05:49:51 depends a bit on what they did in DT Apr 05 05:50:02 lemme check Apr 05 05:53:57 so in this fresh card fwiw i don't have my external rtc configured or any non-default DT stuff Apr 05 05:54:11 and the light is still on from the last shutdown so it's hung if it's waiting Apr 05 06:00:31 oops sorry back Apr 05 06:00:50 found the bug I think Apr 05 06:00:53 ooo Apr 05 06:02:56 in dtb-rebuilder, try applying this patch and recompiling the dtb: https://pastebin.com/gw6CtX5c Apr 05 06:02:57 hey, second-last post on this thread seems to suggest that editing /boot/uEnv.txt as I have is still relevant https://groups.google.com/forum/#!msg/beaglebone/TIHllcAeluc/YYOu-7h3CAAJ Apr 05 06:03:29 ok Apr 05 06:03:33 no, he said he did those two things and then it worked Apr 05 06:03:45 that's because the second thing made it work Apr 05 06:04:53 will try patch... Apr 05 06:05:07 that guy's using config-pin but that's not going to help at boot Apr 05 06:05:16 unless I guess he puts them in a service but then that's too late eh? Apr 05 06:05:24 why is that too late? Apr 05 06:05:49 i guess i meant it would be much later in time, which could be too late for ones application Apr 05 06:06:04 might be ok for me, not sure Apr 05 06:06:15 uhh, then you haven't arranged things right Apr 05 06:06:28 obviously you can have a service be ordered before whatever launches your application Apr 05 06:06:45 it's true Apr 05 06:06:46 you can of course also change the default pinmux to really have it done as early as possible Apr 05 06:06:55 yeah Apr 05 06:07:02 either by modifying the base dts or using a tiny overlay Apr 05 06:07:09 just so I"m super confident, how do you know the uEnv.txt is old news? Apr 05 06:07:10 I'm checking right now what the most elegant way is Apr 05 06:07:38 is the patch command just "patch foo.patch targetfile ? Apr 05 06:07:39 uEnv.txt itself isn't old news, just not needed as often anymore. capemgr however *is* old news Apr 05 06:07:49 k Apr 05 06:07:56 yeah that's what i meant, adding the line in it Apr 05 06:08:16 I think so yes, or just patch it manually Apr 05 06:08:21 k Apr 05 06:08:57 actually, on the beaglebone capemgr is old news Apr 05 06:09:01 on the pocketbeagle it has never been Apr 05 06:09:20 it doesn't exist at all on the beaglebone and never has Apr 05 06:09:27 capes, hence capemgr, are purely a beaglebone thing Apr 05 06:10:14 also, I just realized that you can also just remove the two lines instead of patching them Apr 05 06:10:39 since the int-clk declaration is already in the defaults for the SoC Apr 05 06:15:02 ohh Apr 05 06:15:05 makes sense Apr 05 06:16:18 trying it Apr 05 06:19:32 and ext-clk doesn't pertain to my external 3rd party rtc? Apr 05 06:19:40 not related at all Apr 05 06:19:55 how are you enabling the rtc btw? Apr 05 06:22:38 i'm enabling the rtc via a service that calls a .sh script whose main line is "echo ds3231 0x68 >/sys/bus/i2c/devices/i2c-1/new_device" Apr 05 06:22:51 then hwclock -s -f /dev/rtc1 Apr 05 06:24:47 zmatt so after rebooting with the new dtb the pwr button doesn't appear to have any effect Apr 05 06:25:15 I am still and will continue to use the fresh sd card Apr 05 06:25:23 this wasn't for fixint that Apr 05 06:25:29 check if poweroff works now Apr 05 06:25:46 shutdown -h now or poweroff Apr 05 06:25:46 (or shutdown -h now, which is technically wrong but works nonetheless) Apr 05 06:25:53 :) ok Apr 05 06:26:16 shutdown works as before, all lights except pwr button go off Apr 05 06:26:21 shutdown command* Apr 05 06:28:03 hm Apr 05 06:30:10 hmmm, the kernel driver doesn't clear the flag if ext-clk is missing, so if u-boot sets the flag then the problem would still exist Apr 05 06:30:29 hold on Apr 05 06:30:59 are you looking at the kernel source code for how it's interpreting the dtb? Apr 05 06:31:05 yes Apr 05 06:31:11 drivers/rtc/rtc-omap.c Apr 05 06:31:14 bad-ass Apr 05 06:32:09 i am actually curious to look at that too – what is the repository url? Apr 05 06:32:58 https://github.com/RobertCNelson/linux-stable-rcn-ee/blob/4.9.82-ti-r102/drivers/rtc/rtc-omap.c Apr 05 06:34:49 I've never been here before, I can see torvalds (Linux' namesake) committed recently but who's RobertCNelson and why does the kernel get to be in his repo? or is his a fork for BB specifically? Apr 05 06:37:23 rcn maintains the kernels and debian images for beagleboard.org Apr 05 06:37:48 cool Apr 05 06:41:09 do you mean the has_ext_clk flag? Apr 05 06:43:53 so your patch solution was to remove the ext_clk Apr 05 06:44:20 yes, since the pocketbeagle doesn't have an external 32768 Hz oscillator for the rtc Apr 05 06:44:22 and that is an on-board rtc that you think/know the pwr btn shutdown relies on Apr 05 06:44:30 ok Apr 05 06:44:32 poweroff relies on it Apr 05 06:44:35 not the power button Apr 05 06:44:39 that's a separate issue Apr 05 06:44:42 power button triggers poweroff ? Apr 05 06:45:02 it's supposed to, except for some reason the power button driver didn't load for you Apr 05 06:45:14 hence no power button event Apr 05 06:45:18 hence no poweroff triggered Apr 05 06:45:37 can't remember, maybe that was on the customzied sd not the fresh one. .. i'll double check fresh one Apr 05 06:47:04 yeah still driver_override modalias power subsystem uevent Apr 05 06:47:37 I'm first making a little thingy to check the extrtc thing Apr 05 06:47:49 if poweroff doesn't work, making the power button work isn't helpful either :) Apr 05 06:47:51 if I had to I could connect a button to a gpio but it's not ideal at this point Apr 05 06:48:07 i see, cool Apr 05 06:49:14 I tried sudo poweroff and it behaves the same as sudo shutdown as far as logging me out and one remaining PWR button FYI Apr 05 06:49:46 shutdown -h invokes poweroff yes Apr 05 06:50:22 i see Apr 05 06:58:36 almost midnight here. Can I try your extrtc tool shortly or tomorrow? Apr 05 06:58:40 thanks btw Apr 05 07:03:14 zmatt I'll come back on after a show and ping ya in case there's anything new you wanted me to try. Cheers, Apr 05 07:10:56 jkridner[m]: if you (or anyone else) want to try if switching the rtc clock source to internal fixes the issue of the pocketbeagle refusing to poweroff: grab https://liktaanjeneus.nl/rtc-clksrc.tar.gz and run: ./rtc-clksrc --int Apr 05 07:11:00 (and then try poweroff) Apr 05 07:38:27 zmatt back Apr 05 07:41:33 windsurf_: https://liktaanjeneus.nl/rtc-clksrc.tar.gz Apr 05 07:41:47 grab that, try sudo ./rtc-clksrc --int and then poweroff Apr 05 07:45:24 cool, will do Apr 05 07:46:10 windsurf_: also, this probably helps for making the power button work: https://pastebin.com/cuecjbrR Apr 05 07:46:41 actually the status="okay" is superfluous Apr 05 07:48:07 (there's a tendency to add this out of habit, but it's actually only relevant to override a previous status = "disabled"; Hence, putting status = "okay"; in the declaration of a new node is pointless) Apr 05 07:51:06 zmatt yes, that turned all the lights off when it shut down cool Apr 05 07:52:33 cool. I've just mailed rcn about that Apr 05 07:52:48 nice work, what did you do? Apr 05 07:53:40 you mean what rtc-clksrc does? it just toggles the clock source select bit in the rtc Apr 05 07:53:50 note that it's not actually safe to do so while the rtc is enabled Apr 05 07:54:05 since this could glitch the clock and mess up the rtc state Apr 05 07:54:15 yes that's what i meant Apr 05 07:54:30 I've also found the reason why fixing the DT isn't sufficient Apr 05 07:54:59 u-boot actually enables the rtc and unconditionally sets the clock source to external Apr 05 07:55:21 without rtc-clksrc is the current behaviour of running poweroff benign? Apr 05 07:55:29 other than consuming power I assume Apr 05 07:55:48 well, presumably you have a reason for wanting to power off the system Apr 05 07:56:06 right now it's just... not Apr 05 07:56:15 btw does my second patch fix the power button issue? Apr 05 07:57:19 I have two concerns: one, being able to turn off the device without corrupting the sd card so that's why I want the proper shutdown. once I know it's safe, I have a basic physical power switch to disconnect it from the battery. So, even if poweroff gets it to the state it currently does where I think it's safe to turn off the power I think I'm ok with that Apr 05 07:57:24 I haven't tried the patch just yet Apr 05 07:57:44 ok yeah, halting suffices for that Apr 05 07:57:47 great Apr 05 07:58:10 we've got some more elaborate ideas for a managed power system for shutoff but it's not in scope atm Apr 05 07:58:51 to get proper poweroff, using rtc-clksrc as temporary workaround until rcn fixes the issue in u-boot is probably not very hazardous either, since you don't really care about the rtc state anyway. Apr 05 07:59:41 the only rtc state I care about is our 3rd party one as long as whatever might happen with the onboard one is benign Apr 05 07:59:54 exactly Apr 05 08:00:01 btw I added some pocketbeagle examples to https://github.com/mvduin/overlay-utils Apr 05 08:00:09 including one for changing the default pinmux Apr 05 08:00:33 nice Apr 05 08:00:58 this may be a desirable alternative to patching the main dts, since then you can upgrade/switch kernel versions without worry Apr 05 08:01:21 I don't know how to use this yet Apr 05 08:01:23 see the comments in uEnv.txt on how to enable overlays Apr 05 08:01:32 or, well Apr 05 08:02:04 dtb_overlay=/path/to/your/overlay.dtbo Apr 05 08:02:45 thanks a lot! Apr 05 08:03:29 I've obviously not tested these examples *at all* other than checking they compile :) (I don't have a pocketbeagle) Apr 05 08:03:49 ok Apr 05 08:10:19 fares36 /msg Apr 05 08:24:39 zmatt I get a parse error after patching Apr 05 08:25:06 this is my diff now https://pastebin.com/P08WFK64 Apr 05 08:25:38 huh, I copied that block literally from am335x-bone-common.dtsi Apr 05 08:26:19 ahh Apr 05 08:26:50 am335x-pocketbeagle-common.dtsi is missing (at the top): #include Apr 05 08:27:54 i.e. overall patch https://pastebin.com/4uWML005 Apr 05 08:28:39 gotcha. tryin' Apr 05 08:28:59 I mean, https://pastebin.com/f6xgPYRh :P Apr 05 08:31:13 zmatt I guess i'm missing that header Apr 05 08:31:19 file Apr 05 08:31:31 dt-bindings/mfd/tps65217.h Apr 05 08:31:59 I really appreciate your help but it's really late and I can't think straight anymore. mind if I see if I can find you tomorrow sometime? Apr 05 08:32:02 that's impossible Apr 05 08:32:10 it's right there => https://github.com/RobertCNelson/dtb-rebuilder/blob/4.9-ti/include/dt-bindings/mfd/tps65217.h Apr 05 08:32:24 I got fatal error: dt-bindings/mfd/tps65217.h: No such file or directory Apr 05 08:32:34 you are rebuilding the dtb using dtb-rebuilder right? Apr 05 08:32:37 branch 4.9-ti Apr 05 08:32:41 (to match your kernel) Apr 05 08:33:01 I just ran, make src/arm/am335x-pocketbeagle.dtb Apr 05 08:33:06 in.. ? Apr 05 08:33:13 the root of the cloned repo Apr 05 08:33:18 which branch? Apr 05 08:33:21 um. Apr 05 08:33:24 master i suppose Apr 05 08:33:32 oh Apr 05 08:33:44 git branch gives me 4.4-ti Apr 05 08:33:50 bingo, wrong branch Apr 05 08:33:57 ok cool Apr 05 08:34:19 anyway, good night :) Apr 05 08:34:28 i'll try once more, can't help it Apr 05 08:43:24 hey zmatt so the pwr button does now log me out and reach what I think we suspect is a halted state. so that's progress and probably all we really need Apr 05 08:43:28 is that what you expected? Apr 05 08:44:07 yes, and optionally you can use my utility in a startup script to switch the clock source to internal, and then poweroff will truly poweroff Apr 05 08:44:59 yeah that's great Apr 05 08:45:02 thanks so much! Apr 05 08:45:08 jkridner[m]: btw, I'm pretty sure OSC1_IN on the pocketbeagle should have been grounded to keep the input from floating Apr 05 08:45:22 windsurf_: you're welcome! and have a good night Apr 05 08:45:26 good night Apr 05 09:58:22 hi Apr 05 09:58:52 I wondered if anyone knows if its actually possible to setup GPIO interrupt using poll() with the sysfs gpioXX/value file? Apr 05 09:59:19 I am currently doing this, but the poll() function always returns > 0, no matter if the value is 1 or 0 Apr 05 09:59:57 or is the better way to write a kernel module that signals my userspace application when an interrupt occurs Apr 05 10:00:31 TonyTheLion: using poll() is correct Apr 05 10:00:54 hmmm Apr 05 10:00:54 but, the right way is not intuitive Apr 05 10:01:04 so I must be doing something wrong Apr 05 10:01:19 let me check if I have an example somewhere Apr 05 10:12:28 TonyTheLion: hold on, this deserves a good example... I had an unfinished one Apr 05 10:15:31 ok cool Apr 05 10:43:39 ok, seems to be working Apr 05 10:46:14 very nice Apr 05 10:47:14 https://gist.github.com/mvduin/578509d458da8948ae3a14a81dc639e4 Apr 05 10:47:17 sorry for the lack of comments Apr 05 10:48:12 I'm not really happy with the example as-is yet, but I already spent more time on it than I planned Apr 05 10:48:44 and it shows most things relevant for using gpios Apr 05 10:50:26 thanks :) Apr 05 10:51:41 actually the "low"/"high" the demo prints is wrong for active_low inputs... I should just have printed 0/1 or false/true Apr 05 10:55:50 wait what Apr 05 10:55:54 how can this even have worked Apr 05 10:56:04 I forgot the return statement in open_attribute Apr 05 10:59:45 that's what I get for hastily compiling without a makefile (hence no optimization and no warnings) Apr 05 11:00:00 okay, gist fixed Apr 05 11:01:18 cool thanks :) Apr 05 11:01:20 (still kinda funny it accidently worked because the desired return value already happening to be in register r0) Apr 05 11:01:25 *happened Apr 05 11:04:35 zmatt: I'm not sure I understand the reasoning behind the `c & 1`? Apr 05 11:04:53 where? Apr 05 11:05:18 ah there Apr 05 11:05:29 c is '0' or '1' Apr 05 11:05:46 doing & 1 is one of many ways of turning that into 0 or 1 Apr 05 11:05:59 c - '0' would also work Apr 05 11:06:04 or c != '0' Apr 05 11:07:18 I'll change it to c != '0' Apr 05 12:02:55 hello Apr 05 12:04:13 I have question according to BeagleBone Blue. I'm trying to assembly my first drone with this board and im confuseing about power connection. Should i use PDP to power my ESC? Apr 05 12:04:33 or this is enought to connect ESC to board and battery to battery switch? Apr 05 12:04:46 or it is enought to connect ESC to board and battery to battery switch? Apr 05 12:13:34 hello Apr 05 12:15:54 HELP Apr 05 12:18:06 hello i need to your help Apr 05 12:18:22 Naga_: nobody can help until you state you case of emergency. Apr 05 12:19:51 which pins are controlling by Ethernet Connection Apr 05 12:20:50 I don't think any of the Ethernet related signals are on the headers Apr 05 12:21:11 what are you trying to do? Apr 05 12:22:26 I connected some I/O cards which as Analogue inputs and Digital Inputs and Digital outputs at that time ethernet communication is halt Apr 05 12:23:29 it is more likely that the system halted or crashed due to whatever you did Apr 05 12:25:47 if iam connected I/O cards ehternet is not working. if iam connected ethernet superately without connecting I/O cards ehternet is working Apr 05 12:26:44 to beagleboneblack Apr 05 12:27:46 there is no any crashing only ethernet is not working on the beaglebone Apr 05 12:32:14 Hi, may i have the email adress , need this information for a company Apr 05 12:32:26 please replay to that answer Apr 05 12:32:30 support email Apr 05 12:34:42 hello Apr 05 12:34:43 I have question according to BeagleBone Blue. I'm trying to assembly my first drone with this board and im confuseing about power connection. Should i use PDP and separate power connection to power my ESCs? Or just connect battery to battery port and ESCs to Servo/ESCs ports and that will work? Apr 05 12:35:24 @team Is this the question for me about support email Apr 05 13:27:20 please help guide to me when i was connected I/O cards,Digital outputs,digital inputs to the beagleboneblack than ethernet is halt. Apr 05 13:28:05 with out connected I/O cards to the beagleboneblack ethernet is working fine Apr 05 13:36:47 omg the channel is being flooded Apr 05 13:54:26 is the industrial version of the beaglebone black no longer available? Apr 05 14:19:08 has anyone here ever used a polled GPIO interrupt using 'poll()' as a wakeup source? Apr 05 14:20:00 I have a device that sends an interrupt, I now use 'poll()' to get that interrupt, but now I want the beagle to wake from standby through this interrupt Apr 05 15:44:25 TonyTheLion: if setting the 'edge' attribute on the gpio does not suffice to make it a wakeup source, I'm not actually sure what is Apr 05 15:44:36 I haven't done anything with suspend in ages Apr 05 15:45:18 ah, depending on which suspend mode is used, it may be necessary to specifically use a gpio of bank 0 Apr 05 15:46:24 hmm, it might be different these days Apr 05 15:47:12 "standby" supports any gpio, "suspend" only gpio0 Apr 05 15:52:03 I currently have 'edge' set to 'both' Apr 05 15:52:12 is that what it should be set to? Apr 05 15:52:36 if you want to trigger on both edges, then yes Apr 05 15:53:26 so I don't have to have the /sys/class/gpio/gpioxx/power/wakeup file? Apr 05 15:53:56 I'm using a gpio0 bank pin Apr 05 15:54:33 also, most examples I can find use the gpio-keys driver Apr 05 15:55:00 I've seen that, but its unclear to me how to use that. Is that just a device tree config? Apr 05 15:55:20 yes, e.g. using an overlay Apr 05 15:55:31 are you using beaglebone or pocketbeagle? Apr 05 15:55:39 beaglebone black Apr 05 15:56:03 I have an overlay that just sets my pin to pulldown and mode 7 Apr 05 15:56:21 ah you're already using overlays instead of cape-universal Apr 05 15:56:47 I was about to say "you can add a gpio-keys device using an overlay, but the downside is that this will implicitly disable cape-universal" Apr 05 15:56:58 haha Apr 05 15:58:06 do you have an example on how to make a GPIO pin a GPIO-keys device with overlays? Apr 05 15:58:22 which pin/gpio ? Apr 05 15:58:40 p8_14 Apr 05 16:06:05 active-high or active-low? Apr 05 16:06:40 active-high Apr 05 16:10:00 try grabbing https://github.com/mvduin/overlay-utils and then: make gpio-wakeup-key.dtbo Apr 05 16:10:28 let me try Apr 05 16:13:04 zmatt: does adding a new overlay require a reboot actually? Apr 05 16:13:49 uhh, depending on kernel version you may be able to load them at runtime (although that is deprecated and going to go away eventually) Apr 05 16:14:12 in current images overlays are normally applied to the DT by u-boot, before it passes it to the kernel Apr 05 16:14:24 ah I see Apr 05 16:15:02 if you're still using an older image or have disabled u-boot overlays, then you can runtime-load them using capemgr Apr 05 16:15:13 either way you can probably still runtime-load them using configfs Apr 05 16:15:28 my overlay-utils repo actually has some scripts for that in bin/ Apr 05 16:16:07 but runtime-loading of overlays can be a bit buggy anyway (one of the reasons it's deprecated) Apr 05 16:45:04 zmatt: now when I try to write 'echo 26 > export' in the /sys/class/gpio folder it just says 'device or resource busy' Apr 05 16:45:22 or is this no longer required with that overlay? Apr 05 16:46:40 sorry I logged out and logged in again Apr 05 16:50:53 if I go back to my old .dtbo for that pin it works again, ie I can write 'echo 26 > export' and get a gpio26 folder Apr 05 17:05:13 zmatt: I found the pin under /sys/devices/platform/gpio-keys/input/input1 but its no longer acting as a pin now. It doesn't have value or edge or direction anymore Apr 05 17:05:20 is there any guide on how to use it like that? Apr 05 17:09:18 it's now a key, like that of a keyboard Apr 05 17:14:39 so all my poll() event code is no longer necessary? Apr 05 17:15:09 how would I address it in code? as 'input1'? Apr 05 17:38:28 `cat /dev/input/event1 | hexdump -C` produces bytes when I trigger the interrupt Apr 05 17:38:55 don't know how to interpret them... I guess perhaps if I'm reading anything at all it means there's an interrupt Apr 05 18:05:48 I need to set up wifi using a usb dongle. I've done it once before with raspberry pi and on a wireless version of beaglebone but not on pocket beagle. Apr 05 18:06:04 I need to set up wifi using a usb dongle. I've done it once before with raspberry pi and on a wireless version of beaglebone but not on pocket beagle. Apr 05 18:06:14 My question is: are all usb wifi dongles configured equally? Apr 05 18:06:38 they ones that look like a memory stick or the super short stubby ones Apr 05 18:10:30 wow I got it to wake up just reading from event1 and ignoring what its reading Apr 05 18:11:05 zmatt: ^ Apr 05 18:13:10 TonyTheLion: you're reading a stream of struct input_event objects, declared in Apr 05 18:13:19 of course there are libraries to make dealing with it easier Apr 05 18:15:56 do you even need to be reading from event1 ? Apr 05 18:16:03 I'd assume it will wake up regardless Apr 05 18:16:07 this is just an interrupt signal Apr 05 18:16:27 there's no data on that line per se Apr 05 18:16:45 a signal is data Apr 05 18:18:29 I mean its not data that I can do anything with, other than know I have to wake up Apr 05 18:19:08 you're right I don't need to read from it Apr 05 18:25:09 zmatt: thanks for your help. It was valuable :) Apr 05 18:26:05 TonyTheLion: https://pastebin.com/Nc3D4JME Apr 05 18:26:31 example of decoding key events from an evdev device :) Apr 05 18:27:28 you don't need it, but just to show it's actually really easy Apr 05 18:28:49 oh cool Apr 05 18:28:51 I'll have a look Apr 05 19:48:30 are all usb wifi dongles configured equally? Apr 05 20:07:29 zmatt: out of curiosity, how do I use Uboot? Apr 05 20:07:48 I have a feeling I probably screwed up everything Apr 05 20:08:00 I copied the stuff on over to where it goes. Apr 05 20:08:09 Now I don't kno what to do with the uboot things. Apr 05 20:15:41 I don't know what the steps to follow are Apr 05 20:27:41 what is the best way to launch the cloud 9 IDE from the LXQt operating system on a BBBlack not connected to a laptop. Noooo laptop or other external computer. Apr 05 20:28:49 that sounds incredibly painful Apr 05 20:29:37 do you know how to do it Matt? Apr 05 20:30:09 I don't use any sort of desktop environment on any beaglebone, nor do I use cloud9 Apr 05 20:31:27 but I don't really see the problem: cloud9 is a web application, so you need to start a webbrowser and open it up. what is the issue? Apr 05 20:31:28 zmatt: so what do I need to do now that I've copied the stuff on over Apr 05 20:32:02 don't have the energy right now, sorry Apr 05 20:32:05 Oh sorry Apr 05 20:32:08 np Apr 05 20:32:12 I might as well postpone this then Apr 05 20:32:15 And do something else. Apr 05 20:33:02 or try to figure it out Apr 05 20:33:26 I've tried Apr 05 20:33:26 Thanks. I'll see what happens with the browsers that come with the BBB. Apr 05 20:33:32 I'm not finding enough relevant information Apr 05 20:33:39 I don't know how to actually make the system pick a kernel Apr 05 20:34:00 I don't have GRUB installed so there's no using that either Apr 05 20:34:01 can you pastebin the contents of your /boot/uEnv.txt ? Apr 05 20:34:11 grub is not applicable here Apr 05 20:34:16 I didn't think it was Apr 05 20:34:21 but that's the way I'd normally pick a kernel. Apr 05 20:34:33 it's similar for u-boot Apr 05 20:34:36 just a config file Apr 05 20:34:38 There just plain isn't a /boot/uEnv.txt Apr 05 20:34:41 oh Apr 05 20:34:49 there is a boot.txt Apr 05 20:35:00 however that doesn't appear to be a config file Apr 05 20:35:17 then I can't help you, since it means the setup you're using isn't like that on the standard debian images Apr 05 20:35:30 Oh, alright. Apr 05 20:35:31 you'll need to find someone who knows where this stuff is configured on arch Apr 05 20:35:35 Well, I'll ask in #archlinux-arm Apr 05 20:37:25 apparnetly uEnv.txt is deprecated Apr 05 20:39:04 how arch is expecting you to *not* do it isn't particularly important, what matters is how it *does* expect you to do things :) Apr 05 20:48:14 zmatt: let's try the uEnv.txt Apr 05 20:48:25 you said there wasn't one Apr 05 20:48:26 I need to make a new one I believe. Apr 05 20:48:30 No but apparently I can still use one. Apr 05 20:48:31 that sounds implausible Apr 05 20:48:42 yeah but it already has a selection mechanism for the kernel right? Apr 05 20:48:55 Let's see if it boots if I make a blank uEnv.txt Apr 05 20:49:16 why not just select the kernel in whatever way you're supposed to on arch? Apr 05 20:49:32 I have no idea what Arch does anda pparnetly nobody else does either. Apr 05 20:49:37 ... Apr 05 20:49:50 It still boots Apr 05 20:49:50 what's in /boot/ ? Apr 05 20:49:54 I'm looking to query my board for a unique value like a mac address so that I can clone some sd cards and have one unique identifier that I can read with software so that I don't have to give them a UID one by one manually Apr 05 20:50:13 any recommendations? This would be something that wouldn't carry across in cloning the SD card Apr 05 20:50:17 windsurf_: mac address Apr 05 20:50:31 or board serial number Apr 05 20:50:34 zmatt I can't remember is a mac address specific to an ethernet/usb port or something Apr 05 20:50:39 oh how do you get the board serial num? Apr 05 20:50:40 the SoC Apr 05 20:50:53 mac address relates to SoC? Apr 05 20:50:54 each AM335x SoC actually has 3 reserved MAC addresses Apr 05 20:51:06 why 3? Apr 05 20:51:08 the range is burned into eFuse during manufacturing Apr 05 20:51:20 and they're unique per BB? Apr 05 20:51:22 because of its integrated ethernet switch Apr 05 20:51:33 MAC addresses are unique worldwide Apr 05 20:51:44 cool can I get the mac address regardless of whether I'm using ethernet? Apr 05 20:52:23 zmatt: so what do I put in uEnv.txt Apr 05 20:52:49 FL4SHK: no idea, since I don't know how the u-boot you're using is configured Apr 05 20:53:07 Darn it why can't it be standard Apr 05 20:53:27 maybe it is Apr 05 20:53:34 just not one I'm familiar with Apr 05 20:53:39 windsurf_: yes Apr 05 20:53:46 cool Apr 05 20:58:51 zmatt does this look like a good way to do it? http://www.mattwind.com/2015/03/beaglebone-black-serial-number-from.html Apr 05 21:03:50 windsurf_: obtaining mac address regardless of whether ethernet is in use: https://pastebin.com/yznKAG8x Apr 05 21:04:22 woah thanks Apr 05 21:04:40 and yeah you can read the board serial eeprom like that, although the preferred way is using /sys/bus/nvmem/devices/0-00500/nvmem (this also doesn't require sudo) Apr 05 21:04:57 I just want any UID Apr 05 21:05:41 mac address seems safer... there are definitely boards without properly programmed eeprom (especially beaglebone black wireless) Apr 05 21:06:01 ok, good to know Apr 05 21:06:55 although it should usually be fine too Apr 05 21:32:43 sweet just bought a 1 to 7 SD card duplicator. Apr 05 22:56:42 zmatt: got the kernel stuff set up. Apr 05 22:56:44 I'm good to go. Apr 05 22:57:36 So now what? Apr 05 22:57:49 there was that kernel module I was supposed to compile Apr 05 22:58:31 can I just compile that on the machine itself? Apr 05 23:16:52 tfw you figure out the reason no new usb devices were showing up was because you still hadn't rebooted after a kernel upgrade Apr 05 23:29:04 FL4SHK: you normally compile it on the same machine as where you compiled the kernel Apr 05 23:29:22 Kitlith: lol Apr 05 23:31:20 FL4SHK: in https://github.com/mvduin/omap5-sgx-ddk-linux adjust lines 6-7 of build.sh to match your setup and put an exit statement before line 39 (since from that point on it's going to build the debian package) Apr 06 00:05:53 zmatt: thinking I don't need to edit line 7 Apr 06 00:06:59 if you have ccache installed and "arm-linux-gnueabihf-gcc" is the right compiler (the same you used for the kernel), then indeed you don't Apr 06 00:07:07 ...never mind I need to edit the compiler Apr 06 00:08:23 zmatt: Yeah so what about the compiler that was automatically obtained for building the kernel? Apr 06 00:08:28 Where can I find that? Apr 06 00:08:49 no idea, never used that part of the script, but it can't be hard to find Apr 06 00:08:53 oh I see Apr 06 00:10:13 Yeah it downloaded the thing. Apr 06 00:24:12 zmatt: so I built it Apr 06 00:24:38 Do I just put the built modules into the same directory I installed the other modules? Apr 06 00:25:40 I think I'm going to need to run mkinitcpio again to add the module at boot. Apr 06 00:25:50 mkinitcpio is a nice thing from Arch at least. Apr 06 01:27:47 alright, I downloaded the latest image from the beaglebone website and want to start working with the PRUs. Apr 06 01:29:09 according to http://catch22.eu/beaglebone/beaglebone-pru-uio/ there's only one image on the website suitable for uio stuff, but it's a bit outdated (I put debian 9.x on there instead of 8.x) Apr 06 01:29:25 eh? Apr 06 01:29:49 actually uio-pruss should work fine in the latest images Apr 06 01:29:56 you can select between it and remoteproc-pru in /boot/uEnv.txt Apr 06 01:30:02 yeah, that's what I wanted to check Apr 06 01:30:16 but appearantly in the 8.7 image remoteproc was hardcoded Apr 06 01:30:34 (lots of outdated info, yaaaaaay...) Apr 06 01:31:02 that's a bit of an overstatement, but in some cases it was awkward to get uio-pruss enabled Apr 06 01:31:29 (although switching to a -bone kernel has always been a working solution to get uio-pruss) Apr 06 01:31:56 mm, I see, that particular page must not have dealt with switching kernels Apr 06 01:32:12 but nowadays switching is easy: https://pastebin.com/q5KTtdLx Apr 06 01:32:39 and then a reboot Apr 06 01:32:42 yeah Apr 06 01:33:19 (I'm *finally* going to try and get to crazy dma hacks, but need to set the environment back up) Apr 06 01:33:30 (shameless plug: I also have a project for using uio-pruss from python: https://github.com/mvduin/py-uio/#uio_pruss ) Apr 06 01:33:35 yay, crazy dma hacks Apr 06 01:34:11 zmatt: so, out of curiosity, how do I install .ko files? Apr 06 01:34:17 so, unless you have an interface for setting up dma hacks in python, probably going to use C++ xD Apr 06 01:34:21 do I put htem in /usr/lib/modules/kernel/? Apr 06 01:36:23 Kitlith: both are equally possible Apr 06 01:36:35 Kitlith: hey I'm pretty sure I know you Apr 06 01:37:31 Kitlith: there are no better ways for setting up crazy dma hacks from userspace using C++ than there are using python Apr 06 01:38:34 don't particularly care, either way I'm gonna need a crash course in this DMA because last time I took a look at the documentation I didn't understand a thing. >_> Apr 06 01:38:52 (probably because I've never worked with dma... ._.) Apr 06 01:39:05 I thought DMA was mainly for doing data copies Apr 06 01:39:13 or at least that's how I've used it. Apr 06 01:39:26 Kitlith: https://liktaanjeneus.nl/edma3.h.html Apr 06 01:39:28 it is. and that's still what's going to happen in the end! Apr 06 01:40:04 my header for edma, with descriptive names for registers and lots of notes Apr 06 01:40:23 it's just going to be from pru memory to peripheral registers instead of something, well, sane Apr 06 01:41:08 FL4SHK: normally pvrsrvkm.ko is installed in extra/ in the modules directory of your kernel, i.e. /lib/modules/$VERSION/extra/pvrsrvkm.ko Apr 06 01:41:32 And is that the only thing I need? Apr 06 01:41:43 from that thing you had me build Apr 06 01:42:03 were you expecting more? Apr 06 01:42:09 there were other .ko files Apr 06 01:42:13 after installing the file run depmod Apr 06 01:42:52 oh wait Apr 06 01:42:58 I misread Apr 06 01:43:11 oh, I see you're assuming a layout for bitfields in C++ Apr 06 01:43:18 probably the best for your sanity Apr 06 01:43:33 Kitlith: portability to other architectures is not relevant here Apr 06 01:43:41 yeah Apr 06 01:44:32 FL4SHK: it's not producing any other .ko file for me Apr 06 01:44:47 " I misread" :P Apr 06 01:44:50 ok Apr 06 01:44:55 yeah so I got that installed Apr 06 01:44:58 What now? Apr 06 01:45:10 ok, reboot and confirm that it gets automatically loaded Apr 06 01:45:31 with lsmod I take it Apr 06 01:46:20 ye it loaded automatically. Apr 06 01:47:04 so, now we have a /dev/dri/render* device... next up: the sgx userspace libs Apr 06 01:47:44 yes we do indeed have the render* Apr 06 01:47:48 renderD128 specifically Apr 06 01:47:57 Kitlith: btw to understand the basic functionality of edma it's probably best to start with edma3-tc.h (notice the #include near the top is a link) Apr 06 01:48:26 oh, I'm missing the uio_pruss module, does that mean I should switch to a bone kernel? Apr 06 01:48:41 since I'm appearantly on a ti kernel? Apr 06 01:48:46 Kitlith: latest 4.9-ti kernel should be fine too Apr 06 01:48:56 or 4.14-ti really Apr 06 01:49:14 k, is there somewhere I should grab the module from then? Apr 06 01:49:15 -bone is fine too, I'm using a kernel based on 4.14-bone Apr 06 01:49:21 no it should be included Apr 06 01:49:49 on 4.9-ti, should I go up to 4.14? Apr 06 01:50:28 it's included with the latest 4.9-ti too Apr 06 01:50:32 100% sure Apr 06 01:51:07 modprobe: FATAL: Module uio_pruss not found in directory /lib/modules/4.9.82-ti-r102 is what I've got Apr 06 01:51:51 that's not remotely the latest 4.9-ti kernel Apr 06 01:52:10 btw, are you using beaglebone or pocketbeagle ? Apr 06 01:52:15 bbgw Apr 06 01:52:20 ok Apr 06 01:52:31 (and condolences) Apr 06 01:52:33 I see I need to grab a new kernel anyway, heh Apr 06 01:53:43 4.9.88-ti-r108 was released a few hours ago, along with 4.14.32-ti-r42 Apr 06 01:54:35 (and 4.9.92-bone10 and 4.14.32-bone14 two days ago) Apr 06 01:55:30 switching to 4.14 (and grabbing latest while doing so) Apr 06 01:56:30 not super familiar with the ecosystem, used to `apt (dist-)upgrade` handling the kernel Apr 06 01:56:57 you upgrade the kernel with apt, but it doesn't upgrade automatically Apr 06 01:58:00 oh Apr 06 02:00:50 FL4SHK: I'm trying to figure out which branch of the userspace libs I'm actually using in production... Apr 06 02:04:44 whee, got a blinking led from the pru. Apr 06 02:06:49 Kitlith: btw you can reserve some "PaRAM slots" (i.e. what my header calls jobs) via DT: &edma { ti,edma-reserved-slot-ranges = <64 3>; }; for example would reserve slots 64, 65, and 66 (i.e. the kernel driver will make sure not to use those) Apr 06 02:07:36 I think it also used to be that case that slots 0..63 were reserved for use by the corresponding channels 0..63 but I'm not sure if that's still true Apr 06 02:08:43 right, I should modify a dtb (probably the uio_pruss dtb) and add that in, right? Apr 06 02:09:15 FL4SHK: you can try the ti-img-sgx/1.14.3699939 branch or the ti-img-sgx/next branch of https://github.com/rcn-ee/ti-omap5-sgx-ddk-um-linux Apr 06 02:09:35 FL4SHK: my own branch hasn't been updated in a bit and it looks like some fixes I did might not be needed anymore Apr 06 02:10:23 FL4SHK: targetfs/ti335x/ is the relevant stuff Apr 06 02:16:00 actually, I see they use a symlink from libGLESv2.so.2 to libGLESv2.so.1.14.3699939 Apr 06 02:16:46 I used a tiny shared lib that just pulls in libGLESv2.so.1.14.3699939 ... I had a reason for that but I can't remember what it was Apr 06 02:17:36 here's what it looks like on my filesystem: https://pastebin.com/raw/DztPWq5c Apr 06 02:23:01 FL4SHK: and here's my udev rule and service file: https://pastebin.com/jnsa4M0S https://pastebin.com/XBkFhd3v Apr 06 02:23:26 this "compiles" dts-wise, but there's no way that does what we intend to do: https://paste.pound-python.org/raw/a1AwQZCpil8J8EdDb8lg/ Apr 06 02:23:43 Kitlith: correct Apr 06 02:23:45 it doesn't Apr 06 02:26:33 that's a pretty weird overlay to begin with, even the original Apr 06 02:27:29 I see. have a suggestion for a different overlay to use? Apr 06 02:29:09 I'd expected an overlay with target=<&ocp>, instead of overlaying target-path="/" with an ocp{} node. for edma you need a second fragment with target=<&edma> Apr 06 02:31:15 or write it like https://pastebin.com/eiD2TFNN and compile it with my https://github.com/mvduin/overlay-utils (which uses a little script to preprocess this into the ugly syntax required for overlays) Apr 06 02:31:56 ... Apr 06 02:32:21 set_: woo, now quickly register it with nickserv Apr 06 02:32:31 It is me and not her! Apr 06 02:32:44 I know nothing about nickserv. Apr 06 02:33:16 hey, I'm just modifying the overlay that gets set in uEnv to enable uio Apr 06 02:33:26 I know :) Apr 06 02:33:28 I will not interrupt for now. Apr 06 02:34:01 Kitlith: that doesn't change the fact that my overlay-util make the overlay much more readable and less painful to add stuff to Apr 06 02:34:18 https://paste.pound-python.org/raw/wsTYK9NiMnbW2kmFXuri/ is this closer to what'd be needed? Apr 06 02:34:31 (since I already wrote that out) Apr 06 02:34:33 yes Apr 06 02:36:45 and then I need to check that it was applied like we think it should be. Apr 06 02:36:47 in case you're wondering btw: my crazy DMA hack was to change the duty-cycle of a PWM output every period (by DMA'ing these values from a buffer) to produce the weird custom serial protocol for ws2812 leds Apr 06 02:37:15 (since at the time I was way more familiar with EDMA and with the PWM peripheral than I was with PRU, so it seemed like a good idea at the time) Apr 06 02:37:25 hah Apr 06 02:37:42 compiling w/ ./waf --board=blue for ardupilot now (myself). Apr 06 02:37:58 = will take forever since I am using the BBBlue. Apr 06 02:38:15 it's a better idea to just do delays in pru assembly, isn't it? Apr 06 02:38:38 absolutely, using pru for this is way saner Apr 06 02:38:57 I should have put in the little bit of effort of getting familiar with pru back then Apr 06 02:39:02 but well, that's 20/20 hindsight Apr 06 02:39:21 and oh well, this works too Apr 06 02:39:59 hey, it lets you do other things with the prus while you bitbang ws2812s! Apr 06 02:40:08 exactly Apr 06 02:41:36 where was it again that I needed to check for the slots being reserved? I know it was in /sys somewhere Apr 06 02:43:53 I don't think there is Apr 06 02:44:42 I just searched the driver source code, the reservations don't seem to be exposed via any interface Apr 06 02:45:02 oh, maybe it was reserving an interrupt that I was thinking of that we were doing before. Apr 06 02:45:36 (before I ran off to do other things and then dropped it entirely) Apr 06 02:51:27 myself: If you have time and you need additional ideas on what and when for ardupilot, I can provide what steps I have taken so far. Apr 06 02:52:02 myself: I am actually compiling the ardupilot for BBBlue instead of BBBMini now. Apr 06 02:52:12 This should allow me to connect. Apr 06 02:52:29 ... Apr 06 02:52:39 myself: I will update you in a bit. Apr 06 02:57:46 Can anyone tell me how to use ping on my BBBlue? Apr 06 02:58:10 Ex. sudo ping Apr 06 02:58:14 or... Apr 06 02:58:15 ping Apr 06 02:58:17 pin ? Apr 06 02:58:22 *ping Apr 06 02:58:25 oh. Apr 06 02:58:35 Yes. Apr 06 02:58:36 or ping Apr 06 02:59:14 So, if I wanted to find my IP for the bone, I would use ip instead of ifconfig and then type ping ? **** ENDING LOGGING AT Fri Apr 06 03:00:00 2018