0006-parabola-arm-modifications.patch 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. diff --git a/include/configs/chiliboard.h b/include/configs/chiliboard.h
  2. index eacc9af..137ce89 100644
  3. --- a/include/configs/chiliboard.h
  4. +++ b/include/configs/chiliboard.h
  5. @@ -124,7 +124,6 @@
  6. * as that will normally be within the kernel lowmem and thus visible via
  7. * bootm_size and we only run on platforms with 256MB or more of memory.
  8. */
  9. -#ifdef CONFIG_RAM128MB
  10. #define DEFAULT_LINUX_BOOT_ENV \
  11. "loadaddr=0x82000000\0" \
  12. "kernel_addr_r=0x82000000\0" \
  13. @@ -133,16 +132,6 @@
  14. "rdaddr=0x84080000\0" \
  15. "ramdisk_addr_r=0x84080000\0" \
  16. "bootm_size=0x8000000\0"
  17. -#else
  18. -#define DEFAULT_LINUX_BOOT_ENV \
  19. - "loadaddr=0x82000000\0" \
  20. - "kernel_addr_r=0x82000000\0" \
  21. - "fdtaddr=0x88000000\0" \
  22. - "fdt_addr_r=0x88000000\0" \
  23. - "rdaddr=0x88080000\0" \
  24. - "ramdisk_addr_r=0x88080000\0" \
  25. - "bootm_size=0x10000000\0"
  26. -#endif
  27. /*
  28. * Default to a quick boot delay.
  29. @@ -258,6 +247,7 @@
  30. #define CONFIG_CMD_ASKENV
  31. #define CONFIG_CMD_ECHO
  32. #define CONFIG_CMD_BOOTZ
  33. +#define CONFIG_SUPPORT_RAW_INITRD
  34. /*
  35. * Common filesystems support. When we have removable storage we
  36. @@ -398,6 +388,9 @@
  37. #define CONFIG_EFI_PARTITION
  38. #define CONFIG_PARTITION_UUIDS
  39. #define CONFIG_CMD_PART
  40. +#define CONFIG_CMD_SETEXPR
  41. +
  42. +#define CONFIG_IDENT_STRING " Parabola GNU/Linux-libre"
  43. #ifdef CONFIG_NAND
  44. #ifndef CONFIG_NAND512MB
  45. @@ -441,18 +434,16 @@
  46. #define CONFIG_EXTRA_ENV_SETTINGS \
  47. DEFAULT_LINUX_BOOT_ENV \
  48. "boot_fdt=try\0" \
  49. - "bootpart=0:2\0" \
  50. + "bootpart=0:1\0" \
  51. "bootdir=/boot\0" \
  52. - "bootfile=zImage\0" \
  53. - "fdtfile=undefined\0" \
  54. + "fdtdir=/boot/dtbs/linux-libre\0" \
  55. + "bootfile=vmlinuz-linux-libre\0" \
  56. + "fdtfile=\0" \
  57. "console=ttyO0,115200n8\0" \
  58. "partitions=" \
  59. "uuid_disk=${uuid_gpt_disk};" \
  60. "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\0" \
  61. "optargs=\0" \
  62. - "mmcdev=0\0" \
  63. - "mmcroot=/dev/mmcblk0p2 rw\0" \
  64. - "mmcrootfstype=ext4 rootwait\0" \
  65. "rootpath=/export/rootfs\0" \
  66. "nfsopts=nolock\0" \
  67. "static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}" \
  68. @@ -461,8 +452,7 @@
  69. "ramrootfstype=ext2\0" \
  70. "mmcargs=setenv bootargs console=${console} " \
  71. "${optargs} " \
  72. - "root=${mmcroot} " \
  73. - "rootfstype=${mmcrootfstype}\0" \
  74. + "root=${root}\0" \
  75. "spiroot=/dev/mtdblock4 rw\0" \
  76. "spirootfstype=jffs2\0" \
  77. "spisrcaddr=0xe0000\0" \
  78. @@ -477,46 +467,47 @@
  79. "root=/dev/nfs " \
  80. "nfsroot=${serverip}:${rootpath},${nfsopts} rw " \
  81. "ip=dhcp\0" \
  82. - "bootenv=uEnv.txt\0" \
  83. - "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
  84. - "importbootenv=echo Importing environment from mmc ...; " \
  85. - "env import -t $loadaddr $filesize\0" \
  86. "ramargs=setenv bootargs console=${console} " \
  87. "${optargs} " \
  88. "root=${ramroot} " \
  89. "rootfstype=${ramrootfstype}\0" \
  90. - "loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
  91. - "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
  92. - "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
  93. - "mmcloados=run mmcargs; " \
  94. - "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
  95. - "if run loadfdt; then " \
  96. - "bootz ${loadaddr} - ${fdtaddr}; " \
  97. - "else " \
  98. - "if test ${boot_fdt} = try; then " \
  99. - "bootz; " \
  100. - "else " \
  101. - "echo WARN: Cannot load the DT; " \
  102. - "fi; " \
  103. - "fi; " \
  104. - "else " \
  105. - "bootz; " \
  106. - "fi;\0" \
  107. - "mmcboot=mmc dev ${mmcdev}; " \
  108. - "if mmc rescan; then " \
  109. - "echo SD/MMC found on device ${mmcdev};" \
  110. - "if run loadbootenv; then " \
  111. - "echo Loaded environment from ${bootenv};" \
  112. - "run importbootenv;" \
  113. - "fi;" \
  114. - "if test -n $uenvcmd; then " \
  115. - "echo Running uenvcmd ...;" \
  116. - "run uenvcmd;" \
  117. - "fi;" \
  118. - "if run loadimage; then " \
  119. - "run mmcloados;" \
  120. - "fi;" \
  121. - "fi;\0" \
  122. + "loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
  123. + "loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}\0" \
  124. + "loadfdt=echo loading ${fdtdir}/${fdtfile} ...; load ${devtype} ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}\0" \
  125. + "mmcboot=for devtype in mmc; do " \
  126. + "for devnum in 0 1; do " \
  127. + "if ${devtype} dev ${devnum}; then " \
  128. + "echo ${devtype} found on device ${devnum};" \
  129. + "setenv bootpart ${devnum}:1;" \
  130. + "part uuid ${devtype} ${bootpart} uuid;" \
  131. + "setenv root PARTUUID=${uuid} rw rootwait;" \
  132. + "echo Checking for: ${bootdir}/uEnv.txt ...;" \
  133. + "if test -e ${devtype} ${bootpart} ${bootdir}/uEnv.txt; then " \
  134. + "load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/uEnv.txt;" \
  135. + "env import -t ${loadaddr} ${filesize};" \
  136. + "echo Loaded environment from ${bootdir}/uEnv.txt;" \
  137. + "echo Checking if uenvcmd is set ...;" \
  138. + "if test -n ${uenvcmd}; then " \
  139. + "echo Running uenvcmd ...;" \
  140. + "run uenvcmd;" \
  141. + "fi;" \
  142. + "fi;" \
  143. + "if run loadimage; then " \
  144. + "run mmcargs;" \
  145. + "if run loadfdt; then " \
  146. + "if run loadrd; then " \
  147. + "bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr};" \
  148. + "else " \
  149. + "bootz ${loadaddr} - ${fdtaddr};" \
  150. + "fi;" \
  151. + "fi;" \
  152. + "else " \
  153. + "echo No kernel found;" \
  154. + "fi;" \
  155. + "setexpr devnum ${devnum} + 1;" \
  156. + "fi;" \
  157. + "done;" \
  158. + "done;\0" \
  159. "spiboot=echo Booting from spi ...; " \
  160. "run spiargs; " \
  161. "sf probe ${spibusno}:0; " \
  162. @@ -541,9 +532,6 @@
  163. #define CONFIG_BOOTCOMMAND \
  164. "run findfdt; " \
  165. "run mmcboot;" \
  166. - "setenv mmcdev 1; " \
  167. - "setenv bootpart 1:2; " \
  168. - "run mmcboot;" \
  169. "run nandboot;"
  170. /* NS16550 Configuration */
  171. --
  172. 2.5.0