summaryrefslogtreecommitdiff
path: root/libre/uboot-cubox-i-linux-libre/check_dtbs_subdir_fix.patch
blob: 34d1ff46baa196498eaa192536c32e333956d381 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -ruN a/include/configs/mx6_cubox-i.h b/include/configs/mx6_cubox-i.h
--- a/include/configs/mx6_cubox-i.h	2015-06-30 15:34:48.000000000 +0000
+++ b/include/configs/mx6_cubox-i.h	2015-08-28 05:48:43.225896471 +0000
@@ -176,6 +176,7 @@
         "bootfile=auto\0" \
-        "bootenv=uEnv.txt\0" \
+        "bootenv=uboot-cubox-i-linux-libre/uEnv.txt\0" \
         "boot_prefixes=/ /boot/\0" \
+        "fdtfile_prefix=dtbs/linux-libre\0" \
         "console=ttymxc0\0" \
         "splashpos=m,m\0" \
         "fdt_high=0xffffffff\0" \
@@ -220,7 +221,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 " \