Skip to content

Commit

Permalink
mkvboot: make initrd.gz before fit creation
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Heesub Shin committed Mar 22, 2018
1 parent d9b46b5 commit cceceff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mkvboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cceceff

Please sign in to comment.