ARM: uniphier: fix nfsboot command
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 21 Jan 2016 05:56:09 +0000 (14:56 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 14 Feb 2016 07:36:12 +0000 (16:36 +0900)
This is no longer working, so needs reworking.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
include/configs/uniphier.h

index f8bb197978e4a606b438526ff4c6cad8c5fb0816..b340f63cdef6157a41e4be86f8a88472b16bc7cd 100644 (file)
        "setenv bootargs $bootargs root=/dev/nfs rw "                   \
        "nfsroot=$serverip:$rootpath "                                  \
        "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off;" \
-       "tftpboot; bootm;"
+               "run __nfsboot"
 
 #ifdef CONFIG_FIT
 #define CONFIG_BOOTFILE                        "fitImage"
        "nandboot=nand read $fit_addr_r $fit_addr $fit_size &&" \
                "bootm $fit_addr_r\0" \
        "tftpboot=tftpboot $fit_addr_r $bootfile &&" \
-               "bootm $fit_addr_r\0"
+               "bootm $fit_addr_r\0" \
+       "__nfsboot=run tftpboot\0"
 #else
 #define CONFIG_CMD_BOOTZ
 #define CONFIG_BOOTFILE                        "zImage"
        "tftpboot=tftpboot $kernel_addr_r $bootfile &&" \
                "tftpboot $ramdisk_addr_r $ramdisk_file &&" \
                "tftpboot $fdt_addr_r $fdt_file &&" \
+               "run boot_common\0" \
+       "__nfsboot=tftpboot $kernel_addr_r $bootfile &&" \
+               "tftpboot $fdt_addr_r $fdt_file &&" \
+               "tftpboot $fdt_addr_r $fdt_file &&" \
+               "setenv ramdisk_addr_r - &&" \
                "run boot_common\0"
 #endif