aboutsummaryrefslogtreecommitdiff
path: root/release/arm/BANANAPI.conf
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2018-07-31 19:10:50 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2018-07-31 19:10:50 +0000
commit89f81528b34485aaea5331130daae4f44ef06883 (patch)
tree64be95b5f8c9db8487e6f3e587d1dd103eedf011 /release/arm/BANANAPI.conf
parentcfe196fbed0284e4aaa744d53396755365f8bbaa (diff)
downloadsrc-89f81528b34485aaea5331130daae4f44ef06883.tar.gz
src-89f81528b34485aaea5331130daae4f44ef06883.zip
release: Restore copy of boot.scr for some board
This is not a problem for 12-CURRENT as EFI boot works but it doesn't for 11. While here some board arm_install_uboot also copy ubldr.bin et create firstboot files but it's already done in arm_install_boot Reviewed by: gjb MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D16481
Notes
Notes: svn path=/head/; revision=336997
Diffstat (limited to 'release/arm/BANANAPI.conf')
-rw-r--r--release/arm/BANANAPI.conf9
1 files changed, 8 insertions, 1 deletions
diff --git a/release/arm/BANANAPI.conf b/release/arm/BANANAPI.conf
index 5b06c62600da..3d652ff39bb3 100644
--- a/release/arm/BANANAPI.conf
+++ b/release/arm/BANANAPI.conf
@@ -19,8 +19,15 @@ export BOARDNAME="BANANAPI"
arm_install_uboot() {
UBOOT_DIR="/usr/local/share/u-boot/u-boot-bananapi"
UBOOT_FILES="u-boot-sunxi-with-spl.bin"
+ FATMOUNT="${DESTDIR%${KERNEL}}/fat"
chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
of=/dev/${mddev} bs=1k seek=8 conv=sync
-
+ chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}"
+ chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
+ chroot ${CHROOTDIR} cp ${UBOOT_DIR}/boot.scr ${FATMOUNT}/boot.scr
+ sync
+ umount_loop ${CHROOTDIR}/${FATMOUNT}
+ chroot ${CHROOTDIR} rmdir ${FATMOUNT}
+
return 0
}