[PATCH u-boot v2016.07-aspeed-openbmc] aspeed: un-hardcode FIT configuration selection

Brad Bishop bradleyb at fuzziesquirrel.com
Fri Feb 2 14:07:25 AEDT 2018


Rely on the FDT parser to select a FIT config when looking for a
ramdisk_conf.  This allows image builders to use arbitrary configuration
names like /configurations/conf at foo.

Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
---
 include/configs/ast-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h
index 89b0cd8533..fbae281811 100644
--- a/include/configs/ast-common.h
+++ b/include/configs/ast-common.h
@@ -110,7 +110,7 @@
 
 #define CONFIG_BOOTCOMMAND	\
 	"fdt addr 20080000; " \
-	"if fdt get value ramdisk_conf /configurations/conf at 1 ramdisk; then " \
+	"if fdt get value ramdisk_conf /configurations/conf ramdisk; then " \
 	"    bootm 20080000; else bootm 20080000 20300000; " \
 	"fi"
 #define CONFIG_ENV_OVERWRITE
-- 
2.14.3


More information about the openbmc mailing list