rauc / meta-rauc-community

Yocto/OpenEmbedded meta layer with examples for integration of RAUC, the embedded Linux A/B update framework
MIT License
46 stars 51 forks source link

Raspberry Pi 5 support #79

Closed matthiasklein closed 2 months ago

matthiasklein commented 6 months ago

Is anyone working on support for the Raspberry Pi 5?

Yocto support exists in the meantime. But no U-Boot. A good summary can be found here in the Mender forum: https://hub.mender.io/t/raspberry-pi-5-support/6412

I think it would be interesting to do without U-Boot altogether and use the "tryboot" feature instead, which exists since the Raspberry Pi 4.

leon-anavi commented 6 months ago

Hi @matthiasklein,

Yes, it is kind of work in progress:

Best regards, Leon

m4salem commented 6 months ago

Thanks for the work on this, I was wondering if this issue is still being considered

leon-anavi commented 6 months ago

Thanks for the work on this, I was wondering if this issue is still being considered

Yes, in general but it is not on top of my priority list. Actually the mentioned GitHub pull request to port Raspberry Pi 5 from the main branch to branch kirkstone in meta-raspberrypi was merged: https://github.com/agherzan/meta-raspberrypi/pull/1271

m4salem commented 6 months ago

Yeah I have been following those, and the RPI5 works fine. The problem now is that RAUC can't be built for RPI5.

leon-anavi commented 6 months ago

Yeah I have been following those, and the RPI5 works fine. The problem now is that RAUC can't be built for RPI5.

Yes, because RAUC integration in meta-rauc-raspberrypi relies on U-Boot and as I mentioned in the previous comments the U-Boot support for rpi5 is still work in progress.

moto-timo commented 4 months ago

I have working branches which will be submitted as soon as the meta-lts-mixins scarthgap/u-boot branch is created. But for now you can play around and give me feedback (good or bad). I have had a little bit of issue with needing the UART probe installed to get u-boot to boot completely, and also some framebuffer transition issues (the four raspberrypi logos for the 4 cores stay on screen). Your mileage may vary.

  1. https://github.com/moto-timo/meta-lts-mixins/tree/scarthgap/u-boot
  2. https://github.com/moto-timo/meta-raspberrypi/tree/scarthgap/raspberrypi5_u-boot
  3. https://github.com/moto-timo/meta-rauc-community/tree/scarthgap/raspberrypi5_u-boot
moto-timo commented 4 months ago

Any feedback is helpful. Even if it is "this doesn't work at all and here is what I saw". Reproducers for failures (or fixes) are much appreciated.

moto-timo commented 4 months ago

FWIW, I had zero issue with yoe-simple-image https://github.com/YoeDistro/yoe-distro/pull/912 but that is not using u-boot at all.

leon-anavi commented 2 months ago

Hi,

Recently @AtanasBunchev tested Poky with Raspberry Pi 5 based on @moto-timo work. Atanas updated the README with details: https://github.com/rauc/meta-rauc-community/pull/100

RAUC is now compatible with the Raspberry Pi 5, so I will be closing this issue. A huge thanks to Tim for his work on U-Boot and to everyone who contributed to this task.

Best regards, Leon