**** BEGIN LOGGING AT Sat Jun 02 03:00:09 2018 Jun 02 03:59:22 so let me ask you this: if overlays are A Bad Idea (tm), then what is the correct way to specify this stuff? Jun 02 03:59:56 i need to add two drivers: one that uses gpio-keys and another that uses gpio-of-helper Jun 02 04:00:18 on modern kernels, loading both dtbo's panics the kernel Jun 02 04:01:17 s/both/either/g Jun 02 04:01:38 so i suspect it's not something wrong with the dtsi files but rather just breakage in overlays in general Jun 02 04:26:25 have you tried loading them using u-boot overlays? Jun 02 04:28:07 in general, the correct way is by providing the right information in the DT in the first place rather than trying to patch it at runtime. u-boot overlays enable doing so without actually customizing the .dtb file itself Jun 02 04:29:53 [ 0.926018] gpio-of-helper ocp:cape-universal: ready Jun 02 04:30:13 yeah, it seems to load, but i haven't figured out how to get cape-universal out of the way Jun 02 04:30:23 [ 0.925433] gpio-of-helper button-led: ready Jun 02 04:30:38 ohh, you have cape-universal still enabled? well that explains all problems Jun 02 04:30:44 i have it off! Jun 02 04:30:46 in uenv.txt Jun 02 04:30:59 enable_uboot_cape_universal=0 Jun 02 04:31:06 you need to comment out the line Jun 02 04:31:08 also tried commenting the whole line out Jun 02 04:31:13 still shows up as : ready Jun 02 04:31:16 =0 does the same as =1 Jun 02 04:31:27 all that matters is whether the variable exists Jun 02 04:31:40 gotcha. ok, will try commenting it out *again* Jun 02 04:32:33 i feel like sticking with the beagle instead of rasberry pi, like the people in the early 2000s who stuck with freebsd instead of moving to linux Jun 02 04:33:08 [ 0.925494] gpio-of-helper ocp:cape-universal: ready Jun 02 04:33:13 i can't get rid of the damn thing Jun 02 04:33:16 it won't go away Jun 02 04:33:39 I'm really puzzled Jun 02 04:33:56 https://gist.github.com/kenrestivo/e71dfc4e19a92019e96569c75b291eab Jun 02 04:33:56 are you booting from eMMC or sd card? Jun 02 04:34:25 internal flash Jun 02 04:34:35 there's no sdcard present Jun 02 04:35:00 version.sh is pretty awesome, by the way. glad i discoverd it Jun 02 04:35:24 would love to know what pkg: means Jun 02 04:35:41 ah, dpkg, nevermind Jun 02 04:36:36 but now at least it makes sense the kernel panics at dtbo load Jun 02 04:36:45 it's teh capemgr THAT WOULD NOT DIE Jun 02 04:37:20 yeah but it doesn't make sense that cape-universal is stubbornly remaining enabled Jun 02 04:37:51 what is "ocp"? Jun 02 04:38:40 do i have a dodgy uboot perhaps? Jun 02 04:39:39 open core protocol, referring to the connection to the rest of the SoC, i.e. referring to the peripherals Jun 02 04:40:00 (which also means cape-universal absolutely does not belong there, but people incorrectly toss all sorts of random crap into the ocp node) Jun 02 04:42:52 updated uboot. still same problem. cape-universal WILL NOT DIE Jun 02 04:43:56 is there a disable_cape_universal ? Jun 02 04:44:09 yes, the absence of enable Jun 02 04:44:19 lies. Jun 02 04:44:46 where would i expect this bug to live? Jun 02 04:44:48 also it gets implicitly disabled when u-boot loads overlays (whether due to cape-autodetection or explicit request) Jun 02 04:44:50 in u-boot itself? Jun 02 04:45:09 I have no clue, this is the first time I've seen or heard of cape-universal refusing to die Jun 02 04:45:10 it's happening before kernel load time? Jun 02 04:45:13 yes Jun 02 04:45:23 maybe a serial console into uboot and i can poke around Jun 02 04:45:27 or look thru uboot source Jun 02 04:45:33 not sure what to look for though Jun 02 04:45:36 checking serial console output might be useful Jun 02 04:45:59 or try asking u-boot to load an overlay (even if trivial) Jun 02 04:46:09 ok, gotta bring the uart0 pins up past the cape, or remove the cape Jun 02 04:46:30 ah you have a physical cape? Jun 02 04:46:43 i do, but it's got no eeprom on it Jun 02 04:46:50 it's just a proto board Jun 02 04:46:59 with a button and an led :) Jun 02 04:47:32 try setting uboot_overlay_addr4 to load an overlay Jun 02 04:47:47 in uenv.txt? Jun 02 04:48:27 i think i know where you're going with this Jun 02 04:49:08 the dtbo i added was in dtb_overlay not addrX Jun 02 04:49:17 oh that should work too Jun 02 04:49:24 it didn't Jun 02 04:49:34 i mean, it did add the overlay, but it didn't whack universal Jun 02 04:49:54 I'm extremely confused, it sounds like rcn broke u-boot's boot script Jun 02 04:49:56 maybe there's a bug in uboot where the dtb_overlay doens't disable universal Jun 02 04:50:07 that's possible, but how likely is it? Jun 02 04:50:47 he seems like he's got his shit together, but he's just one guy (unlike the raspberriyers, who have an army of commuunity) Jun 02 04:50:52 it's quite possible. I can dig into u-boot's source code once I'm more awake Jun 02 04:51:06 anyway, moving it to addr4 had no effect Jun 02 04:51:17 both the custom dtbo and universal are loaded now Jun 02 04:51:40 boot_overlay_options:[uboot_overlay_addr4=/lib/firmware/led.dtbo] Jun 02 04:51:55 uboot_overlay_addr* and dtb_overlay are all equivalent Jun 02 04:51:56 [ 0.926400] gpio-of-helper ocp:cape-universal: ready Jun 02 04:52:16 should i file a bug? Jun 02 04:52:28 or do some uboot serial console hackery first Jun 02 04:52:42 what kind of info would be most useful to rcn to fix the problem? Jun 02 04:52:45 and duplicate it? Jun 02 04:53:04 * zmatt stares blankly out of sleepy eyes Jun 02 04:53:16 meh, it's not urgent. this is a hobby project Jun 02 04:53:24 i'll get back to you later in the weekend or week Jun 02 04:53:36 like I said, I can check for you once I'm a bit more awake Jun 02 04:53:42 thanks Jun 02 04:53:47 are you in germany? Jun 02 04:53:51 netherlands Jun 02 04:54:19 aye, well good morning, i guess Jun 02 04:54:40 awfully early for a saturday morning to be hacking Jun 02 04:55:03 yeah I randomly woke up Jun 02 04:55:22 well i'm about to shutdown -h now Jun 02 04:55:48 will check back later Jun 02 05:04:38 i suspect it is baked into the system dtb Jun 02 05:04:43 for the bb green Jun 02 05:05:18 it shouldn't be. when u-boot overlays are enabled, u-boot loads special -uboot versions of the dtb that exclude such crap Jun 02 05:05:53 you didn't override dtb selection... right? **** ENDING LOGGING AT Sun Jun 03 03:00:01 2018