summaryrefslogtreecommitdiff
path: root/libre/uboot-mx6_cubox-i/parabola-modifications.patch
blob: 757622e825c1518f14bb9362f8429abda6cfc78c (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
diff -ruN a/include/configs/mx6_cubox-i.h b/include/configs/mx6_cubox-i.h
--- a/include/configs/mx6_cubox-i.h	2015-10-13 11:56:13.000000000 +0000
+++ b/include/configs/mx6_cubox-i.h	2015-11-05 18:35:27.766174690 +0000
@@ -97,6 +97,7 @@
 #define CONFIG_FS_EXT4
 #define CONFIG_FS_FAT
 #define CONFIG_CMD_FS_GENERIC
+#define CONFIG_SUPPORT_RAW_INITRD
 
 /* Ethernet Configuration */
 #define CONFIG_FEC_MXC
@@ -176,11 +177,14 @@
         "bootfile=auto\0" \
         "bootenv=uEnv.txt\0" \
         "boot_prefixes=/ /boot/\0" \
+        "fdtfile_prefix=dtbs/linux-libre/\0" \
         "console=ttymxc0\0" \
         "splashpos=m,m\0" \
         "fdt_high=0xffffffff\0" \
         "initrd_high=0xffffffff\0" \
         "fdt_addr=0x18000000\0" \
+        "ramdisk_file=initramfs-linux-libre.img\0" \
+        "ramdisk_addr=0x15100000\0" \
         "boot_fdt=try\0" \
         "ip_dyn=yes\0" \
         "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
@@ -220,7 +224,9 @@
                 "fi;\0" \
         "loadbootenv=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${file_prefix}${bootenv};\0" \
         "loadfdt=if test ${boottype} = mmc; then " \
-                     "load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${file_prefix}${fdt_file}; " \
+                     "if load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${file_prefix}${fdt_file}; then;  else " \
+                               "load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${file_prefix}${fdtfile_prefix}${fdt_file}; " \
+                     "fi; " \ 
 		"else " \
                      "${get_cmd} ${fdt_addr} ${fdt_file}; " \
 		"fi;\0 " \
@@ -228,13 +234,14 @@
                      "load mmc ${mmcdev}:${mmcpart} ${ramdisk_addr} ${file_prefix}${ramdisk_file}; " \
 		"else " \
                      "${get_cmd} ${ramdisk_addr} ${ramdisk_file}; " \
-		"fi;\0 " \
+		"fi; " \
+               "setenv ramdisk_size :${filesize}; \0" \
         "loadbootfile=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${file_prefix}${bootfile};\0" \
         "importbootenv=echo Importing environment from mmc${mmcdev} ...; " \
                 "env import -t ${loadaddr} ${filesize};\0" \
         "autoboot=echo Booting ${boot_file}; " \
-		"if test ${boot_file} = zImage; then " \
-		    "bootz ${loadaddr} ${ramdisk_addr} ${fdt_addr}; " \
+		"if test ${boot_file} = vmlinuz-linux-libre; then " \
+		    "bootz ${loadaddr} ${ramdisk_addr}${ramdisk_size} ${fdt_addr}; " \
 		"else " \
 		    "bootm ${loadaddr} ${ramdisk_addr} ${fdt_addr}; " \
 		"fi;\0 " \
@@ -249,14 +256,14 @@
 		"else " \
 		    "setenv ramdisk_addr -; " \
                 "fi; " \
-                "if test ${boot_file} = zImage; then " \
+                "if test ${boot_file} = vmlinuz-linux-libre; then " \
                     "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
                         "if run loadfdt; then " \
 			    "echo Loaded ${fdt_file}; " \
                         "else " \
 			    "setenv fdt_addr; " \
                             "if test ${boot_fdt} = try; then " \
-                                  "echo WARN: Cannot load the DTB and boot file is type zImage;" \
+                                  "echo WARN: Cannot load the DTB and boot file is type vmlinuz-linux-libre;" \
                                   "echo if you have not appended a dtb to the file it may;" \
                                   "echo hang after displaying Starting kernel...;" \
                                   "echo ;" \
@@ -287,7 +294,7 @@
                     "setenv get_cmd tftp; " \
                 "fi; " \
                 "if test ${bootfile} = auto; then " \
-                     "setenv bootfile zImage; " \
+                     "setenv bootfile vmlinuz-linux-libre; " \
                      "if ${get_cmd} ${bootfile}; then " \
                          "run bootit; " \
                      "else " \
@@ -313,7 +320,7 @@
 			   "fi; " \
                            "if test ${bootfile} = auto; then " \
                                    "setenv origbootfile auto; " \
-                                   "setenv bootfile zImage; " \
+                                   "setenv bootfile vmlinuz-linux-libre; " \
                                    "if run loadbootfile; then " \
                                         "run mmcboot; " \
                                    "else " \