]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
smegw01: Allow booting the Yocto image by default
authorFabio Estevam <festevam@denx.de>
Tue, 15 Jun 2021 23:38:38 +0000 (20:38 -0300)
committerStefano Babic <sbabic@denx.de>
Sat, 10 Jul 2021 14:53:34 +0000 (16:53 +0200)
On the Yocto image there is a single partition and the kernel
and dtb are present in the 'boot' directory.

Change it accordingly so that the board can boot the Yocto
image by default.

Use the generic 'load' command instead, which is able to
read from an ext4 partition.

Signed-off-by: Fabio Estevam <festevam@denx.de>
include/configs/smegw01.h

index 50f00136ac46051624876c8f78cf1c4e38e70078..6f7b46e49b3fafa9436bb147397f5ead9a72ec3b 100644 (file)
        "bootm_size=0x10000000\0" \
        "mmcdev=0\0" \
        "mmcpart=1\0" \
-       "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
+       "mmcroot=/dev/mmcblk0p1 rootwait rw\0" \
        "mmcargs=setenv bootargs console=${console},${baudrate} " \
                "root=${mmcroot}\0" \
-       "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
-       "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile}\0" \
+       "loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \
+       "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \
        "mmcboot=echo Booting from mmc ...; " \
                "run mmcargs; " \
                "if run loadfdt; then " \