Skip to content
Snippets Groups Projects
Commit fa58b102 authored by Cooper Jr., Franklin's avatar Cooper Jr., Franklin Committed by Tom Rini
Browse files

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: default avatarFranklin S Cooper Jr <fcooper@ti.com>
parent a91ef4ad
No related branches found
No related tags found
No related merge requests found
...@@ -85,10 +85,16 @@ ...@@ -85,10 +85,16 @@
"vram=${vram} " \ "vram=${vram} " \
"root=${mmcroot} " \ "root=${mmcroot} " \
"rootfstype=${mmcrootfstype}\0" \ "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" \ "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
"bootscript=echo Running bootscript from mmc${mmcdev} ...; " \ "bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
"source ${loadaddr}\0" \ "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} ...; " \ "importbootenv=echo Importing environment from mmc${mmcdev} ...; " \
"env import -t ${loadaddr} ${filesize}\0" \ "env import -t ${loadaddr} ${filesize}\0" \
"loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \ "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
...@@ -110,6 +116,13 @@ ...@@ -110,6 +116,13 @@
"bootz ${loadaddr} - ${fdtaddr}; " \ "bootz ${loadaddr} - ${fdtaddr}; " \
"fi;" \ "fi;" \
"fi;\0" \ "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="\ "findfdt="\
"if test $board_name = omap5_uevm; then " \ "if test $board_name = omap5_uevm; then " \
"setenv fdtfile omap5-uevm.dtb; fi; " \ "setenv fdtfile omap5-uevm.dtb; fi; " \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment