summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJoonyoung Shim <jy0922.shim@samsung.com>2017-01-31 16:16:38 +0900
committerJunghoon Kim <jhoon20.kim@samsung.com>2019-06-11 09:35:49 +0900
commit00c42a7ebaf7535a24b4d01c715044760092137f (patch)
tree20b11f28e81f63a2ef65e947bf878ef18507d469 /scripts
parent8fed1f2e41d639a062d685e2046437e6a63b0108 (diff)
downloadlinux-rpi3-00c42a7ebaf7535a24b4d01c715044760092137f.tar.gz
linux-rpi3-00c42a7ebaf7535a24b4d01c715044760092137f.tar.bz2
linux-rpi3-00c42a7ebaf7535a24b4d01c715044760092137f.zip
scripts: Add mkbootimg_rpi3.sh
This script is to make boot.img that is fused at boot partition. Change-Id: I383fc8dee8460176c825e4ea360d37d62072e6d6 Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkbootimg_rpi3.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/mkbootimg_rpi3.sh b/scripts/mkbootimg_rpi3.sh
new file mode 100755
index 000000000000..f4dce8173c7f
--- /dev/null
+++ b/scripts/mkbootimg_rpi3.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+BOOT_PATH="rpi3/boot"
+USER_ID=`id -u`
+GROUP_ID=`id -g`
+
+rm -f boot.img
+rm -rf tmp
+mkdir tmp
+mkfs.vfat -F 16 -C boot.img 32768
+sudo mount -o loop,uid=$USER_ID,gid=$GROUP_ID,showexec boot.img ./tmp
+cp -a $BOOT_PATH/* ./tmp
+sudo umount tmp
+rm -rf tmp