colibri_vf: Read kernel and device tree from static UBI volumes
authorSanchayan Maity <maitysanchayan@gmail.com>
Fri, 25 Nov 2016 10:49:17 +0000 (16:19 +0530)
committerStefano Babic <sbabic@denx.de>
Tue, 29 Nov 2016 15:47:47 +0000 (16:47 +0100)
Our update scripts write the kernel and device tree in seperate
UBI volumes. This allows to use a lot less UBI/UBIFS support in
U-Boot, which should lower the risk of hitting bugs in this area.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
include/configs/colibri_vf.h

index 0cd77fff51ac2992c74e4b61574bab365e250703..d58145e59d5e7ac1a8cdc1283d47054291f6cd7d 100644 (file)
        "ubiboot=run setup; " \
        "setenv bootargs ${defargs} ${ubiargs} ${mtdparts} "   \
        "${setupargs} ${vidargs}; echo Booting from NAND...; " \
-       "ubi part ubi && ubifsmount ubi0:rootfs && " \
-       "ubifsload ${kernel_addr_r} /boot/${kernel_file} && " \
-       "ubifsload ${fdt_addr_r} /boot/${soc}-colibri-${fdt_board}.dtb && " \
+       "ubi part ubi && " \
+       "ubi read ${kernel_addr_r} kernel && " \
+       "ubi read ${fdt_addr_r} dtb && " \
        "bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \
 
 #define CONFIG_BOOTCOMMAND "run ubiboot; run sdboot; run nfsboot"