parabola-modifications.patch 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. diff -ruN a/include/configs/mx6_cubox-i.h b/include/configs/mx6_cubox-i.h
  2. --- a/include/configs/mx6_cubox-i.h 2015-10-13 11:56:13.000000000 +0000
  3. +++ b/include/configs/mx6_cubox-i.h 2015-11-05 18:35:27.766174690 +0000
  4. @@ -97,6 +97,7 @@
  5. #define CONFIG_FS_EXT4
  6. #define CONFIG_FS_FAT
  7. #define CONFIG_CMD_FS_GENERIC
  8. +#define CONFIG_SUPPORT_RAW_INITRD
  9. /* Ethernet Configuration */
  10. #define CONFIG_FEC_MXC
  11. @@ -176,11 +177,14 @@
  12. "bootfile=auto\0" \
  13. "bootenv=uEnv.txt\0" \
  14. "boot_prefixes=/ /boot/\0" \
  15. + "fdtfile_prefix=dtbs/linux-libre/\0" \
  16. "console=ttymxc0\0" \
  17. "splashpos=m,m\0" \
  18. "fdt_high=0xffffffff\0" \
  19. "initrd_high=0xffffffff\0" \
  20. "fdt_addr=0x18000000\0" \
  21. + "ramdisk_file=initramfs-linux-libre.img\0" \
  22. + "ramdisk_addr=0x15100000\0" \
  23. "boot_fdt=try\0" \
  24. "ip_dyn=yes\0" \
  25. "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
  26. @@ -220,7 +224,9 @@
  27. "fi;\0" \
  28. "loadbootenv=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${file_prefix}${bootenv};\0" \
  29. "loadfdt=if test ${boottype} = mmc; then " \
  30. - "load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${file_prefix}${fdt_file}; " \
  31. + "if load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${file_prefix}${fdt_file}; then; else " \
  32. + "load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${file_prefix}${fdtfile_prefix}${fdt_file}; " \
  33. + "fi; " \
  34. "else " \
  35. "${get_cmd} ${fdt_addr} ${fdt_file}; " \
  36. "fi;\0 " \
  37. @@ -228,13 +234,14 @@
  38. "load mmc ${mmcdev}:${mmcpart} ${ramdisk_addr} ${file_prefix}${ramdisk_file}; " \
  39. "else " \
  40. "${get_cmd} ${ramdisk_addr} ${ramdisk_file}; " \
  41. - "fi;\0 " \
  42. + "fi; " \
  43. + "setenv ramdisk_size :${filesize}; \0" \
  44. "loadbootfile=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${file_prefix}${bootfile};\0" \
  45. "importbootenv=echo Importing environment from mmc${mmcdev} ...; " \
  46. "env import -t ${loadaddr} ${filesize};\0" \
  47. "autoboot=echo Booting ${boot_file}; " \
  48. - "if test ${boot_file} = zImage; then " \
  49. - "bootz ${loadaddr} ${ramdisk_addr} ${fdt_addr}; " \
  50. + "if test ${boot_file} = vmlinuz-linux-libre; then " \
  51. + "bootz ${loadaddr} ${ramdisk_addr}${ramdisk_size} ${fdt_addr}; " \
  52. "else " \
  53. "bootm ${loadaddr} ${ramdisk_addr} ${fdt_addr}; " \
  54. "fi;\0 " \
  55. @@ -249,14 +256,14 @@
  56. "else " \
  57. "setenv ramdisk_addr -; " \
  58. "fi; " \
  59. - "if test ${boot_file} = zImage; then " \
  60. + "if test ${boot_file} = vmlinuz-linux-libre; then " \
  61. "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
  62. "if run loadfdt; then " \
  63. "echo Loaded ${fdt_file}; " \
  64. "else " \
  65. "setenv fdt_addr; " \
  66. "if test ${boot_fdt} = try; then " \
  67. - "echo WARN: Cannot load the DTB and boot file is type zImage;" \
  68. + "echo WARN: Cannot load the DTB and boot file is type vmlinuz-linux-libre;" \
  69. "echo if you have not appended a dtb to the file it may;" \
  70. "echo hang after displaying Starting kernel...;" \
  71. "echo ;" \
  72. @@ -287,7 +294,7 @@
  73. "setenv get_cmd tftp; " \
  74. "fi; " \
  75. "if test ${bootfile} = auto; then " \
  76. - "setenv bootfile zImage; " \
  77. + "setenv bootfile vmlinuz-linux-libre; " \
  78. "if ${get_cmd} ${bootfile}; then " \
  79. "run bootit; " \
  80. "else " \
  81. @@ -313,7 +320,7 @@
  82. "fi; " \
  83. "if test ${bootfile} = auto; then " \
  84. "setenv origbootfile auto; " \
  85. - "setenv bootfile zImage; " \
  86. + "setenv bootfile vmlinuz-linux-libre; " \
  87. "if run loadbootfile; then " \
  88. "run mmcboot; " \
  89. "else " \