agherzan / meta-raspberrypi

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

Build fails because of renamed branch in RPi-Distro/firmware-nonfree #958

Closed schtobia closed 2 years ago

schtobia commented 2 years ago

Description The build fails, both with bitbake directly and with kas. The corresponding build output:

WARNING: linux-firmware-rpidistro-20190114-2+rpt4-r0 do_fetch: Failed to fetch URL git://github.com/RPi-Distro/firmware-nonfree;branch=master;protocol=https, attempting MIRRORS if available
ERROR: linux-firmware-rpidistro-20190114-2+rpt4-r0 do_fetch: Fetcher failure: Unable to find revision 54ffdd6e2ea6055d46656b78e148fe7def3ec9d8 in branch master even from upstream
ERROR: linux-firmware-rpidistro-20190114-2+rpt4-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/RPi-Distro/firmware-nonfree;branch=master;protocol=https')
ERROR: Logfile of failure stored in: /build/tmp/work/all-poky-linux/linux-firmware-rpidistro/20190114-2+rpt4-r0/temp/log.do_fetch.2729
ERROR: Task (/repo/recipes-kernel/linux-firmware-rpidistro/linux-firmware-rpidistro_git.bb:do_fetch) failed with exit code '1'

Steps to reproduce the issue: kas-container build meta-raspberrypi/kas-poky-rpi.yml

or, alternatively:

kas build meta-raspberrypi/kas-poky-rpi.yml

Describe the results you received:

A failed build, no image.

Describe the results you expected:

A working image.

Additional information you deem important (e.g. issue happens only occasionally):

it works when the following changes are applied:

diff --git a/recipes-kernel/linux-firmware-rpidistro/linux-firmware-rpidistro_git.bb b/recipes-kernel/linux-firmware-rpidistro/linux-firmware-rpidistro_git.bb
index 45ed78c..e5ce41e 100644
--- a/recipes-kernel/linux-firmware-rpidistro/linux-firmware-rpidistro_git.bb
+++ b/recipes-kernel/linux-firmware-rpidistro/linux-firmware-rpidistro_git.bb
@@ -34,7 +34,7 @@ LIC_FILES_CHKSUM = "\
 NO_GENERIC_LICENSE[Firmware-broadcom_bcm43xx-rpidistro] = "LICENCE.broadcom_bcm43xx"
 NO_GENERIC_LICENSE[WHENCE] = "WHENCE"

-SRC_URI = "git://github.com/RPi-Distro/firmware-nonfree;branch=master;protocol=https"
+SRC_URI = "git://github.com/RPi-Distro/firmware-nonfree;branch=buster;protocol=https"

 SRCREV = "54ffdd6e2ea6055d46656b78e148fe7def3ec9d8"
 PV = "20190114-2+rpt4"

as the affected commit is on branch buster, not master.

Additional details (revisions used, host distro, etc.):

Tested both on master and honister.

schtobia commented 2 years ago

sorry, I was too soon. 54213e7 fixes this.