]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: zynq: Fix NOR boot mode
authorMichal Simek <michal.simek@xilinx.com>
Wed, 11 Sep 2019 11:16:33 +0000 (13:16 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 8 Oct 2019 07:41:27 +0000 (09:41 +0200)
There are two typos in this command that's why it couldn't work properly.
This bootmode is almost unused from the beggining on this SoC.

Fixes: 90e97ab31e02 ("arm: zynq: Define distro boot commnads for qspi, nand and nor")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/zynq-common.h

index de6c06ba3ce7770e619264ce40b92d049225d6f9..09eada39023c7d1e0d520a04c0080dc88e4fa4f7 100644 (file)
        "nand "
 
 #define BOOTENV_DEV_NOR(devtypeu, devtypel, instance) \
-       "bootcmd_nor=cp.b $scropt_offset_nor $scriptaddr $script_size_f && " \
+       "script_offset_nor=0xE2FC0000\0"        \
+       "bootcmd_nor=cp.b ${script_offset_nor} ${scriptaddr} ${script_size_f} && " \
                     "source ${scriptaddr}; echo SCRIPT FAILED: continuing...;\0"
 
 #define BOOTENV_DEV_NAME_NOR(devtypeu, devtypel, instance) \
        "fdt_high=0x20000000\0"         \
        "initrd_high=0x20000000\0"      \
        "scriptaddr=0x20000\0"  \
-       "script_offser_nor=0xE2FC0000\0"        \
        "script_offset_f=0xFC0000\0"    \
        "script_size_f=0x40000\0"       \
        "loadbootenv_addr=0x2000000\0" \