aboutsummaryrefslogtreecommitdiffstats
path: root/main/u-boot/config-wandboard.patch
blob: 30537514ef57274dce5ba6214e825dc98988b3ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- u-boot-2015.01.orig/include/configs/wandboard.h
+++ u-boot-2015.01/include/configs/wandboard.h
@@ -75,7 +75,9 @@
 #define CONFIG_GENERIC_MMC
 #define CONFIG_BOUNCE_BUFFER
 #define CONFIG_CMD_EXT2
+#define CONFIG_CMD_EXT4
 #define CONFIG_CMD_FAT
+#define CONFIG_CMD_FS_GENERIC
 #define CONFIG_DOS_PARTITION
 
 /* USB Configs */
@@ -130,6 +132,8 @@
 #define CONFIG_DEFAULT_FDT_FILE		"imx6q-wandboard.dtb"
 #endif
 
+#if 0
+
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"script=boot.scr\0" \
 	"image=zImage\0" \
@@ -244,6 +248,25 @@
 		   "fi; " \
 	   "else run netboot; fi"
 
+#else
+
+#define CONFIG_EXTRA_ENV_SETTINGS \
+	"console=ttymxc0\0" \
+	"devtype=mmc\0" \
+	"devnum=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
+	"devpart=1\0" \
+	"fdt_addr_r=0x18000000\0" \
+	"fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
+	"fdt_high=0xffffffff\0" \
+	"initrd_addr_r=0x13000000\0" \
+	"initrd_high=0xffffffff\0" \
+	"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
+	""
+
+#include "alpine-bootscript.h"
+
+#endif
+
 /* Miscellaneous configurable options */
 #define CONFIG_SYS_LONGHELP
 #define CONFIG_SYS_HUSH_PARSER
@@ -283,6 +306,7 @@
 
 #define CONFIG_OF_LIBFDT
 #define CONFIG_CMD_BOOTZ
+#define CONFIG_SUPPORT_RAW_INITRD
 
 #ifndef CONFIG_SYS_DCACHE_OFF
 #define CONFIG_CMD_CACHE