summaryrefslogtreecommitdiff
path: root/libre/uboot-mx6_cubox-i/parabola-modifications.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-02 02:22:04 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-02 02:22:04 -0300
commitf303ce805abe78bcbab81704bc0d4ad4d0fb8d61 (patch)
treeae5fa1f9264cd94456e9c272633ead6a8eeb9e0f /libre/uboot-mx6_cubox-i/parabola-modifications.patch
parent7545468778b501c3a5a805dc33bc8ae20019020e (diff)
downloadabslibre-f303ce805abe78bcbab81704bc0d4ad4d0fb8d61.tar.gz
abslibre-f303ce805abe78bcbab81704bc0d4ad4d0fb8d61.tar.bz2
abslibre-f303ce805abe78bcbab81704bc0d4ad4d0fb8d61.zip
uboot-mx6_cubox-i: add new package to [libre]
Diffstat (limited to 'libre/uboot-mx6_cubox-i/parabola-modifications.patch')
-rw-r--r--libre/uboot-mx6_cubox-i/parabola-modifications.patch90
1 files changed, 90 insertions, 0 deletions
diff --git a/libre/uboot-mx6_cubox-i/parabola-modifications.patch b/libre/uboot-mx6_cubox-i/parabola-modifications.patch
new file mode 100644
index 000000000..757622e82
--- /dev/null
+++ b/libre/uboot-mx6_cubox-i/parabola-modifications.patch
@@ -0,0 +1,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 " \