go-debos / debos-recipes

Collection of debos recipes
Apache License 2.0
46 stars 24 forks source link

Support Raspberry Pi 3b Plus #6

Closed andhe closed 5 years ago

andhe commented 6 years ago

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:

U_BOOT_FDT="broadcom/bcm2837-rpi-3-b.dtb"

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?

andhe commented 5 years ago

While some info in here could be useful for unifying things, as discussed in #13, the discussion about it can continue in #13.

The basic issue this bug report was opened about is resolved thus it can now be closed.