u-boot/fix_snow_config.patch

37 lines
966 B
Diff

Index: include/configs/snow.h
===================================================================
--- include/configs/snow.h.orig
+++ include/configs/snow.h
@@ -18,4 +18,31 @@
#define CONFIG_FIT
#define CONFIG_FIT_BEST_MATCH
+#undef CONFIG_BOOTCOMMAND
+#define CONFIG_BOOTCOMMAND \
+ "if mmc rescan ${mmcdev}; then " \
+ "echo SD/MMC found on device ${mmcdev};" \
+ "if run loadbootenv; then " \
+ "echo Loaded environment from ${bootenv};" \
+ "run importbootenv;" \
+ "fi;" \
+ "if test -n $uenvcmd; then " \
+ "echo Running uenvcmd ...;" \
+ "run uenvcmd;" \
+ "fi;" \
+ "if run loadbootscript; then " \
+ "run bootscript; " \
+ "fi; " \
+ "fi;"
+
+#define CONFIG_PRE_CONSOLE_BUFFER
+#define CONFIG_PRE_CON_BUF_SZ 0x100000
+#define CONFIG_PRE_CON_BUF_ADDR 0x41f00000
+
+/*#define DEBUG*/
+#undef CONFIG_SPL
+#undef CONFIG_SYS_THUMB_BUILD
+#undef CONFIG_SYS_ARM_CACHE_WRITETHROUGH
+#undef CONFIG_SILENT_CONSOLE
+
#endif /* __CONFIG_SNOW_H */