Skip to content

Commit

Permalink
Merge pull request #395 from leon-anavi/scarthgap-rpi-update-firmware…
Browse files Browse the repository at this point in the history
…-fix
  • Loading branch information
TheYoctoJester authored Jul 31, 2024
2 parents 178b9f1 + f78692f commit b75e5d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions meta-mender-raspberrypi/classes/rpi-update-firmware.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ rpi_install_firmware_to_rootfs() {

# To exclude files such as bcm2710-rpi-3-b-1-4.19.88+git0+988cc7beac-r0-raspberrypi3-20200323173633.dtb
# as only the link names are actually valid and searched for on the device.
find ${DEPLOY_DIR_IMAGE}/ -type l \( -iname "*.dtb" \) -exec cp {} ${IMAGE_ROOTFS}/boot/firmware/ \;
find ${DEPLOY_DIR_IMAGE}/ -type l \( -iname "*.dtbo" \) -exec cp {} ${IMAGE_ROOTFS}/boot/firmware/overlays/ \;
find ${DEPLOY_DIR_IMAGE}/ -type l \( -iname "*.dtb" \) -exec cp {} ${IMAGE_ROOTFS}/boot/ \;
find ${DEPLOY_DIR_IMAGE}/ -type l \( -iname "*.dtbo" \) -exec cp {} ${IMAGE_ROOTFS}/boot/overlays/ \;

cp ${DEPLOY_DIR_IMAGE}/u-boot.bin ${IMAGE_ROOTFS}/boot/firmware/${SDIMG_KERNELIMAGE}
cp ${DEPLOY_DIR_IMAGE}/boot.scr ${IMAGE_ROOTFS}/boot/firmware/
cp ${DEPLOY_DIR_IMAGE}/u-boot.bin ${IMAGE_ROOTFS}/boot/${SDIMG_KERNELIMAGE}
cp ${DEPLOY_DIR_IMAGE}/boot.scr ${IMAGE_ROOTFS}/boot/
}
ROOTFS_POSTPROCESS_COMMAND += "rpi_install_firmware_to_rootfs; "

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ mount -o ro ${inactive_part} /tmp/inactive_part
# render the device unusable.

# Copy 'core' firmware files first
for f in $(find /tmp/inactive_part/boot/firmware/ -maxdepth 1 -type f); do
for f in $(find /tmp/inactive_part/boot -maxdepth 1 -type f ! -name "*.dtbo"); do
safe_copy $f /uboot/$(basename $f)
done

# Copy overlays
for f in $(find /tmp/inactive_part/boot/firmware/overlays/ -maxdepth 1 -type f); do
for f in $(find /tmp/inactive_part/boot/*.dtbo -maxdepth 1 -type f); do
safe_copy $f /uboot/overlays/$(basename $f)
done

Expand Down

0 comments on commit b75e5d3

Please sign in to comment.