Fix build failure during arm_install_uboot() (#292)

Build would fail when writing to the image's MSDOSBOOT partition without 'sysctl kern.geom.debugflags=0x10'
This commit is contained in:
TheRandMan 2022-05-18 22:47:24 -07:00 committed by GitHub
parent e3be821766
commit 4901cab467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -19,7 +19,9 @@ export ARM_UBOOT_DIR="/usr/local/share/u-boot/u-boot-rockpro64"
arm_install_uboot()
{
sysctl kern.geom.debugflags=0x10
dd if=${ARM_UBOOT_DIR}/idbloader.img of=/dev/${DEV} seek=64 bs=512 conv=sync
dd if=${ARM_UBOOT_DIR}/u-boot.itb of=/dev/${DEV} seek=16384 bs=512 conv=sync
cp -pr ${STAGEDIR}/boot/dtb ${STAGEDIR}/boot/msdos
sysctl kern.geom.debugflags=0x0
}