0001-parabola-arm-modifications.patch 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. diff -Nur u-boot-2015.04.orig/configs/am335x_evm_defconfig u-boot-2015.04/configs/am335x_evm_defconfig
  2. --- u-boot-2015.04.orig/configs/am335x_evm_defconfig 2015-04-13 11:53:03.000000000 -0300
  3. +++ u-boot-2015.04/configs/am335x_evm_defconfig 2016-02-24 12:05:57.627551576 -0300
  4. @@ -1,7 +1,6 @@
  5. CONFIG_SPL=y
  6. CONFIG_SPL_STACK_R=y
  7. CONFIG_SPL_STACK_R_ADDR=0x82000000
  8. -CONFIG_SYS_EXTRA_OPTIONS="NAND"
  9. -CONFIG_CONS_INDEX=1
  10. +CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1"
  11. CONFIG_ARM=y
  12. CONFIG_TARGET_AM335X_EVM=y
  13. diff -Nur u-boot-2015.04.orig/include/configs/am335x_evm.h u-boot-2015.04/include/configs/am335x_evm.h
  14. --- u-boot-2015.04.orig/include/configs/am335x_evm.h 2015-04-13 11:53:03.000000000 -0300
  15. +++ u-boot-2015.04/include/configs/am335x_evm.h 2016-02-24 12:09:41.983016704 -0300
  16. @@ -17,6 +17,7 @@
  17. #define __CONFIG_AM335X_EVM_H
  18. #include <configs/ti_am335x_common.h>
  19. +#define CONFIG_ENV_IS_NOWHERE
  20. #ifndef CONFIG_SPL_BUILD
  21. #ifndef CONFIG_FIT
  22. @@ -45,6 +46,9 @@
  23. /* Enhance our eMMC support / experience. */
  24. #define CONFIG_CMD_GPT
  25. #define CONFIG_EFI_PARTITION
  26. +#define CONFIG_CMD_PART
  27. +#define CONFIG_PARTITION_UUIDS
  28. +#define CONFIG_CMD_SETEXPR
  29. #ifdef CONFIG_NAND
  30. #define NANDARGS \
  31. @@ -67,113 +71,90 @@
  32. #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
  33. +/* Enable Extlinux boot support */
  34. +#define CONFIG_CMD_PXE
  35. +#define CONFIG_MENU
  36. +#define BOOT_TARGET_DEVICES(func)
  37. +#include <config_distro_bootcmd.h>
  38. +
  39. #ifndef CONFIG_SPL_BUILD
  40. #define CONFIG_EXTRA_ENV_SETTINGS \
  41. + BOOTENV \
  42. DEFAULT_LINUX_BOOT_ENV \
  43. - "boot_fdt=try\0" \
  44. - "bootpart=0:2\0" \
  45. + "bootpart=0:1\0" \
  46. "bootdir=/boot\0" \
  47. + "fdtdir=/boot/dtbs\0" \
  48. "bootfile=zImage\0" \
  49. "fdtfile=undefined\0" \
  50. + "rdfile=initramfs-linux.img\0" \
  51. "console=ttyO0,115200n8\0" \
  52. "partitions=" \
  53. "uuid_disk=${uuid_gpt_disk};" \
  54. "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\0" \
  55. "optargs=\0" \
  56. - "mmcdev=0\0" \
  57. - "mmcroot=/dev/mmcblk0p2 ro\0" \
  58. - "mmcrootfstype=ext4 rootwait\0" \
  59. - "rootpath=/export/rootfs\0" \
  60. - "nfsopts=nolock\0" \
  61. - "static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}" \
  62. - "::off\0" \
  63. - "ramroot=/dev/ram0 rw\0" \
  64. - "ramrootfstype=ext2\0" \
  65. + "cape_disable=\0" \
  66. + "cape_enable=\0" \
  67. + "cmdline=\0" \
  68. "mmcargs=setenv bootargs console=${console} " \
  69. "${optargs} " \
  70. - "root=${mmcroot} " \
  71. - "rootfstype=${mmcrootfstype}\0" \
  72. - "spiroot=/dev/mtdblock4 rw\0" \
  73. - "spirootfstype=jffs2\0" \
  74. - "spisrcaddr=0xe0000\0" \
  75. - "spiimgsize=0x362000\0" \
  76. - "spibusno=0\0" \
  77. - "spiargs=setenv bootargs console=${console} " \
  78. - "${optargs} " \
  79. - "root=${spiroot} " \
  80. - "rootfstype=${spirootfstype}\0" \
  81. - "netargs=setenv bootargs console=${console} " \
  82. - "${optargs} " \
  83. - "root=/dev/nfs " \
  84. - "nfsroot=${serverip}:${rootpath},${nfsopts} rw " \
  85. - "ip=dhcp\0" \
  86. - "bootenv=uEnv.txt\0" \
  87. - "loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \
  88. - "bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
  89. - "source ${loadaddr}\0" \
  90. - "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
  91. - "importbootenv=echo Importing environment from mmc ...; " \
  92. - "env import -t -r $loadaddr $filesize\0" \
  93. - "ramargs=setenv bootargs console=${console} " \
  94. - "${optargs} " \
  95. - "root=${ramroot} " \
  96. - "rootfstype=${ramrootfstype}\0" \
  97. - "loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
  98. - "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
  99. - "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
  100. - "mmcloados=run mmcargs; " \
  101. - "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
  102. - "if run loadfdt; then " \
  103. - "bootz ${loadaddr} - ${fdtaddr}; " \
  104. - "else " \
  105. - "if test ${boot_fdt} = try; then " \
  106. - "bootz; " \
  107. - "else " \
  108. - "echo WARN: Cannot load the DT; " \
  109. - "fi; " \
  110. - "fi; " \
  111. - "else " \
  112. - "bootz; " \
  113. - "fi;\0" \
  114. - "mmcboot=mmc dev ${mmcdev}; " \
  115. - "if mmc rescan; then " \
  116. - "echo SD/MMC found on device ${mmcdev};" \
  117. - "if run loadbootscript; then " \
  118. - "run bootscript;" \
  119. - "else " \
  120. - "if run loadbootenv; then " \
  121. - "echo Loaded environment from ${bootenv};" \
  122. - "run importbootenv;" \
  123. + "${cape_disable} " \
  124. + "${cape_enable} " \
  125. + "root=${root} " \
  126. + "${cmdline}\0" \
  127. + "loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
  128. + "loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}\0" \
  129. + "loadfdt=echo loading ${fdtdir}/${fdtfile} ...; load ${devtype} ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}\0" \
  130. + "mmcboot=usb start;" \
  131. + "for devtype in mmc usb; do " \
  132. + "for devnum in 0 1; do " \
  133. + "if ${devtype} dev ${devnum}; then " \
  134. + "echo ${devtype} found on device ${devnum};" \
  135. + "setenv bootpart ${devnum}:1;" \
  136. + "part uuid ${devtype} ${bootpart} uuid;" \
  137. + "setenv root PARTUUID=${uuid} rw rootwait fixrtc;" \
  138. + "echo Checking for: ${bootdir}/uEnv.txt ...;" \
  139. + "gpio set 54;" \
  140. + "if test -e ${devtype} ${bootpart} ${bootdir}/uEnv.txt; then " \
  141. + "load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/uEnv.txt;" \
  142. + "env import -t ${loadaddr} ${filesize};" \
  143. + "echo Loaded environment from ${bootdir}/uEnv.txt;" \
  144. + "if test -n ${cape}; then " \
  145. + "if test -e ${devtype} ${bootpart} ${fdtdir}/${fdtbase}-${cape}.dtb; then " \
  146. + "setenv fdtfile ${fdtbase}-${cape}.dtb; " \
  147. + "fi; " \
  148. + "echo using: $fdtfile...; " \
  149. + "fi; " \
  150. + "echo Checking if uenvcmd is set ...;" \
  151. + "if test -n ${uenvcmd}; then " \
  152. + "echo Running uenvcmd ...;" \
  153. + "run uenvcmd;" \
  154. + "fi;" \
  155. + "fi;" \
  156. + "gpio set 55;" \
  157. + "run scan_dev_for_boot;" \
  158. + "if run loadimage; then " \
  159. + "run mmcargs;" \
  160. + "if run loadfdt; then " \
  161. + "gpio set 56;" \
  162. + "if run loadrd; then " \
  163. + "bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr};" \
  164. + "else " \
  165. + "bootz ${loadaddr} - ${fdtaddr};" \
  166. + "fi;" \
  167. + "fi;" \
  168. + "else " \
  169. + "echo No kernel found;" \
  170. + "fi;" \
  171. + "gpio clear 54; gpio clear 55;" \
  172. + "setexpr devnum ${devnum} + 1;" \
  173. "fi;" \
  174. - "if test -n $uenvcmd; then " \
  175. - "echo Running uenvcmd ...;" \
  176. - "run uenvcmd;" \
  177. - "fi;" \
  178. - "if run loadimage; then " \
  179. - "run mmcloados;" \
  180. - "fi;" \
  181. - "fi ;" \
  182. - "fi;\0" \
  183. - "spiboot=echo Booting from spi ...; " \
  184. - "run spiargs; " \
  185. - "sf probe ${spibusno}:0; " \
  186. - "sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; " \
  187. - "bootz ${loadaddr}\0" \
  188. - "netboot=echo Booting from network ...; " \
  189. - "setenv autoload no; " \
  190. - "dhcp; " \
  191. - "tftp ${loadaddr} ${bootfile}; " \
  192. - "tftp ${fdtaddr} ${fdtfile}; " \
  193. - "run netargs; " \
  194. - "bootz ${loadaddr} - ${fdtaddr}\0" \
  195. - "ramboot=echo Booting from ramdisk ...; " \
  196. - "run ramargs; " \
  197. - "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
  198. + "done;" \
  199. + "done;\0" \
  200. "findfdt="\
  201. "if test $board_name = A335BONE; then " \
  202. - "setenv fdtfile am335x-bone.dtb; fi; " \
  203. + "setenv fdtfile am335x-bone.dtb; setenv fdtbase am335x-bone; fi; " \
  204. "if test $board_name = A335BNLT; then " \
  205. - "setenv fdtfile am335x-boneblack.dtb; fi; " \
  206. + "setenv fdtfile am335x-boneblack.dtb; setenv fdtbase am335x-boneblack; setenv umsmedia 1; fi; " \
  207. "if test $board_name = A33515BB; then " \
  208. "setenv fdtfile am335x-evm.dtb; fi; " \
  209. "if test $board_name = A335X_SK; then " \
  210. @@ -185,12 +166,11 @@
  211. #endif
  212. #define CONFIG_BOOTCOMMAND \
  213. - "run findfdt; " \
  214. - "run mmcboot;" \
  215. - "setenv mmcdev 1; " \
  216. - "setenv bootpart 1:2; " \
  217. + "gpio set 53;" \
  218. + "run findfdt;" \
  219. "run mmcboot;" \
  220. - "run nandboot;"
  221. + "gpio clear 54; gpio clear 55;" \
  222. + "gpio set 56"
  223. /* NS16550 Configuration */
  224. #define CONFIG_SYS_NS16550_COM1 0x44e09000 /* Base EVM has UART0 */
  225. @@ -329,9 +309,8 @@
  226. #endif
  227. #ifdef CONFIG_MUSB_GADGET
  228. -#define CONFIG_USB_ETHER
  229. -#define CONFIG_USB_ETH_RNDIS
  230. -#define CONFIG_USBNET_HOST_ADDR "de:ad:be:af:00:00"
  231. +#define CONFIG_CMD_USB_MASS_STORAGE
  232. +#define CONFIG_USB_GADGET_MASS_STORAGE
  233. /* USB TI's IDs */
  234. #define CONFIG_G_DNL_VENDOR_NUM 0x0451