0001-parabola-arm-modifications.patch 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. diff --git a/include/configs/mx6_common.h b/include/configs/mx6_common.h
  2. index ef4cb68..254458d 100644
  3. --- a/include/configs/mx6_common.h
  4. +++ b/include/configs/mx6_common.h
  5. @@ -68,7 +68,7 @@
  6. #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
  7. #ifndef CONFIG_BOOTDELAY
  8. -#define CONFIG_BOOTDELAY 3
  9. +#define CONFIG_BOOTDELAY 1
  10. #endif
  11. /* allow to overwrite serial and ethaddr */
  12. @@ -82,6 +82,8 @@
  13. #define CONFIG_SUPPORT_RAW_INITRD
  14. #define CONFIG_CMD_FS_GENERIC
  15. #define CONFIG_DOS_PARTITION
  16. +#define CONFIG_CMD_PART
  17. +#define CONFIG_PARTITION_UUIDS
  18. #define CONFIG_CMD_EXT2
  19. #define CONFIG_CMD_EXT4
  20. #define CONFIG_CMD_EXT4_WRITE
  21. diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h
  22. index 6e8aec2..a4963fa 100644
  23. --- a/include/configs/wandboard.h
  24. +++ b/include/configs/wandboard.h
  25. @@ -86,19 +86,26 @@
  26. #define CONFIG_IMX_HDMI
  27. #define CONFIG_IMX_VIDEO_SKIP
  28. +#define CONFIG_IDENT_STRING " Parabola GNU/Linux-libre"
  29. +
  30. #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
  31. #define CONFIG_EXTRA_ENV_SETTINGS \
  32. "script=boot.scr\0" \
  33. - "image=zImage\0" \
  34. + "image=vmlinuz-linux-libre\0" \
  35. + "bootdir=/boot\0" \
  36. "console=ttymxc0\0" \
  37. "splashpos=m,m\0" \
  38. "fdtfile=undefined\0" \
  39. + "fdtdir=/boot/dtbs/linux-libre\0" \
  40. "fdt_high=0xffffffff\0" \
  41. "initrd_high=0xffffffff\0" \
  42. "fdt_addr=0x18000000\0" \
  43. + "rdaddr=0x12A00000\0" \
  44. + "rdfile=initramfs-linux-libre.img\0" \
  45. "boot_fdt=try\0" \
  46. + "optargs=\0" \
  47. "ip_dyn=yes\0" \
  48. - "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
  49. + "mmcdev=0\0" \
  50. "mmcpart=1\0" \
  51. "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
  52. "update_sd_firmware_filename=u-boot.imx\0" \
  53. @@ -116,7 +123,9 @@
  54. "fi; " \
  55. "fi\0" \
  56. "mmcargs=setenv bootargs console=${console},${baudrate} " \
  57. - "root=${mmcroot}; run videoargs\0" \
  58. + "${optargs} " \
  59. + "root=${root} " \
  60. + "video=${video}\0" \
  61. "videoargs=" \
  62. "setenv nextcon 0; " \
  63. "if hdmidet; then " \
  64. @@ -143,27 +152,43 @@
  65. "echo '- no FWBADAPT-7WVGA-LCD-F07A-0102 display';" \
  66. "fi; " \
  67. "setenv bootargs ${bootargs} ${fbmem}\0" \
  68. - "loadbootscript=" \
  69. - "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
  70. - "bootscript=echo Running bootscript from mmc ...; " \
  71. - "source\0" \
  72. - "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
  73. - "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile}\0" \
  74. - "mmcboot=echo Booting from mmc ...; " \
  75. - "run mmcargs; " \
  76. - "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
  77. - "if run loadfdt; then " \
  78. - "bootz ${loadaddr} - ${fdt_addr}; " \
  79. - "else " \
  80. - "if test ${boot_fdt} = try; then " \
  81. - "bootz; " \
  82. + "loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${image}\0" \
  83. + "loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}\0" \
  84. + "loadfdt=echo loading ${fdtdir}/${fdtfile} ...; load ${devtype} ${bootpart} ${fdt_addr} ${fdtdir}/${fdtfile}\0" \
  85. + "mmcboot=usb start;" \
  86. + "for devtype in mmc usb; do " \
  87. + "setenv devnum 0;" \
  88. + "while ${devtype} dev ${devnum}; do " \
  89. + "echo ${devtype} found on device ${devnum};" \
  90. + "setenv bootpart ${devnum}:1;" \
  91. + "part uuid ${devtype} ${bootpart} uuid;" \
  92. + "setenv root PARTUUID=${uuid} rw rootwait;" \
  93. + "echo Checking for: ${bootdir}/uEnv.txt ...;" \
  94. + "if test -e ${devtype} ${bootpart} ${bootdir}/uEnv.txt; then " \
  95. + "load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/uEnv.txt;" \
  96. + "env import -t ${loadaddr} ${filesize};" \
  97. + "echo Loaded environment from ${bootdir}/uEnv.txt;" \
  98. + "echo Checking if uenvcmd is set ...;" \
  99. + "if test -n ${uenvcmd}; then " \
  100. + "echo Running uenvcmd ...;" \
  101. + "run uenvcmd;" \
  102. + "fi;" \
  103. + "fi;" \
  104. + "if run loadimage; then " \
  105. + "run mmcargs;" \
  106. + "if run loadfdt; then " \
  107. + "if run loadrd; then " \
  108. + "bootz ${loadaddr} ${rdaddr}:${filesize} ${fdt_addr};" \
  109. + "else " \
  110. + "bootz ${loadaddr} - ${fdt_addr};" \
  111. + "fi;" \
  112. + "fi;" \
  113. "else " \
  114. - "echo WARN: Cannot load the DT; " \
  115. - "fi; " \
  116. - "fi; " \
  117. - "else " \
  118. - "bootz; " \
  119. - "fi;\0" \
  120. + "echo No kernel found;" \
  121. + "fi;" \
  122. + "setexpr devnum ${devnum} + 1;" \
  123. + "done;" \
  124. + "done;\0" \
  125. "netargs=setenv bootargs console=${console},${baudrate} " \
  126. "root=/dev/nfs " \
  127. "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
  128. @@ -202,16 +227,7 @@
  129. #define CONFIG_BOOTCOMMAND \
  130. "run findfdt; " \
  131. - "mmc dev ${mmcdev}; if mmc rescan; then " \
  132. - "if run loadbootscript; then " \
  133. - "run bootscript; " \
  134. - "else " \
  135. - "if run loadimage; then " \
  136. - "run mmcboot; " \
  137. - "else run netboot; " \
  138. - "fi; " \
  139. - "fi; " \
  140. - "else run netboot; fi"
  141. + "run mmcboot;"
  142. /* Physical Memory Map */
  143. #define CONFIG_NR_DRAM_BANKS 1
  144. --
  145. 2.6.1