freebsd-skq/stand
manu db9fe39110 loader: fdt: Try to load every possible DTB from u-boot
U-Boot setup a few variables :

 - fdt_addr which is the board static dtb (most of the time loaded before
   u-boot or coming from some hardware like a ROM)
 - fdt_addr_r which is a location in RAM that holds the DTB loaded by
   u-boot or before u-boot

In the case of u-boot + rpi firmware the DTB is loaded in RAM but the location
still end up in the fdt_addr variable and the fdt_addr_r variable exist.

Change the behavior so we test that a DTB exists for every possible variable :

 - fdt_addr_r is checked first as if u-boot needed to modify it the
   correct DTB will live there.
 - fdt_addr is checked second as if we run on a hardware with DTB in ROM
   it means that we what/need to run that
 - fdtaddr looks like a FreeBSD-ism but since I'm not sure leave it.

Reviewed by:	gonzo
Differential Revision:	https://reviews.freebsd.org/D16101
2018-07-04 07:37:45 +00:00
..
arm Go back to one loader.conf 2018-02-26 03:16:47 +00:00
arm64 No need to make objects here. 2018-04-27 22:15:18 +00:00
common stand/common/disk.c: dev->d_offset still needs to be set to 0 2018-07-03 05:53:27 +00:00
defaults Default loader.conf: Drop efi_max_resolution to 1x1 2018-04-03 02:41:32 +00:00
efi Revert preference to be an int. 2018-06-28 19:42:10 +00:00
fdt Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
ficl Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
ficl32
forth check-password.4th(8): Fix manual [in]accuracy 2018-06-24 19:29:29 +00:00
i386 Revert r335276 2018-06-20 00:14:54 +00:00
kshim A more definitions to kernel emulation shim in order to build stand/usb. 2018-02-07 18:50:36 +00:00
liblua Use M. Warner Losh everywhere on my copyrights. 2018-05-01 16:29:22 +00:00
liblua32 Add Lua as a scripting langauge to /boot/loader 2018-02-12 15:31:53 +00:00
libsa Remove stray debugging line. 2018-06-18 19:53:11 +00:00
libsa32
lua lualoader: Correct kernel_options handling 2018-06-19 15:05:31 +00:00
man Clarify that boot_mute / boot -m mutes kernel console only 2018-05-16 02:15:18 +00:00
mips Don't use CCACHE for linking. 2018-06-27 19:29:15 +00:00
ofw - Unbreak booting sparc64 kernels after the metadata unification in 2018-05-21 01:20:19 +00:00
powerpc bootprog_info is generated in vers.c. Move it's definition to 2018-06-14 06:41:33 +00:00
sparc64 bootprog_info is generated in vers.c. Move it's definition to 2018-06-14 06:41:33 +00:00
uboot loader: fdt: Try to load every possible DTB from u-boot 2018-07-04 07:37:45 +00:00
usb Move the stand/usb test loader into its own directory. 2018-02-07 19:20:59 +00:00
userboot bootprog_info is generated in vers.c. Move it's definition to 2018-06-14 06:41:33 +00:00
zfs Cut currdev dev and path fields for ZFS on the last colon. 2018-07-02 20:56:17 +00:00
zfs32
defs.mk stand: move libgeliboot into libsa. 2018-06-18 16:24:42 +00:00
fdt.mk
ficl.mk Remove redundant defs.mk includes. They aren't needed. 2018-06-14 06:14:48 +00:00
loader.mk Remove redundant defs.mk includes. They aren't needed. 2018-06-14 06:14:48 +00:00
lua.mk Do not include float interfaces when using libsa. 2018-02-23 04:04:25 +00:00
Makefile stand: move libgeliboot into libsa. 2018-06-18 16:24:42 +00:00
Makefile.amd64 Create LOADER_UBOOT, and LOADER_OFW. Move these options out of 2018-03-01 19:50:55 +00:00
Makefile.inc
uboot.mk Unify metadata load files for arm, mips, powerpc, sparc64 2018-02-13 03:44:50 +00:00