Allwinner: Unify boot loader write process

https://forum.armbian.com/topic/16170-orangepi-zero2-allwinner-h616/?tab=comments#comment-114454
This commit is contained in:
Igor Pecovnik
2020-12-05 00:10:30 +01:00
parent ef96d0862b
commit 54f5f518c6

View File

@@ -43,8 +43,8 @@ family_tweaks()
write_uboot_platform()
{
[[ -f $1/sunxi-spl.bin ]] && dd if=$1/sunxi-spl.bin of=$2 bs=8k seek=1 conv=fsync > /dev/null 2>&1
[[ -f $1/u-boot.itb ]] && dd if=$1/u-boot.itb of=$2 bs=8k seek=5 conv=fsync > /dev/null 2>&1 || true
dd if=/dev/zero of=$2 bs=1k count=1023 seek=1 status=noxfer > /dev/null 2>&1
dd if=$1/u-boot-sunxi-with-spl.bin of=$2 bs=1024 seek=8 status=noxfer > /dev/null 2>&1
}
setup_write_uboot_platform()