Skip to contentSkip to conversation

am43xx_evm: Add netboot and related to environment

PATCH New Franklin S Cooper Jr 4 participants 4 messages Feb 16, 2015 – Feb 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 am43xx_evm: Add netboot and related to environment

From: Tom Rini <[email protected]>

---
 include/configs/am43xx_evm.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
include/configs/am43xx_evm.h +16 -0
index 7ccbf36..44b6f93 100644
@@ -168,6 +168,10 @@
 	"usbroot=/dev/sda2 rw\0" \
 	"usbrootfstype=ext4 rootwait\0" \
 	"usbdev=0\0" \
+	"rootpath=/export/rootfs\0" \
+	"nfsopts=nolock\0" \
+	"static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}" \
+		"::off\0" \
 	"ramroot=/dev/ram0 rw\0" \
 	"ramrootfstype=ext2\0" \
 	"mmcargs=setenv bootargs console=${console} " \
@@ -178,6 +182,11 @@
 		"${optargs} " \
 		"root=${usbroot} " \
 		"rootfstype=${usbrootfstype}\0" \
+	"netargs=setenv bootargs console=${console} " \
+		"${optargs} " \
+		"root=/dev/nfs " \
+		"nfsroot=${serverip}:${rootpath},${nfsopts} rw " \
+		"ip=dhcp\0" \
 	"bootenv=uEnv.txt\0" \
 	"loadbootenv=load ${devtype} ${devnum} ${loadaddr} ${bootenv}\0" \
 	"importbootenv=echo Importing environment from mmc ...; " \
@@ -229,6 +238,13 @@
 				"bootz ${loadaddr} - ${fdtaddr}; " \
 			"fi;" \
 		"fi\0" \
+	"netboot=echo Booting from network ...; " \
+		"setenv autoload no; " \
+		"dhcp; " \
+		"tftp ${loadaddr} ${bootfile}; " \
+		"tftp ${fdtaddr} ${fdtfile}; " \
+		"run netargs; " \
+		"bootz ${loadaddr} - ${fdtaddr}\0" \
 	"findfdt="\
 		"if test $board_name = AM43EPOS; then " \
 			"setenv fdtfile am43x-epos-evm.dtb; fi; " \
Signature · 1 line
2.2.2
#1 lore raw

PATCH 1/1 am43xx_evm: Add netboot and related to environment

Quoted 39 lines · Franklin S Cooper Jr

From: Tom Rini <[email protected]>

---
 include/configs/am43xx_evm.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
include/configs/am43xx_evm.h +9 -0
index 7ccbf36..44b6f93 100644
@@ -168,6 +168,10 @@
 	"usbroot=/dev/sda2 rw\0" \
 	"usbrootfstype=ext4 rootwait\0" \
 	"usbdev=0\0" \
+	"rootpath=/export/rootfs\0" \
+	"nfsopts=nolock\0" \
+	"static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}" \
+		"::off\0" \
 	"ramroot=/dev/ram0 rw\0" \
 	"ramrootfstype=ext2\0" \
 	"mmcargs=setenv bootargs console=${console} " \
@@ -178,6 +182,11 @@
 		"${optargs} " \
 		"root=${usbroot} " \
 		"rootfstype=${usbrootfstype}\0" \
+	"netargs=setenv bootargs console=${console} " \
+		"${optargs} " \
+		"root=/dev/nfs " \
+		"nfsroot=${serverip}:${rootpath},${nfsopts} rw " \
+		"ip=dhcp\0" \
 	"bootenv=uEnv.txt\0" \
 	"loadbootenv=load ${devtype} ${devnum} ${loadaddr} ${bootenv}\0" \
 	"importbootenv=echo Importing environment from mmc ...; " \
@@ -229,6 +238,13 @@
 				"bootz ${loadaddr} - ${fdtaddr}; " \
 			"fi;" \
 		"fi\0" \

include/configs/am43xx_evm.h line 250

Quoted 10 lines
include/configs/am43xx_evm.h +7 -0
+	"netboot=echo Booting from network ...; " \
+		"setenv autoload no; " \
+		"dhcp; " \
+		"tftp ${loadaddr} ${bootfile}; " \
+		"tftp ${fdtaddr} ${fdtfile}; " \
+		"run netargs; " \
+		"bootz ${loadaddr} - ${fdtaddr}\0" \
 	"findfdt="\
 		"if test $board_name = AM43EPOS; then " \
 			"setenv fdtfile am43x-epos-evm.dtb; fi; " \

Should we start introducing generic macros in v7_common.h ? that'd let all network enabled platforms to uniformly provide this?

Signature · 2 lines
Regards,
Nishanth Menon
#2 lore raw

PATCH 1/1 am43xx_evm: Add netboot and related to environment

Quoted 56 lines

-----Original Message-----
From: Menon, Nishanth
Sent: Monday, February 16, 2015 4:03 PM
To: Cooper Jr., Franklin; u-boot at lists.denx.de
Cc: Rini, Tom
Subject: Re: [U-Boot] [PATCH] am43xx_evm: Add netboot and related to environment

Quoted 12 lines · Franklin S Cooper Jr

From: Tom Rini <[email protected]>

---
 include/configs/am43xx_evm.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
(quoted diff) +0 -0

b/include/configs/am43xx_evm.h index 7ccbf36..44b6f93 100644

include/configs/am43xx_evm.h line 173

Quoted 6 lines
include/configs/am43xx_evm.h +3 -0
@@ -168,6 +168,10 @@
 	"usbroot=/dev/sda2 rw\0" \
 	"usbrootfstype=ext4 rootwait\0" \
 	"usbdev=0\0" \
+	"rootpath=/export/rootfs\0" \
+	"nfsopts=nolock\0" \
+	"static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}"

