rk3328 uboot no need for 4-byte skip

This commit is contained in:
tonymac32 2018-02-27 22:51:33 -05:00
parent 26e95a2ac7
commit 8bf87312c3

View file

@ -68,27 +68,19 @@ setup_write_uboot_platform()
uboot_custom_postprocess()
{
# bootloader image
# Below is what works with BOOTBRANCH='branch:rockchip-master' Previous workaround
#
case $BRANCH in
default)
#Below is what works with BOOTBRANCH='branch:rockchip-master'
#
local tempfile=$(mktemp)
dd if=$SRC/cache/sources/rkbin-tools/rk33/rk3328_ddr_786MHz_v1.06.bin of=$tempfile bs=4 skip=1
tools/mkimage -n rk3328 -T rksd -d $tempfile idbloader.bin
;;
# local tempfile=$(mktemp)
# dd if=$SRC/cache/sources/rkbin-tools/rk33/rk3328_ddr_786MHz_v1.06.bin of=$tempfile bs=4 skip=1
# tools/mkimage -n rk3328 -T rksd -d $tempfile idbloader.bin
dev)
# Below is the way it is supposed to work according to Rockchip documentation,
# and how it does work with the mainline-master branch. No 4-byte skip.
#
tools/mkimage -n rk3328 -T rksd -d $SRC/cache/sources/rkbin-tools/rk33/rk3328_ddr_786MHz_v1.06.bin idbloader.bin
;;
esac
tools/mkimage -n rk3328 -T rksd -d $SRC/cache/sources/rkbin-tools/rk33/rk3328_ddr_786MHz_v1.06.bin idbloader.bin
cat $SRC/cache/sources/rkbin-tools/rk33/rk3328_miniloader_v2.43.bin >> idbloader.bin
# u-boot
#
# Total hours wasted before finding that the new "load address" parameter is not optional: 3