# write uboot
echo "= Writing SPL ...."
dd if=$PREFIX/usr/share/u-boot/$TARGET/idbspl.img of=$MEDIA seek=64; sync; sleep 5
echo "= Writing u-boot FIT image ...."
dd if=$PREFIX/usr/share/u-boot/$TARGET/u-boot.itb of=$MEDIA seek=16384; sync; sleep 5
# set console for Rockchips
SYSCON=ttyS2,115200
