summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Sliwa <dominik.sliwa@toradex.com>2016-05-20 14:12:51 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2016-06-22 14:36:38 +0200
commit0c7ec26c43a42bc36dd0062844d2a09e8a054e90 (patch)
treec73c98ab3476db2aa2fdabecdc421e19710be04e
parent340f51a210df1da640a57267e6c7fa56b8a852ed (diff)
colibri_t20: read kernel and device tree from static UBI volumes
With the next release 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. Boot times are also slightly faster (measurements showed an improvement of ~150ms). Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--include/configs/colibri_t20.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/configs/colibri_t20.h b/include/configs/colibri_t20.h
index 694c9278d8..703e20b14d 100644
--- a/include/configs/colibri_t20.h
+++ b/include/configs/colibri_t20.h
@@ -171,11 +171,13 @@
"ubi.fm_autoconvert=1\0" \
"ubiboot=run setup; setenv bootargs ${defargs} ${ubiargs} ${mtdparts}" \
" ${setupargs} ${vidargs}; echo Booting from NAND...; " \
- "ubi part ubi && ubifsmount ubi0:rootfs && run ubidtbload; " \
- "ubifsload ${kernel_addr_r} /boot/${boot_file} && " \
- "bootz ${kernel_addr_r} - ${dtbparam}\0" \
- "ubidtbload=setenv dtbparam; ubifsload ${fdt_addr_r} " \
- "/boot/${soc}-colibri-${fdt_board}.dtb && " \
+ "ubi part ubi && " \
+ "ubi read ${kernel_addr_r} kernel &&" \
+ "run ubidtbload; " \
+ "bootz ${kernel_addr_r} - ${dtbparam}; " \
+ "bootz ${kernel_addr_r} - \0" \
+ "ubidtbload=setenv dtbparam; " \
+ "ubi read ${fdt_addr_r} dtb && " \
"setenv dtbparam ${fdt_addr_r}\0"
#define USB_BOOTCMD \