Duplicating the recipe for 3b to support 3b-plus doesn't look like a good idea to me, but I think I might have found a different solution (which I haven't tested at all yet).
The kernel and bootloader should have support for 3b-plus in Debian Buster in current versions (u-boot 2018.5 and linux 4.17). The 3b-plus has a separate dtb though, so the right one needs to be selected at boot.
That should make u-boot-update use "fdtdir" instead of "fdt", which leaves figuring out the exact dtb filename to u-boot (which has the strings for different boards in ./board/raspberrypi/rpi/rpi.c).
Also note that distribution has to be Buster (not Stretch) for this to work (for 3b-plus atleast).
Comments? Thoughts? Is it ok to bump to buster to be able to support both pis with one recipe?
Hi,
Duplicating the recipe for 3b to support 3b-plus doesn't look like a good idea to me, but I think I might have found a different solution (which I haven't tested at all yet).
The kernel and bootloader should have support for 3b-plus in Debian Buster in current versions (u-boot 2018.5 and linux 4.17). The 3b-plus has a separate dtb though, so the right one needs to be selected at boot.
AIUI Just commenting out this line should do it:
in https://github.com/go-debos/debos-recipes/blob/master/debian/arm64/image-rpi3/u-boot-menu/etc/default/u-boot
That should make u-boot-update use "fdtdir" instead of "fdt", which leaves figuring out the exact dtb filename to u-boot (which has the strings for different boards in ./board/raspberrypi/rpi/rpi.c).
Also note that distribution has to be Buster (not Stretch) for this to work (for 3b-plus atleast).
Comments? Thoughts? Is it ok to bump to buster to be able to support both pis with one recipe?