Skip to contentSkip to conversation

OMAP3: omap3_logic: Add scripts to boot over network.

PATCH In review Adam Ford 2 participants 3 messages Oct 15, 2016 – Nov 2, 2016

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 OMAP3: omap3_logic: Add scripts to boot over network.

Not all networks have a DHCP server configured properly, so these scripts make it easier to boot in that scenario.

include/configs/omap3_logic.h +16 -3
index 95ff5c3..0827ebe 100644
@@ -189,6 +189,12 @@
 		"${optargs} " \
 		"root=${nandroot} " \
 		"rootfstype=${nandrootfstype}\0" \
+	"nfsargs=run setconsole; setenv serverip ${tftpserver}; " \
+		"setenv bootargs console=${console} root=/dev/nfs " \
+		"nfsroot=${nfsrootpath} " \
+		"ip=${ipaddr}:${tftpserver}:${gatewayip}:${netmask}::eth0:off\0" \
+	"nfsrootpath=/opt/nfs-exports/omap\0" \
+	"autoload=no\0" \
 	"fdtaddr=0x86000000\0" \
 	"loadfdtimage=mmc rescan; " \
 		"fatload mmc ${mmcdev} ${fdtaddr} ${fdtimage}\0" \
@@ -213,14 +219,21 @@
 		"run loadzimage; " \
 		"run loadramdisk; " \
 		"run loadfdtimage; " \
-		"bootz ${loadaddr} ${ramdiskaddr} ${fdtaddr}\0; " \
+		"bootz ${loadaddr} ${ramdiskaddr} ${fdtaddr};\0" \
 	"tftpboot=echo 'Booting kernel/ramdisk rootfs from tftp...'; " \
 		"run ramargs; " \
 		"run common_bootargs; " \
 		"run dump_bootargs; " \
-		"tftpboot ${loadaddr} ${uimage}; " \
+		"tftpboot ${loadaddr} ${zimage}; " \
 		"tftpboot ${ramdiskaddr} ${ramdiskimage}; " \
-		"bootm ${loadaddr} ${ramdiskaddr}\0"
+		"bootm ${loadaddr} ${ramdiskaddr}\0" \
+	"tftpbootz=echo 'Booting kernel NFS rootfs...'; " \
+		"dhcp;" \
+		"run nfsargs;" \
+		"run common_bootargs;" \
+		"run dump_bootargs;" \
+		"tftpboot $loadaddr zImage;" \
+		"bootz $loadaddr\0"
 
 #define CONFIG_BOOTCOMMAND \
 	"run autoboot"
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 OMAP3: omap3_logic: Add scripts to boot over network.

include/configs/omap3_logic.h

Quoted 7 lines · Adam Ford

Not all networks have a DHCP server configured properly, so these scripts make it easier to boot in that scenario.

include/configs/omap3_logic.h +0 -0
index 95ff5c3..0827ebe 100644
Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161015/40eb2274/attachment.sig>
#2 lore raw
In reply to Adam Ford

include/configs/omap3_logic.h

Quoted 8 lines · Adam Ford

Not all networks have a DHCP server configured properly, so these scripts make it easier to boot in that scenario.

include/configs/omap3_logic.h +0 -0
index 95ff5c3..0827ebe 100644

Applied to u-boot/master (before v2016.11-rc3), thanks!

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