diff options
author | Cooper Jr., Franklin <fcooper@ti.com> | 2014-12-04 11:27:05 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2015-01-13 15:26:11 -0500 |
commit | fa58b102cd8f5345cbc28657600c3a28acfbd80e (patch) | |
tree | 3fcb9d94edd46e43e409616b22a3a42c43bee143 /include | |
parent | a91ef4adfb5a4b21ebf37dffcb6c6e485c75685b (diff) | |
download | u-boot-imx-fa58b102cd8f5345cbc28657600c3a28acfbd80e.zip u-boot-imx-fa58b102cd8f5345cbc28657600c3a28acfbd80e.tar.gz u-boot-imx-fa58b102cd8f5345cbc28657600c3a28acfbd80e.tar.bz2 |
omap5: Add netargs and netboot option
* Add netargs and netboot option.
* This enables tftp and nfs booting
* This puts omap5 devices inline with other devices such as am335x and am437x
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/ti_omap5_common.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h index c47651d..925cb42 100644 --- a/include/configs/ti_omap5_common.h +++ b/include/configs/ti_omap5_common.h @@ -85,10 +85,16 @@ "vram=${vram} " \ "root=${mmcroot} " \ "rootfstype=${mmcrootfstype}\0" \ + "netargs=setenv bootargs console=${console} " \ + "${optargs} " \ + "root=/dev/nfs " \ + "nfsroot=${serverip}:${rootpath},${nfsopts} rw " \ + "ip=dhcp\0" \ "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \ "bootscript=echo Running bootscript from mmc${mmcdev} ...; " \ "source ${loadaddr}\0" \ - "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt\0" \ + "bootenv=uEnv.txt\0" \ + "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \ "importbootenv=echo Importing environment from mmc${mmcdev} ...; " \ "env import -t ${loadaddr} ${filesize}\0" \ "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \ @@ -110,6 +116,13 @@ "bootz ${loadaddr} - ${fdtaddr}; " \ "fi;" \ "fi;\0" \ + "netboot=echo Booting from network ...; " \ + "set env autoload no; " \ + "dhcp; " \ + "tftp ${loadaddr} ${bootfile}; " \ + "tftp ${fdtaddr} ${fdtfile}; " \ + "run netargs; " \ + "bootz ${loadaddr} - ${fdtaddr}\0" \ "findfdt="\ "if test $board_name = omap5_uevm; then " \ "setenv fdtfile omap5-uevm.dtb; fi; " \ |