colibri_vf: set fdtfile for distroboot
authorStefan Agner <stefan.agner@toradex.com>
Mon, 25 Mar 2019 16:25:04 +0000 (17:25 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 13 Apr 2019 18:30:09 +0000 (20:30 +0200)
Set fdtfile to represent the current board. This allows distribution
to load the correct device tree, which in the module case often
deviates from the common fallback ${soc}-${board}${boardver}.dtb...

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
include/configs/colibri_vf.h

index 83a33ff786ca894ae7ef438f1a945fd4dbd5c0b4..0bbeeb902e07e63168afaaa7c92772f8f0975e13 100644 (file)
@@ -86,7 +86,8 @@
        "ubi read ${fdt_addr_r} dtb && " \
        "run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \
 
-#define CONFIG_BOOTCOMMAND "run ubiboot; run distro_bootcmd;"
+#define CONFIG_BOOTCOMMAND "run ubiboot; " \
+       "setenv fdtfile ${soc}-colibri-${fdt_board}.dtb && run distro_bootcmd;"
 
 #define BOOT_TARGET_DEVICES(func) \
        func(MMC, mmc, 0) \
        "defargs=\0" \
        "dfu_alt_info=" DFU_ALT_NAND_INFO "\0" \
        "fdt_board=eval-v3\0" \
-       "fdt_file=${soc}-colibri-${fdt_board}.dtb\0" \
        "fdt_fixup=;\0" \
        "kernel_file=zImage\0" \
        "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \