arm-sdk

os build toolkit for various embedded devices
git clone https://git.parazyd.org/arm-sdk
Log | Files | Refs | Submodules | README | LICENSE

commit 6f1a9c16f5e1bc4a1fa79f814537d15facad76dd
parent e12d41ea2a45e884e18e70df5453166bd74c9961
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 28 Jan 2021 23:54:56 +0100

raspi: Copy only firmware that is necessary.

Diffstat:
Mboards/raspberry-pi1.sh | 6+++++-
Mboards/raspberry-pi2.sh | 6+++++-
Mboards/raspberry-pi3.sh | 6+++++-
3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/boards/raspberry-pi1.sh b/boards/raspberry-pi1.sh @@ -103,7 +103,11 @@ build_kernel_armel() { popd clone-git "$rpifirmware" "$R/tmp/kernels/$device_name/${device_name}-firmware" - sudo cp -rf $R/tmp/kernels/$device_name/${device_name}-firmware/boot/* $strapdir/boot/ + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/bootcode.bin "$strapdir/boot/" + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/fixup* "$strapdir/boot/" + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/start* "$strapdir/boot/" + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/COPYING.linux "$strapdir/boot/" + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/LICENCE.broadcom "$strapdir/boot/" pushd $R/tmp/kernels/$device_name/${device_name}-linux sudo perl scripts/mkknlimg --dtok arch/arm/boot/zImage $strapdir/boot/kernel.img diff --git a/boards/raspberry-pi2.sh b/boards/raspberry-pi2.sh @@ -89,7 +89,11 @@ build_kernel_armhf() { popd clone-git "$rpifirmware" "$R/tmp/kernels/$device_name/${device_name}-firmware" - sudo cp -rf $R/tmp/kernels/$device_name/${device_name}-firmware/boot/* $strapdir/boot/ + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/bootcode.bin "$strapdir/boot/" + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/fixup* "$strapdir/boot/" + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/start* "$strapdir/boot/" + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/COPYING.linux "$strapdir/boot/" + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/LICENCE.broadcom "$strapdir/boot/" pushd $R/tmp/kernels/$device_name/${device_name}-linux sudo perl scripts/mkknlimg --dtok arch/arm/boot/zImage $strapdir/boot/kernel7.img diff --git a/boards/raspberry-pi3.sh b/boards/raspberry-pi3.sh @@ -96,7 +96,11 @@ build_kernel_arm64() { popd clone-git "$rpifirmware" "$R/tmp/kernels/$device_name/${device_name}-firmware" - sudo cp -rf $R/tmp/kernels/$device_name/${device_name}-firmware/boot/* $strapdir/boot/ + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/bootcode.bin "$strapdir/boot/" + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/fixup* "$strapdir/boot/" + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/start* "$strapdir/boot/" + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/COPYING.linux "$strapdir/boot/" + sudo cp $R/tmp/kernels/$device_name/${device_name}-firmware/boot/LICENCE.broadcom "$strapdir/boot/" pushd $R/tmp/kernels/$device_name/${device_name}-linux # sudo perl scripts/mkknlimg --dtok arch/arm64/boot/Image.gz $strapdir/boot/kernel8.img