Commit 12d102b8 authored by Peter Geis's avatar Peter Geis
Browse files

make.sh: unpack loader for manual flashing



This adds a function to unpack the idblock.bin.
Flash this to the sdcard at block 64, as per previous chips.
U-boot SPL on rk356x looks for u-boot proper at partition 1 named
"uboot".
Flash as below:
dd if=idblock.bin of=/dev/<mmc/sd> seek=64
dd if=uboot.img of=/dev/<mmc/sd>1
Signed-off-by: Peter Geis's avatarPeter Geis <pgwipeout@gmail.com>
parent e6f9952b
......@@ -809,6 +809,23 @@ function pack_images()
fi
}
function unpack_loader
{
if [ -f *_loader_*.bin ]; then
echo unpacking artifacts and building idblock.bin
rm idblock.bin FlashData FlashBoot FlashHead -f
./tools/boot_merger --unpack *_loader_*.bin
if [ -f FlashHead ];then
cat FlashHead FlashData > idblock.bin
else
./tools/mkimage -n ${PLAT} -T rksd -d FlashData idblock.bin
fi
cat FlashBoot >> idblock.bin
fi
}
function finish()
{
echo
......@@ -830,4 +847,5 @@ sub_commands
clean_files
make PYTHON=python2 CROSS_COMPILE=${TOOLCHAIN_GCC} all --jobs=${JOB}
pack_images
unpack_loader
finish
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment