steev | c0rnelius: next question... are you running your builds on x86_64 or arm64? | 02:22 |
---|---|---|
c0rnelius | i do it on both, but 80% of time native arm64. | 02:23 |
steev | okay, i'll definitely be nicking your fip stuff then, just to test | 02:24 |
steev | for whatever reason, my 1.4 emmc is just doing nothing, and i have another (hopefully? 1.5) on the way | 02:25 |
steev | i already have stuff on my other 1.5s so i can't really play with them | 02:25 |
c0rnelius | go for it. if you just need the boot bins I have them in the repo I believe under files/boot | 02:25 |
c0rnelius | yeah its the rz-u-boot*bin | 02:26 |
steev | so you use fastboot to flash those? | 02:26 |
c0rnelius | yeah. well I used fastboot to flash it over the emmc so I could boot from sd. | 02:27 |
c0rnelius | from there I used my script | 02:27 |
steev | hm | 02:27 |
steev | let me try doing the fastboot to flash it | 02:27 |
c0rnelius | but you can just flash an img if you have maskrom working. pretty sure thats what Tenkawa does. | 02:28 |
steev | i do that, but like i said, it's not working :P | 02:28 |
steev | oh, they have a new erase emmc bin, let me try that first | 02:30 |
c0rnelius | i could never get those things to work | 02:31 |
c0rnelius | hates all my linux machines and I don | 02:31 |
c0rnelius | don't use anything else | 02:31 |
steev | OH | 02:32 |
c0rnelius | thats when I got the idea of just flashing over the vendor uboot with mainline | 02:32 |
steev | u-boot.bin: mainline U-Boot bootloader for USB boot. Won't work if you flashed it to eMMC/microSD. | 02:32 |
steev | that is what i am doing wrong | 02:32 |
steev | the sd.bin is for both emmc and sdcard | 02:33 |
c0rnelius | i use sd.bin for sd and .bin for emmc | 02:33 |
c0rnelius | they have diff flash points | 02:33 |
c0rnelius | https://github.com/pyavitz/debian-image-builder/wiki/Flashing-U-Boot | 02:33 |
c0rnelius | chewitt says the sd.bin works for both but I've never gotten it to work. | 02:34 |
steev | hmm | 02:35 |
steev | my emmc says it should be 444 instead of 442 | 02:35 |
steev | but you don't set it at all | 02:35 |
c0rnelius | nope | 02:36 |
steev | will try with the .sd.bin and if that still fails, i'll try your way of .bin and not setting count | 02:36 |
steev | the erase emmc did exactly what it says, so that's nice | 02:40 |
steev | progress! that did indeed work | 03:55 |
steev | however, it's complaining now that it can't find the dtb so gotta figure out how i screwed that up because it definitely worked on the sdcard | 03:56 |
steev | very odd | 04:01 |
steev | Found the reason | 04:11 |
steev | Just not sure *why* | 04:11 |
steev | https://usercontent.irccloud-cdn.com/file/vD22gA7x/67271826692__5E371475-7F2A-4415-9D77-49C4F06CABD0.JPG | 04:11 |
steev | found it | 04:22 |
steev | c0rnelius: remind me again, how you set the dtb overlay in yours? i know you manually edit, and that's fine, I just can't remmeber the start of it | 05:06 |
steev | dtboverlay ? | 05:07 |
c0rnelius | In extlinux? | 05:08 |
c0rnelius | fdtoverlays /path/to/dtbo | 05:09 |
steev | aha | 05:09 |
c0rnelius | extlinux use its dir as a starting point, so you can just back track out to save on writing out full paths. https://paste.debian.net/1239151/ | 05:13 |
c0rnelius | that way I'm not writing out /boot/blah/blah | 05:14 |
c0rnelius | i guess in ur case it doesn't matter much as it appears you have a boot partition | 05:15 |
steev | yeah, for the moment | 05:18 |
steev | ideally, i'd have the dtbs in the proper place (where they usually are anyway - /usr/lib/linux-image-$kernelver/amlogic ) | 05:18 |
steev | i just wanted to get something that *worked* first | 05:18 |
steev | It’s weird to me that mainline u-boot doesn’t try sdcard first | 05:35 |
steev | I need to look into that | 05:35 |
c0rnelius | It should try sd then emmc | 05:40 |
c0rnelius | At least that's how it works on my boards. | 05:41 |
steev | definitely isn't here, not mainline, but the vendor one does | 05:51 |
c0rnelius | That's odd. That's like the complete opposite of how my board's behave. If I flash mainline to my emmc it won't boot off the SD card | 06:03 |
c0rnelius | I mean vendor | 06:03 |
c0rnelius | For example with CE installed on emmc I need to flash mainline to it and reboot to get the SD to work. When I wanna go back to CE I reflash mainline to emmc and reboot. I never need to remove the SD. | 06:06 |
c0rnelius | I mean reflash vendor to emmc. Can't type today. | 06:06 |
c0rnelius | which bin did you flash to the emmc? | 06:14 |
steev | the .sd.bin | 06:34 |
c0rnelius | maybe thats why? i use .bin on emmc. | 06:46 |
steev | possibly - i'll try one with your way of writing .bin | 07:04 |
steev | c0rnelius: yep, doing it with .bin and writing it with just the skip (i think it is) does boot from sdcard or emmc | 20:30 |
c0rnelius | puts the sdcard first right? | 20:31 |
steev | yep | 21:04 |
steev | also, i see where the issue is re: vendor vs mainline u-boot - it's a patch from libreelec | 21:04 |
steev | https://github.com/radxa/u-boot/commit/a1595ca0f0762b11091fac01e2bd77c9265c9710 | 21:04 |
steev | i'm debating pulling that one in too, just to have it more closely sync up | 21:05 |
c0rnelius | if ur using dtb that makes sense | 21:08 |
steev | c0rnelius: do we actually need that commit for enabling OF DT? i notice the radxa defconfig for u-boot already includes it? | 21:56 |
steev | https://github.com/u-boot/u-boot/blob/master/configs/radxa-zero_defconfig#L66 | 21:56 |
c0rnelius | I don't believe so no. I don't use that patch. | 21:58 |
c0rnelius | to me that patch looks like its telling u-boot not to check /boot/amlogic and instead /boot/dtb. | 21:59 |
steev | ah, i didn't notice if it was or wasn't enabled | 21:59 |
steev | no no i meant your patch | 21:59 |
steev | let me find it | 21:59 |
c0rnelius | oh the overlay patch? | 21:59 |
steev | https://github.com/pyavitz/debian-image-builder/blob/feature/patches/uboot/amlogic/meson64-enable-dt-overlay-support.patch | 21:59 |
steev | yeah | 21:59 |
c0rnelius | maybe not radxa? | 22:00 |
c0rnelius | I just use it to make sure it gets triggered across all amlogic uboot builds. | 22:00 |
c0rnelius | to be honest you would need to test it. | 22:01 |
steev | and the patch that i link above, what that does is actually strip it off so it looks for /boot/dtbs/$kernelver/ - which is apparently what LE does for their dtb installs, i guess, whereas the kernel drops them into /boot/dtbs/$kernelver/$vendor | 22:01 |
c0rnelius | maybe? I use a packaging patch to dictate where things get placed during the build. | 22:02 |
steev | though | 22:03 |
steev | now that i know the reason shit was broke | 22:03 |
steev | i can probably go back to using 1 partition | 22:03 |
c0rnelius | its way better :) | 22:03 |
steev | it is, and then can point to the dtb directory properly | 22:03 |
steev | i still need to look at what u-boot does for overlay handling | 22:03 |
steev | it would be nice if could do fdtoverlaysdir /blah and then just fdtoverlays <name> | 22:04 |
steev | instead of full path | 22:04 |
c0rnelius | I agree | 22:04 |
c0rnelius | i think you can do that with boot.cmd files and create a uEnv.txt file that gets sourced. | 22:04 |
c0rnelius | works for shit like root=UUID and other stuff so I don't see why it wouldn't work for overlays. | 22:05 |
steev | yeah, you can, however then you run into the fact that if extlinux works, it searches that first | 22:05 |
steev | s/works/exists/ | 22:05 |
c0rnelius | yeap. | 22:05 |
steev | so gotta patch that | 22:05 |
steev | but also, extlinux.conf should really be what is used | 22:06 |
steev | also also | 22:06 |
steev | i think i figured out why i can't break into my boot | 22:06 |
c0rnelius | i think its easier personally as you can just edit on the fly and I only usually use one or two overlays at a time. | 22:06 |
steev | https://paste.debian.net/1239241/ | 22:06 |
steev | usb isn't started before it gets to the point of choosing | 22:07 |
c0rnelius | hmm. I've never tried to usb boot off the board. | 22:08 |
steev | that isn't for usb boot | 22:08 |
steev | it's to enable usb keyboard to break the boot sequence | 22:08 |
c0rnelius | ohhh | 22:08 |
c0rnelius | looked like what everyone was doing for usb boot | 22:09 |
steev | though, a side effect would be that yeah, you should be able to boot off usb too | 22:09 |
c0rnelius | well my one board I can just touch the gpio pins and the board stops and starts typing | 22:09 |
steev | heh | 22:09 |
c0rnelius | nifty feature I never wanted | 22:09 |
steev | if it works, it works | 22:13 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!