]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: lsxl: reorder image loading and remove ramdisk_len
authorMichael Walle <michael@walle.cc>
Wed, 17 Aug 2022 19:38:00 +0000 (21:38 +0200)
committerStefan Roese <sr@denx.de>
Tue, 23 Aug 2022 10:39:45 +0000 (12:39 +0200)
We can load the ramdisk as the last step. This way we don't have to set
the intermediate variable 'ramdisk_len' and can remove it.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Stefan Roese <sr@denx.de>
include/configs/lsxl.h

index fb9a8c5032faeec71206adb1f5f927b645a153f3..7c2c0e22ad8c474a7ea1ac9c677347f600f41242 100644 (file)
                "&& load sata ${hdpart} ${ramdisk_addr} /initrd.buffalo "\
                "&& bootm ${kernel_addr} ${ramdisk_addr}\0"             \
        "bootcmd_net=bootp ${kernel_addr} vmlinuz "                     \
-               "&& tftpboot ${ramdisk_addr} initrd.img "               \
-               "&& setenv ramdisk_len ${filesize} "                    \
                "&& tftpboot ${fdt_addr} ${fdtfile} "                   \
+               "&& tftpboot ${ramdisk_addr} initrd.img "               \
                "&& bootz ${kernel_addr} "                              \
-                       "${ramdisk_addr}:${ramdisk_len} ${fdt_addr}\0"  \
+                       "${ramdisk_addr}:${filesize} ${fdt_addr}\0"     \
        "bootcmd_hdd=sata init "                                        \
                "&& load sata ${hdpart} ${kernel_addr} /vmlinuz "       \
-               "&& load sata ${hdpart} ${ramdisk_addr} /initrd.img "   \
-               "&& setenv ramdisk_len ${filesize} "                    \
                "&& load sata ${hdpart} ${fdt_addr} /dtb "              \
+               "&& load sata ${hdpart} ${ramdisk_addr} /initrd.img "   \
                "&& bootz ${kernel_addr} "                              \
-                       "${ramdisk_addr}:${ramdisk_len} ${fdt_addr}\0"  \
+                       "${ramdisk_addr}:${filesize} ${fdt_addr}\0"     \
        "bootcmd_usb=usb start "                                        \
                "&& load usb 0:1 ${kernel_addr} /vmlinuz "              \
-               "&& load usb 0:1 ${ramdisk_addr} /initrd.img "          \
-               "&& setenv ramdisk_len ${filesize} "                    \
                "&& load usb 0:1 ${fdt_addr} ${fdtfile} "               \
+               "&& load usb 0:1 ${ramdisk_addr} /initrd.img "          \
                "&& bootz ${kernel_addr} "                              \
-                       "${ramdisk_addr}:${ramdisk_len} ${fdt_addr}\0"  \
+                       "${ramdisk_addr}:${filesize} ${fdt_addr}\0"     \
        "bootcmd_rescue=run config_nc_dhcp; run nc\0"                   \
        "config_nc_dhcp=setenv autoload_old ${autoload}; "              \
                "setenv autoload no "                                   \