rauc/meta-rauc-community

uboot fails to load kernel on raspi 4B

Closed this issue · 5 comments

I cant seem to get the PI to boot with A/B dual partition + rauc. I've followed this tutorial here https://www.konsulko.com/getting-started-with-rauc-on-raspberry-pi-2/, but no matter what I do I always see the bellow error. Even setting kernel=uImage in config.txt and setting KERNEL_IMAGETYPE = "uImage" yields the same results.

rauc-error

Hi @EasyIP2023,

Which Yocto/OE release and respectively branch of meta-rauc-community are you using?

Keep in mind that the project has evolved since I wrote the article and numerous community contributions have been merged in master and honestly due to lack of enough time for testing they may resulted in certain issues.

Thanks,
Leon

@leon-anavi no worries. Thanks for writing that! I was on Yocto/OE (Dunfell 3.1.8) when I was first testing later switched to (Dunfell 3.1.10). Also on the latest commit of meta-rauc-community branch dunfell. Will first try to switch to branch master. If that doesn't work revert to a later meta-rauc-community (branch master) commit maybe one from before Sept 2020.

Hi @EasyIP2023,

Sounds as a good plan. If you are using Yocto/OE release Dunfell 3.1.8 I would recommend using the dunfell branch. There were some recent syntax changes in master which are not compatible with dunfell, for example GitHub pull requests #20 and #19.

Please provide feedback of your finding as it will be useful for the community and fixing these issues.

Thanks,
Leon

@leon-anavi Closing issue as after some investigation the problem isn't with the meta-rauc-community/meta-rauc-raspberrypi layer, but with u-boot support for the raspberrypi 4B. Seems like it doesn't want to work with the latest raspberrypi bootloader/firmwar.

U-Boot 2021.10-rc3-dirty (Sep 05 2021 - 15:23:39 -0500)

DRAM:  3.9 GiB
RPI 4 Model B (0xc03112)
mbox: Timeout waiting for response
bcm2835: Could not set module 3 power state
initcall sequence 000000003b3d28f8 failed at call 0000000000084344 (err=-5)

Here's a link to something similar years ago. Implemented by agherzan.

I decided to try the compile u-boot from source and try it on the latest raspberry pi stock image. Ran into similar results. Which leads me to believe. u-boot isn't configured to work with the latest raspberrypi bootloader/firmware. At least from what I am seeing.

Thank you for the feedback and the provided details.

Best regards, Leon