Create hard links to the installed dtb files for the BEAGLEBONE [1]

and WANDBOARD [2] images to fix a boot issue.

This is a direct commit to stable/10, as the change is not needed
for head and stable/11.

Approved by:	re (marius)
Help from:	manu [1], ian [2]
Tested by:	gjb [1], ian [2]
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2017-08-18 16:43:59 +00:00
parent 6bcb4a7105
commit a26c2dc81b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=322666
2 changed files with 8 additions and 0 deletions

View File

@ -28,6 +28,10 @@ arm_install_uboot() {
chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr ${FATMOUNT}/ubldr chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr ${FATMOUNT}/ubldr
chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr.bin \ chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr.bin \
${FATMOUNT}/ubldr.bin ${FATMOUNT}/ubldr.bin
chroot ${CHROOTDIR} ln ${UFSMOUNT}/boot/dtb/beaglebone.dtb \
${UFSMOUNT}/boot/dtb/am335x-bone.dtb
chroot ${CHROOTDIR} ln ${UFSMOUNT}/boot/dtb/beaglebone-black.dtb \
${UFSMOUNT}/boot/dtb/am335x-boneblack.dtb
chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot
sync sync
umount_loop ${CHROOTDIR}/${FATMOUNT} umount_loop ${CHROOTDIR}/${FATMOUNT}

View File

@ -31,6 +31,10 @@ arm_install_uboot() {
chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr ${FATMOUNT}/ubldr chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr ${FATMOUNT}/ubldr
chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr.bin \ chroot ${CHROOTDIR} cp -p ${UFSMOUNT}/boot/ubldr.bin \
${FATMOUNT}/ubldr.bin ${FATMOUNT}/ubldr.bin
chroot ${CHROOTDIR} ln ${UFSMOUNT}/boot/dtb/imx6dl-wandboard.dtb \
${UFSMOUNT}/boot/dtb/imx6dl-wandboard-revb1.dtb
chroot ${CHROOTDIR} ln ${UFSMOUNT}/boot/dtb/imx6q-wandboard.dtb
${UFSMOUNT}/boot/dtb/imx6q-wandboard-revb1.dtb
chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot
sync sync
umount_loop ${CHROOTDIR}/${FATMOUNT} umount_loop ${CHROOTDIR}/${FATMOUNT}