]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: stmark2: add sd boot command
authorAngelo Dureghello <angelo@kernel-space.org>
Mon, 23 Mar 2026 21:32:23 +0000 (22:32 +0100)
committerAngelo Dureghello <angelo@kernel-space.org>
Mon, 4 May 2026 20:19:49 +0000 (22:19 +0200)
Add command to boot from sd.

Signed-off-by: Angelo Dureghello <angelo@kernel-space.org>
include/configs/stmark2.h

index c8a39e191a21d8a1f6d6d699acdf030be011e8f5..a7afbb3be1f84bc38424332676b1d5fae0914a2e 100644 (file)
        board/sysam/stmark2/sbf_dram_init.o (.text*)
 
 #define CFG_EXTRA_ENV_SETTINGS                         \
+       "boot_sd=load mmc 0:1 ${loadaddr} uImage; "             \
+               "load mmc 0:1 ${loadaddr_ramfs} uRamfs\0"       \
        "kern_size=0x700000\0"                                  \
-       "loadaddr=0x40001000\0"                                 \
+       "loadaddr=0x42000000\0"                                 \
                "-(rootfs)\0"                                   \
+       "loadaddr_ramfs=0x43000000\0"                           \
        "update_uboot=loady ${loadaddr}; "                      \
                "sf probe 0:1 50000000; "                       \
                "sf erase 0 0x80000; "                          \