diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2018-03-26 12:35:11 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2019-01-23 13:14:59 +0900 |
commit | 147b5de9dfd8ebd95006822c83b4fe95db31c199 (patch) | |
tree | 1f6db69ebc1814172d63dc6483b40e046397f994 | |
parent | 61bcbf87179c01e2f0a95aab1d364c1dd2d0f932 (diff) | |
download | linux-rpi3-147b5de9dfd8ebd95006822c83b4fe95db31c199.tar.gz linux-rpi3-147b5de9dfd8ebd95006822c83b4fe95db31c199.tar.bz2 linux-rpi3-147b5de9dfd8ebd95006822c83b4fe95db31c199.zip |
scripts: build-rpi3-arm64.sh, mkbootimg_rpi3.sh: Add modules
Add modules support on build scrip and image script.
Change-Id: I007d7ca940152506c856523e35adf4519248d2b5
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rwxr-xr-x | build-rpi3-arm64.sh | 3 | ||||
-rwxr-xr-x | scripts/mkbootimg_rpi3.sh | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/build-rpi3-arm64.sh b/build-rpi3-arm64.sh index 4655746b601b..15b93917a6cc 100755 --- a/build-rpi3-arm64.sh +++ b/build-rpi3-arm64.sh @@ -24,3 +24,6 @@ if [ ! -f "./arch/arm64/boot/Image" ]; then echo "Build fail" exit 1 fi + +make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules_prepare -j8 +make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules -j8 diff --git a/scripts/mkbootimg_rpi3.sh b/scripts/mkbootimg_rpi3.sh index a8c34a780e30..3f365f483a06 100755 --- a/scripts/mkbootimg_rpi3.sh +++ b/scripts/mkbootimg_rpi3.sh @@ -7,6 +7,8 @@ GROUP_ID=`id -g` rm -f boot.img rm -rf tmp mkdir tmp + +# Create boot.img mkfs.vfat -F 16 -C boot.img 65536 sudo mount -o loop,uid=$USER_ID,gid=$GROUP_ID,showexec boot.img ./tmp cp -a $BOOT_PATH/config_64bit.txt ./tmp/config.txt @@ -39,4 +41,18 @@ rm -rf ${TMP_UBOOT_PATH} sync sudo umount tmp + +rm -f modules.img +mkdir -p tmp/lib/modules + +# Create modules.img +dd if=/dev/zero of=modules.img bs=1024 count=20480 +mkfs.ext4 -q -F -t ext4 -b 1024 -L modules modules.img +sudo mount -o loop modules.img ./tmp/lib/modules +make modules_install ARCH=arm64 INSTALL_MOD_PATH=./tmp INSTALL_MOD_STRIP=1 CROSS_COMPILE=aarch64-linux-gnu- +sudo -n chown root:root ./tmp/lib/modules -R + +sync +sudo umount tmp/lib/modules + rm -rf tmp |