Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/embedded/files Re-enable efiboot for armv7 (th...
details: https://anonhg.NetBSD.org/src/rev/4c6d728ff9ad
branches: trunk
changeset: 840367:4c6d728ff9ad
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Apr 04 14:26:39 2019 +0000
description:
Re-enable efiboot for armv7 (thanks skrll@)
diffstat:
distrib/utils/embedded/files/armv7_boot.cmd | 54 +++-------------------------
1 files changed, 7 insertions(+), 47 deletions(-)
diffs (70 lines):
diff -r ab44e8b81687 -r 4c6d728ff9ad distrib/utils/embedded/files/armv7_boot.cmd
--- a/distrib/utils/embedded/files/armv7_boot.cmd Thu Apr 04 14:24:20 2019 +0000
+++ b/distrib/utils/embedded/files/armv7_boot.cmd Thu Apr 04 14:26:39 2019 +0000
@@ -2,59 +2,19 @@
setenv kernel netbsd-BEAGLEBONE.ub
setenv mmcpart 0:1
setenv bootargs root=ld0a
-fi
-if test "${board}" = "de0-nano-soc" ; then
- setenv kernel netbsd-GENERIC.ub
- setenv bootargs 'root=ld0a'
- setenv mmcpart 0:1
- setenv use_fdt 1
-fi
-if test "${soc}" = "exynos" ; then
- setenv kernel netbsd-GENERIC.ub
- setenv bootargs 'root=ld1a'
- setenv mmcpart 2:1
- setenv use_fdt 1
-fi
-if test "${soc}" = "sunxi" ; then
- setenv kernel netbsd-GENERIC.ub
- setenv bootargs 'root=ld0a'
- setenv mmcpart 0:1
- setenv use_fdt 1
+else
+ setenv use_efi 1
fi
-if test "${soc}" = "tegra" ; then
- setenv kernel netbsd-GENERIC.ub
- setenv bootargs root=ld1a
- setenv mmcpart 1:1
- setenv use_fdt 1
-fi
-if test "${soc}" = "tegra124" ; then
- setenv kernel netbsd-GENERIC.ub
- setenv bootargs root=ld0a
- setenv mmcpart 1:1
- setenv use_fdt 1
-fi
+
if test "${soc}" = "tegra210" ; then
- setenv kernel netbsd-GENERIC.ub
- setenv bootargs root=ld0a
- setenv mmcpart 1:1
- setenv use_fdt 1
- setenv fdtfile ${soc}-${board}.dtb
# enable PCIe
pci enum
fi
-if test "${kernel}" = "" ; then
- echo '>>>'
- echo '>>> Target device is not supported by this script.'
- echo '>>>'
- exit
-fi
-
-if test "${use_fdt}" = "1" ; then
- fatload mmc ${mmcpart} ${kernel_addr_r} ${kernel}
- fatload mmc ${mmcpart} ${fdt_addr_r} ${fdtfile}
- fdt addr ${fdt_addr_r}
- bootm ${kernel_addr_r} - ${fdt_addr_r}
+if test "${use_efi}" = "1" ; then
+ setenv boot_scripts
+ setenv boot_script_dhcp
+ run distro_bootcmd
else
fatload mmc ${mmcpart} ${kernel_addr_r} ${kernel}
bootm ${kernel_addr_r} ${bootargs}
Home |
Main Index |
Thread Index |
Old Index