summaryrefslogtreecommitdiffstats
path: root/include/configs/km/km_arm.h
diff options
context:
space:
mode:
authorValentin Longchamp <valentin.longchamp@keymile.com>2015-11-13 16:15:20 +0100
committerTom Rini <trini@konsulko.com>2015-11-18 15:28:50 -0500
commitc6d32dfd99f6e36c68c82d0d706158132a07e140 (patch)
tree852e9e45c3607e12e5af9fca9b1ce9195edf46b6 /include/configs/km/km_arm.h
parent7f70460eec5d628dd385fdd8668a8d7a36c83be9 (diff)
downloadblackbird-obmc-uboot-c6d32dfd99f6e36c68c82d0d706158132a07e140.tar.gz
blackbird-obmc-uboot-c6d32dfd99f6e36c68c82d0d706158132a07e140.zip
km: update the boot script to check for a DTB
If a DTB is found with cramfsls, the bootscript continues as expected. If none is found, the cramfsloadfdt and boot subbootcmds are updated to not load the DTB from cramfs and not pass it to the kernel. The kernel thus must have an appended DTB otherwise the boot will fail. This is required for the km_kirkwood boards that must support .esw where the DTB sometimes is appended (for backwards compatibility) and sometimes is passed correctly (as we do now for all newer boards). Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include/configs/km/km_arm.h')
-rw-r--r--include/configs/km/km_arm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h
index 77487ead5a..54aa6fb3b6 100644
--- a/include/configs/km/km_arm.h
+++ b/include/configs/km/km_arm.h
@@ -82,6 +82,12 @@
"u-boot="__stringify(CONFIG_HOSTNAME) "/u-boot.kwb\0" \
CONFIG_KM_UPDATE_UBOOT \
"set_fdthigh=setenv fdt_high ${kernelmem}\0" \
+ "checkfdt=" \
+ "if cramfsls fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb; " \
+ "then true; else setenv cramfsloadfdt true; " \
+ "setenv boot bootm ${load_addr_r}; " \
+ "echo No FDT found, booting with the kernel " \
+ "appended one; fi\0" \
""
#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
OpenPOWER on IntegriCloud