0001-parabola-arm-modifications.patch 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. diff --git a/include/configs/ti_omap4_common.h b/include/configs/ti_omap4_common.h
  2. index 08130eb..8835cf8 100644
  3. --- a/include/configs/ti_omap4_common.h
  4. +++ b/include/configs/ti_omap4_common.h
  5. @@ -46,7 +46,6 @@
  6. * the timings to use or use pre-determined timings (based on using the
  7. * dynamic method. Default to the static timing infomation.
  8. */
  9. -#define CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS
  10. #ifndef CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS
  11. #define CONFIG_SYS_AUTOMATIC_SDRAM_DETECTION
  12. #define CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS
  13. @@ -79,6 +78,9 @@
  14. #define CONFIG_USB_TTY 1
  15. #define CONFIG_SYS_CONSOLE_IS_IN_ENV 1
  16. +/* Parabola GNU/Linux-libre extras */
  17. +#define CONFIG_IDENT_STRING " Parabola GNU/Linux-libre"
  18. +
  19. /*
  20. * Environment setup
  21. */
  22. @@ -89,23 +91,53 @@
  23. "fdtfile=undefined\0" \
  24. "bootpart=0:2\0" \
  25. "bootdir=/boot\0" \
  26. - "bootfile=zImage\0" \
  27. + "fdtdir=/boot/dtbs/linux-libre\0" \
  28. + "bootfile=vmlinuz-linux-libre\0" \
  29. + "rdfile=initramfs-linux-libre.img\0" \
  30. "usbtty=cdc_acm\0" \
  31. "vram=16M\0" \
  32. - "loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \
  33. - "bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
  34. - "source ${loadaddr}\0" \
  35. - "loadbootenv=load mmc ${mmcdev} ${loadaddr} uEnv.txt\0" \
  36. - "importbootenv=echo Importing environment from mmc${mmcdev} ...; " \
  37. - "env import -t ${loadaddr} ${filesize}\0" \
  38. - "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
  39. - "loaduimage=load mmc ${mmcdev} ${loadaddr} uImage\0" \
  40. - "mmcboot=echo Booting from mmc${mmcdev} ...; " \
  41. - "run args_mmc; " \
  42. - "bootz ${loadaddr} - ${fdtaddr}\0" \
  43. - "uimageboot=echo Booting from mmc${mmcdev} ...; " \
  44. - "run args_mmc; " \
  45. - "bootm ${loadaddr}\0" \
  46. + "optargs=\0" \
  47. + "mmcargs=setenv bootargs console=${console} " \
  48. + "vram=${vram} " \
  49. + "root=${root} " \
  50. + "${optargs}\0" \
  51. + "loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
  52. + "loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}\0" \
  53. + "loadfdt=echo loading ${fdtdir}/${fdtfile} ...; load ${devtype} ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}\0" \
  54. + "mmcboot=usb start;" \
  55. + "for devtype in mmc usb; do " \
  56. + "setenv devnum 0;" \
  57. + "while ${devtype} dev ${devnum}; do " \
  58. + "echo ${devtype} found on device ${devnum};" \
  59. + "setenv bootpart ${devnum}:1;" \
  60. + "part uuid ${devtype} ${bootpart} uuid;" \
  61. + "setenv root PARTUUID=${uuid} rw rootwait;" \
  62. + "echo Checking for: ${bootdir}/uEnv.txt ...;" \
  63. + "if test -e ${devtype} ${bootpart} ${bootdir}/uEnv.txt; then " \
  64. + "load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/uEnv.txt;" \
  65. + "env import -t ${loadaddr} ${filesize};" \
  66. + "echo Loaded environment from ${bootdir}/uEnv.txt;" \
  67. + "echo Checking if uenvcmd is set ...;" \
  68. + "if test -n ${uenvcmd}; then " \
  69. + "echo Running uenvcmd ...;" \
  70. + "run uenvcmd;" \
  71. + "fi;" \
  72. + "fi;" \
  73. + "if run loadimage; then " \
  74. + "run mmcargs;" \
  75. + "if run loadfdt; then " \
  76. + "if run loadrd; then " \
  77. + "bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr};" \
  78. + "else " \
  79. + "bootz ${loadaddr} - ${fdtaddr};" \
  80. + "fi;" \
  81. + "fi;" \
  82. + "else " \
  83. + "echo No kernel found;" \
  84. + "fi;" \
  85. + "setexpr devnum ${devnum} + 1;" \
  86. + "done;" \
  87. + "done;\0" \
  88. "findfdt="\
  89. "if test $board_name = sdp4430; then " \
  90. "setenv fdtfile omap4-sdp.dtb; fi; " \
  91. @@ -118,32 +150,11 @@
  92. "if test $board_name = duovero; then " \
  93. "setenv fdtfile omap4-duovero-parlor.dtb; fi;" \
  94. "if test $fdtfile = undefined; then " \
  95. - "echo WARNING: Could not determine device tree to use; fi; \0" \
  96. - "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
  97. + "echo WARNING: Could not determine device tree to use; fi; \0"
  98. #define CONFIG_BOOTCOMMAND \
  99. "run findfdt; " \
  100. - "mmc dev ${mmcdev}; if mmc rescan; then " \
  101. - "echo SD/MMC found on device ${mmcdev};" \
  102. - "if run loadbootscript; then " \
  103. - "run bootscript; " \
  104. - "else " \
  105. - "if run loadbootenv; then " \
  106. - "run importbootenv; " \
  107. - "fi;" \
  108. - "if test -n ${uenvcmd}; then " \
  109. - "echo Running uenvcmd ...;" \
  110. - "run uenvcmd;" \
  111. - "fi;" \
  112. - "fi;" \
  113. - "if run loadimage; then " \
  114. - "run loadfdt;" \
  115. - "run mmcboot; " \
  116. - "fi; " \
  117. - "if run loaduimage; then " \
  118. - "run uimageboot;" \
  119. - "fi; " \
  120. - "fi"
  121. + "run mmcboot"
  122. /*
  123. * Defines for SPL
  124. --
  125. 2.6.4