]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
OMAP3: omap3_logic: Add scripts to boot over network.
authorAdam Ford <aford173@gmail.com>
Sat, 15 Oct 2016 13:16:27 +0000 (08:16 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 31 Oct 2016 14:13:15 +0000 (10:13 -0400)
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>
include/configs/omap3_logic.h

index 95ff5c3f4f6096bc77b8e169d8eab41315eab50b..0827ebedfd12d8bf557181550fb4531a63efb907 100644 (file)
                "${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" \
                "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"