diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-11-16 14:07:53 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2016-11-30 17:02:38 +0800 |
commit | 60ffddf87cf6b8502c5d5fc6540364adfd66ebb3 (patch) | |
tree | c107e7e922f802a5f04dbd1f4e0d0a3f338f366d /include | |
parent | fa8efb3d70777554eef52d69468f3e63a828bcd9 (diff) | |
download | u-boot-imx-60ffddf87cf6b8502c5d5fc6540364adfd66ebb3.zip u-boot-imx-60ffddf87cf6b8502c5d5fc6540364adfd66ebb3.tar.gz u-boot-imx-60ffddf87cf6b8502c5d5fc6540364adfd66ebb3.tar.bz2 |
MLK-13547 configs: mx7ulp_evk: enable ethernet boot support
Since we can use USB ethernet instead of local ethernet, add ethernet support
for it. To use USB ethernet function at u-boot, just plug in Micro-AB cable
at USBOTG1 port with USB2Ethernet adapter connected.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mx7ulp_evk.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/configs/mx7ulp_evk.h b/include/configs/mx7ulp_evk.h index ab9a4af..af0cce0 100644 --- a/include/configs/mx7ulp_evk.h +++ b/include/configs/mx7ulp_evk.h @@ -191,6 +191,31 @@ "else " \ "bootz; " \ "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; " \ + "usb start; "\ + "${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 \ "mmc dev ${mmcdev}; if mmc rescan; then " \ @@ -234,6 +259,10 @@ #define CONFIG_MXC_USB_FLAGS 0 #define CONFIG_USB_MAX_CONTROLLER_COUNT 1 +/* Network Configs */ +#define CONFIG_CMD_PING +#define CONFIG_CMD_DHCP + /* QSPI configs */ #define CONFIG_FSL_QSPI #ifdef CONFIG_FSL_QSPI |