From cceceff85555f15631a525042242ff501f07a8f5 Mon Sep 17 00:00:00 2001 From: Heesub Shin Date: Wed, 21 Mar 2018 15:34:24 +0900 Subject: [PATCH] mkvboot: make initrd.gz before fit creation When creating a FIT, we need initrd.gz, instead of uInitrd. It can be extracted from uInitrd. This is not necessary on some ARTIK platforms where ramdisk image is not required, but will be no harm. Change-Id: I4b8a911f61b4c4915c7e058c434e32dde01372d2 Signed-off-by: Heesub Shin --- mkvboot.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkvboot.sh b/mkvboot.sh index ddcb740..d5a6376 100755 --- a/mkvboot.sh +++ b/mkvboot.sh @@ -10,6 +10,9 @@ UBOOT_DIR=`pwd`/../u-boot-artik ITS_NAME=$(basename "$ITS_FILE") +# create initrd.gz from uInitrd +dd if=$INITRD of=$OUTPUT_DIR/initrd.gz bs=1 skip=64 + cp $ITS_FILE $OUTPUT_DIR pushd $OUTPUT_DIR ./mkimage -f $ITS_NAME rsa_kernel.fit