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 Switch to efiboot



details:   https://anonhg.NetBSD.org/src/rev/8907d7e1520f
branches:  trunk
changeset: 997887:8907d7e1520f
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Mar 30 13:37:45 2019 +0000

description:
Switch to efiboot

diffstat:

 distrib/utils/embedded/files/armv7_boot.cmd |  54 +++-------------------------
 1 files changed, 7 insertions(+), 47 deletions(-)

diffs (70 lines):

diff -r 7026d06b5778 -r 8907d7e1520f distrib/utils/embedded/files/armv7_boot.cmd
--- a/distrib/utils/embedded/files/armv7_boot.cmd       Sat Mar 30 13:17:23 2019 +0000
+++ b/distrib/utils/embedded/files/armv7_boot.cmd       Sat Mar 30 13:37:45 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