mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
u-boot/arm: simplify device tree handling
By updating $fdt_addr_r we can simplify boot-arm.scr.txt. Now we can explicitly pass the device tree address to bootefi instead of relying on a fallback inside U-Boot. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Change-Id: Ifceb574aca2814605a2e4e58e9187773817c5df2 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2970 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com> Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
parent
58611befa2
commit
7127c048db
@ -11,9 +11,8 @@ test -e ${media} 0 ${loader} && echo "Found ${loader} on ${media} 0!"
|
||||
echo "Loading bootloader..."
|
||||
fatload ${media} 0 ${kernel_addr_r} ${loader}
|
||||
test -e ${media} 0 haiku_floppyboot.ub && fatload ${media} 0 ${ramdisk_addr_r} haiku_floppyboot.ub
|
||||
env exists dtb && echo "Using custom DTB..." && fatload ${media} 0 ${fdt_addr_r} ${dtb} && fdt addr ${fdt_addr_r}
|
||||
env exists dtb || echo "Using internal DTB..." && fdt addr ${fdtcontroladdr}
|
||||
test "${platform}" = "efi" && echo "Launching EFI loader..." && bootefi ${kernel_addr_r}
|
||||
test "${platform}" = "u-boot" && env exists dtb && echo "Launching ub loader..." && bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdtcontroladdr}
|
||||
test "${platform}" = "u-boot" && env exists dtb || echo "Launching ub loader (w/custom fdt)..." && bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
|
||||
env exists dtb && echo "Using custom DTB..." && fatload ${media} 0 ${fdt_addr_r} ${dtb}
|
||||
env exists dtb || echo "Using internal DTB..." && setenv fdt_addr_r ${fdtcontroladdr}
|
||||
test "${platform}" = "efi" && echo "Launching EFI loader..." && bootefi ${kernel_addr_r} ${fdt_addr_r}
|
||||
test "${platform}" = "u-boot" && echo "Launching ub loader..." && bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
|
||||
echo "Haiku u-boot script fell through!" && exit
|
||||
|
Loading…
Reference in New Issue
Block a user