diff options
author | Adam Ford <aford173@gmail.com> | 2016-10-15 08:16:27 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-31 10:13:15 -0400 |
commit | 760d1afdcc1b020b4212ba6af6075278abd972d0 (patch) | |
tree | de5f453f7ef74d169c8b87e15ab7ce28ab50c8d2 /include | |
parent | 247dbda838a73275d311ab63bd7c5009f4f1f2dd (diff) | |
download | u-boot-imx-760d1afdcc1b020b4212ba6af6075278abd972d0.zip u-boot-imx-760d1afdcc1b020b4212ba6af6075278abd972d0.tar.gz u-boot-imx-760d1afdcc1b020b4212ba6af6075278abd972d0.tar.bz2 |
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.
Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/omap3_logic.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/include/configs/omap3_logic.h b/include/configs/omap3_logic.h index 95ff5c3..0827ebe 100644 --- a/include/configs/omap3_logic.h +++ b/include/configs/omap3_logic.h @@ -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" |