Overview

Request 814189 accepted

Introduce new raspberrypi-firmware-eeprom package to support upgrading the
first stage bootloader on the Raspberry Pi 4. The package for now only supports
installing the stable version of the bootloader image. This could be expanded
in the future to include the dev branch of the project.

See https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md
for more information on why RPi4 needs this.

This relates to: jsc#PM-1746


Guillaume GARDET's avatar

Could you use the full URL for Source0, maybe? Like:

Source0: https://github.com/raspberrypi/rpi-eeprom/archive/v%{version}.tar.gz#/rpi-eeprom-%{version}.tar.gz

Otherwise, LGTM!


Nicolas Patricio Saenz Julienne's avatar

I looked into this, ideally I'd like to add the URL since it's nicer, but it's not as straightforward as it seems. See this URL: https://github.com/raspberrypi/rpi-eeprom/releases/download/v2020.04.16-137ad/rpi-boot-eeprom-recovery-2020-04-16-vl805-000137ad.zip

First of all, they are not using the exact same version string on the zip file as the one on the git tag. Not ideal, but I can deal with that.

Secondly their naming scheme doesn't match my package name. I guess that's on me. One thing I could do is rename the package so both match.

Ultimately, they are using zip to package their releases, which AFAIK doesn't play well with spec us.

Any ideas/suggestions?

Note that I'd really like to use the releases, as opposed to getting snapshots of the repo as this is firmware and we have to be extra careful.



Guillaume GARDET's avatar

For the version ('.' vs '-'), you can use: %define archive_version 2020-04-16-vl805-000137ad

For the archive, you can use any name you want, just update the %setup section, IIRC, %setup -n XXX, with XXX matching the folder in the archive.

With zip, you need to add 'BuildRequires: unzip'

Request History
Nicolas Patricio Saenz Julienne's avatar

nsaenzjulienne created request

Introduce new raspberrypi-firmware-eeprom package to support upgrading the
first stage bootloader on the Raspberry Pi 4. The package for now only supports
installing the stable version of the bootloader image. This could be expanded
in the future to include the dev branch of the project.

See https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md
for more information on why RPi4 needs this.

This relates to: jsc#PM-1746


Guillaume GARDET's avatar

Guillaume_G accepted request

LGTM, thanks!

openSUSE Build Service is sponsored by