mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user