scripts: mkbootimg_rpi4.sh: Add u-boot-rpi4 package to boot image
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 2 Dec 2019 00:46:43 +0000 (09:46 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Tue, 30 Mar 2021 01:39:32 +0000 (10:39 +0900)
Add u-boot-rpi4 package to boot.img for u-boot boot

Change-Id: Iba486d729b5aa6c8a570db2b0854c922b5b909f6
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
scripts/mkbootimg_rpi4.sh

index 724ff6c..d47384f 100755 (executable)
@@ -21,6 +21,22 @@ cp -a $BOOT_PATH/cmdline.txt ./tmp
 cp -a arch/arm/boot/zImage ./tmp
 cp -a arch/arm/boot/dts/bcm*.dtb ./tmp
 
+# install u-boot files extracted from u-boot-rpi4 rpm package in download.tizen.org.
+TMP_UBOOT_PATH=tmp_uboot
+mkdir -p ${TMP_UBOOT_PATH}
+pushd ${TMP_UBOOT_PATH}
+REPO_URL=http://download.tizen.org/snapshots/tizen/unified/latest/repos/standard/packages/armv7l/
+rm -f index.html*
+wget ${REPO_URL}
+UBOOT=`awk -F\" '{ print $2 }' index.html | grep u-boot-rpi4`
+wget ${REPO_URL}${UBOOT}
+unrpm ${UBOOT}
+
+# install u-boot.img having optee.bin extracted from atf-rpi4 rpm package in download.tizen.org.
+popd
+cp -a ${TMP_UBOOT_PATH}/boot/* ./tmp
+rm -rf ${TMP_UBOOT_PATH}
+
 sync
 sudo umount tmp