agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
534 stars 410 forks source link

rpi-eeprom support #1131

Closed allanembedded closed 1 year ago

allanembedded commented 1 year ago

Another attempt at merging rpi-eeprom so we can have the ability to update the rpi4 bootloader in yocto :)

This is mostly based on the previous recipe in pull requst #741, just updated to the latest upstream release which required a few dependency/licensing changes. It also uses the existing userland tools as I can't see a reason for it to use a different implementation that was in the previous pull request.

Two things to note are the unfortunate dependency on xxd which can pull in a lot of extra build time dependencies (enabling busybox xxd could be an alternative) and some shell errors printed during script execution which seem to be just differences in busybox execution, the update itself still seems to work fine.

As this is based on work previously done by @macpijan I've credited them with a Co-authored-by, happy to change that to something else if needed.

barolo commented 1 year ago

Is this merged? What's happening here?

djr-spectrummfg commented 1 year ago

Can this be merged to kirkstone? Since kirkstone is the current Yocto LTS branch.

agherzan commented 1 year ago

@djr-spectrummfg Absolutely. I'm happy to accept a merge request that cherry-picks these exact commits into Kirkstone.