\

include/configs/am43xx_evm.h

Quoted 4 lines
include/configs/am43xx_evm.h +1 -0
+		"::off\0" \
 	"ramroot=/dev/ram0 rw\0" \
 	"ramrootfstype=ext2\0" \
 	"mmcargs=setenv bootargs console=${console} " \ @@ -178,6 +182,11

@@

Quoted 21 lines
include/configs/am43xx_evm.h +11 -1
 		"${optargs} " \
 		"root=${usbroot} " \
 		"rootfstype=${usbrootfstype}\0" \
+	"netargs=setenv bootargs console=${console} " \
+		"${optargs} " \
+		"root=/dev/nfs " \
+		"nfsroot=${serverip}:${rootpath},${nfsopts} rw " \
+		"ip=dhcp\0" \
 	"bootenv=uEnv.txt\0" \
 	"loadbootenv=load ${devtype} ${devnum} ${loadaddr} ${bootenv}\0" \
 	"importbootenv=echo Importing environment from mmc ...; " \ @@
-229,6 +238,13 @@
 				"bootz ${loadaddr} - ${fdtaddr}; " \
 			"fi;" \
 		"fi\0" \
+	"netboot=echo Booting from network ...; " \
+		"setenv autoload no; " \
+		"dhcp; " \
+		"tftp ${loadaddr} ${bootfile}; " \
+		"tftp ${fdtaddr} ${fdtfile}; " \
+		"run netargs; " \
Quoted 8 lines

include/configs/am43xx_evm.h line 250

Quoted 5 lines
include/configs/am43xx_evm.h +1 -0
+		"bootz ${loadaddr} - ${fdtaddr}\0" \
 	"findfdt="\
 		"if test $board_name = AM43EPOS; then " \
 			"setenv fdtfile am43x-epos-evm.dtb; fi; " \

Should we start introducing generic macros in v7_common.h ? that'd let all network enabled platforms to uniformly provide this?

[Franklin] I see no issue with that. We should probably do the same for mmc, usb and probably some other peripherals. It won't really change anything for 335x, 437x and am57x TI evms but users of non TI boards or other TI SOCs may have an issue.

Quoted 4 lines

--
Regards,
Nishanth Menon

#3 lore raw

PATCH 1/1 am43xx_evm: Add netboot and related to environment

Quoted 64 lines · Franklin
Quoted 56 lines

-----Original Message-----
From: Menon, Nishanth
Sent: Monday, February 16, 2015 4:03 PM
To: Cooper Jr., Franklin; u-boot at lists.denx.de
Cc: Rini, Tom
Subject: Re: [U-Boot] [PATCH] am43xx_evm: Add netboot and related to environment

Quoted 12 lines · Franklin S Cooper Jr

From: Tom Rini <[email protected]>

---
 include/configs/am43xx_evm.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
(quoted diff) +0 -0

b/include/configs/am43xx_evm.h index 7ccbf36..44b6f93 100644

include/configs/am43xx_evm.h line 173

Quoted 6 lines
include/configs/am43xx_evm.h +3 -0
@@ -168,6 +168,10 @@
 	"usbroot=/dev/sda2 rw\0" \
 	"usbrootfstype=ext4 rootwait\0" \
 	"usbdev=0\0" \
+	"rootpath=/export/rootfs\0" \
+	"nfsopts=nolock\0" \
+	"static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}"

\

include/configs/am43xx_evm.h

Quoted 4 lines
include/configs/am43xx_evm.h +1 -0
+		"::off\0" \
 	"ramroot=/dev/ram0 rw\0" \
 	"ramrootfstype=ext2\0" \
 	"mmcargs=setenv bootargs console=${console} " \ @@ -178,6 +182,11

@@

Quoted 21 lines
include/configs/am43xx_evm.h +11 -1
 		"${optargs} " \
 		"root=${usbroot} " \
 		"rootfstype=${usbrootfstype}\0" \
+	"netargs=setenv bootargs console=${console} " \
+		"${optargs} " \
+		"root=/dev/nfs " \
+		"nfsroot=${serverip}:${rootpath},${nfsopts} rw " \
+		"ip=dhcp\0" \
 	"bootenv=uEnv.txt\0" \
 	"loadbootenv=load ${devtype} ${devnum} ${loadaddr} ${bootenv}\0" \
 	"importbootenv=echo Importing environment from mmc ...; " \ @@
-229,6 +238,13 @@
 				"bootz ${loadaddr} - ${fdtaddr}; " \
 			"fi;" \
 		"fi\0" \
+	"netboot=echo Booting from network ...; " \
+		"setenv autoload no; " \
+		"dhcp; " \
+		"tftp ${loadaddr} ${bootfile}; " \
+		"tftp ${fdtaddr} ${fdtfile}; " \
+		"run netargs; " \
Quoted 8 lines

include/configs/am43xx_evm.h line 250

Quoted 5 lines
include/configs/am43xx_evm.h +1 -0
+		"bootz ${loadaddr} - ${fdtaddr}\0" \
 	"findfdt="\
 		"if test $board_name = AM43EPOS; then " \
 			"setenv fdtfile am43x-epos-evm.dtb; fi; " \

Should we start introducing generic macros in v7_common.h ? that'd let all network enabled platforms to uniformly provide this?

Quoted 1 line

[Franklin] I see no issue with that. We should probably do the same for mmc, usb and probably some other peripherals. It won't really change anything for 335x, 437x and am57x TI evms but users of non TI boards or other TI SOCs may have an issue.

And at that point adopt some of the generic distro boot command patches that have been posted for am335x to be to ti_armv7_common.h and update that generic framework as needed for netboot, etc?

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150216/b95e29e3/attachment.sig>