Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2018 17:21:20 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337383 - head/release/tools
Message-ID:  <201808061721.w76HLK1C001395@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Mon Aug  6 17:21:20 2018
New Revision: 337383
URL: https://svnweb.freebsd.org/changeset/base/337383

Log:
  release: arm: Copy the dtb to the fat partition
  
  When booting via EFI on arm we have no way to know the dtb file to load
  and we always use the one provided from the bootloader.
  This works in most case but :
  
   U-Boot have some really old DTB for some boards, the sync from Linux isn't done automatically for all boards
   Some boards (like TI BeagleBone series) use one u-boot for all the model and it doesn't embed the DTBs
   Some boards (like IMX6 based ones), don't embed the DTB
  
  We want u-boot to load and patch the DTB with the mac address or the display
  node enabled or not.
  
  Reviewed by:	gjb, imp
  Differential Revision:	https://reviews.freebsd.org/D16596

Modified:
  head/release/tools/arm.subr

Modified: head/release/tools/arm.subr
==============================================================================
--- head/release/tools/arm.subr	Mon Aug  6 16:22:01 2018	(r337382)
+++ head/release/tools/arm.subr	Mon Aug  6 17:21:20 2018	(r337383)
@@ -201,6 +201,8 @@ arm_install_boot() {
 	chroot ${CHROOTDIR} cp -p ${BOOTFILES}/efi/loader/loader.efi \
 		${FATMOUNT}/EFI/BOOT/$(efi_boot_name ${EMBEDDED_TARGET})
 
+	chroot ${CHROOTDIR} cp -R ${UFSMOUNT}/boot/dtb ${FATMOUNT}
+
 	chroot ${CHROOTDIR} touch ${UFSMOUNT}/firstboot
 	sync
 	umount_loop ${CHROOTDIR}/${FATMOUNT}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808061721.w76HLK1C001395>