diff options
author | Diego Dorta <diego.dorta@nxp.com> | 2016-06-15 13:53:41 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-07-12 17:58:50 +0200 |
commit | d0daec670fc3747f99dce69bc508ef2cfc44e769 (patch) | |
tree | 857e1d2bc21f561bb810614cfb1c55bc8630c32d /include/configs/pico-imx6ul.h | |
parent | dab149345930b9b5bdc55e88d761d8494c692aa2 (diff) | |
download | u-boot-d0daec670fc3747f99dce69bc508ef2cfc44e769.tar.gz |
pico-imx6ul: Add NFS boot support
Add script for retrieving the kernel via TFTP and mounting the
rootfs via NFS.
Signed-off-by: Diego Dorta <diego.dorta@nxp.com>
Acked-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'include/configs/pico-imx6ul.h')
-rw-r--r-- | include/configs/pico-imx6ul.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/include/configs/pico-imx6ul.h b/include/configs/pico-imx6ul.h index db78a543a8..f8fe2306ae 100644 --- a/include/configs/pico-imx6ul.h +++ b/include/configs/pico-imx6ul.h @@ -102,7 +102,31 @@ "bootz ${loadaddr} - ${fdt_addr}; " \ "else " \ "echo WARN: Cannot load the DT; " \ - "fi;\0" + "fi;\0" \ + "netargs=setenv bootargs console=${console},${baudrate} " \ + "root=/dev/nfs " \ + "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ + "netboot=echo Booting from net ...; " \ + "run netargs; " \ + "if test ${ip_dyn} = yes; then " \ + "setenv get_cmd dhcp; " \ + "else " \ + "setenv get_cmd tftp; " \ + "fi; " \ + "${get_cmd} ${image}; " \ + "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \ + "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \ + "bootz ${loadaddr} - ${fdt_addr}; " \ + "else " \ + "if test ${boot_fdt} = try; then " \ + "bootz; " \ + "else " \ + "echo WARN: Cannot load the DT; " \ + "fi; " \ + "fi; " \ + "else " \ + "bootz; " \ + "fi;\0" \ #define CONFIG_BOOTCOMMAND \ "if mmc rescan; then " \ |