boot.ini.linux2 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. #DESCRIPTION 2nd Odroid Linux
  2. # U-Boot Parameters
  3. setenv initrd_high "0xffffffff"
  4. setenv fdt_high "0xffffffff"
  5. # Mac address configuration
  6. setenv macaddr "00:1e:06:61:7a:39"
  7. #------------------------------------------------------------------------------------------------------
  8. # Basic Ubuntu Setup. Don't touch unless you know what you are doing.
  9. # --------------------------------
  10. setenv bootrootfs "console=tty1 console=ttySAC2,115200n8 root=LABEL=XXlinux rootwait ro loglevel=3 fsck.repair=yes net.ifnames=0"
  11. # --- Screen Configuration for HDMI --- #
  12. # ---------------------------------------
  13. # Uncomment only ONE line! Leave all commented for automatic selection.
  14. # Uncomment only the setenv line!
  15. # ---------------------------------------
  16. # ODROID-VU forced resolution
  17. # setenv videoconfig "video=HDMI-A-1:1280x800@60"
  18. # -----------------------------------------------
  19. # ODROID-VU forced EDID
  20. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x800.bin"
  21. # -----------------------------------------------
  22. # 1920x1080 (1080P) with monitor provided EDID information. (1080p-edid)
  23. # setenv videoconfig "video=HDMI-A-1:1920x1080@60"
  24. # -----------------------------------------------
  25. # 1920x1080 (1080P) without monitor data using generic information (1080p-noedid)
  26. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080.bin"
  27. # -----------------------------------------------
  28. # 1920x1080 50hz (1080P) with monitor provided EDID information. (1080p 50hz-edid)
  29. # setenv videoconfig "video=HDMI-A-1:1920x1080@50"
  30. # -----------------------------------------------
  31. # 1920x1080 50hz (1080P) without monitor data using generic information (1080p 50hz-noedid)
  32. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080_50hz.bin"
  33. # -----------------------------------------------
  34. # 1440x900 with monitor provided EDID information.
  35. # setenv videoconfig "video=HDMI-A-1:1440x900@60"
  36. # -----------------------------------------------
  37. # 1440x900 without monitor data using generic information
  38. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1440x900.bin"
  39. # -----------------------------------------------
  40. # 1280x1024 without monitor data using generic information
  41. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x1024.bin"
  42. # -----------------------------------------------
  43. # 1280x720 (720P) with monitor provided EDID information. (720p-edid)
  44. # setenv videoconfig "video=HDMI-A-1:1280x720@60"
  45. # -----------------------------------------------
  46. # 1280x720 (720P) without monitor data using generic information (720p-noedid)
  47. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x720.bin"
  48. # -----------------------------------------------
  49. # 1024x768 without monitor data using generic information
  50. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x768.bin"
  51. # -----------------------------------------------
  52. # 1024x600 without monitor data using generic information (ODROID VU7+)
  53. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x600.bin"
  54. # -----------------------------------------------
  55. # 800x600 without monitor data using generic information
  56. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/800x600.bin"
  57. # -----------------------------------------------
  58. # 800x480 without monitor data using generic information (ODROID 7")
  59. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/800x480.bin"
  60. # -----------------------------------------------
  61. # 720x576 without monitor data using generic information
  62. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/720x576.bin"
  63. # -----------------------------------------------
  64. # 720x480 without monitor data using generic information
  65. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/720x480.bin"
  66. # -----------------------------------------------
  67. # 640x480 without monitor data using generic information
  68. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/640x480.bin"
  69. # --- HDMI / DVI Mode Selection ---
  70. # ------------------------------------------
  71. # - HDMI Mode
  72. setenv vout "hdmi"
  73. # - DVI Mode (disables sound over HDMI as per DVI compat)
  74. # setenv vout "dvi"
  75. # --- HDMI CEC Configuration ---
  76. # ------------------------------------------
  77. setenv cecenable "false" # false or true
  78. # set to true to enable HDMI CEC
  79. # --- CPU Governor Setup ---
  80. # Uncomment only one line. New governor is set after 90secs after boot.
  81. # ------------------------------------------
  82. # - Performance (Keep all the CPU's at Maximum frequency)
  83. setenv governor "performance"
  84. # ------------------------------------------
  85. # - Ondemand
  86. # setenv governor "ondemand"
  87. # ------------------------------------------
  88. # - Interactive (Pretty much just like ondemand with more possible customization via sysfs.)
  89. # setenv governor "interactive"
  90. # ------------------------------------------
  91. # - Conservative (Like ondemand, but do the frequency transitions more slowly, great for battery powered applications)
  92. # setenv governor "conservative"
  93. # ------------------------------------------
  94. # - Powersave (Keeps the CPU's to the lowest possible temps)
  95. # setenv governor "powersave"
  96. #------------------------------------------------------------------------------
  97. #
  98. # HDMI-PHY Parameter Control
  99. #
  100. #------------------------------------------------------------------------------
  101. #------------------------------------------------------------------------------
  102. #
  103. # HDMI Hot Plug detection
  104. #
  105. #------------------------------------------------------------------------------
  106. #
  107. # Forces the HDMI subsystem to ignore the check if the cable is connected or
  108. # not.
  109. # false : disable the detection and force it as connected.
  110. # true : let cable, board and monitor decide the connection status.
  111. #
  112. # default: true
  113. #
  114. #------------------------------------------------------------------------------
  115. setenv HPD "true"
  116. #------------------------------------------------------------------------------
  117. #
  118. # TMDS data amplitude control.
  119. #
  120. #------------------------------------------------------------------------------
  121. #
  122. # 1LSB corresponds to 20 mVdiff amplitude level.
  123. # tx_amp_lvl : 0 = 760 mVdiff(Min), 31 = 1380 mVdiff(Max)
  124. #
  125. # Hardkernel default hdmi_tx_amp_lvl = 31(1380 mVdiff);
  126. #------------------------------------------------------------------------------
  127. setenv hdmi_tx_amp_lvl "31"
  128. #------------------------------------------------------------------------------
  129. #
  130. # TMDS data amplitude fine control for each channel.
  131. #
  132. #------------------------------------------------------------------------------
  133. #
  134. # 1LSB corresponds to 20 mVdiff amplitude level.
  135. # tx_lvl : 0 = 0 mVdiff(Min), 3 = 60 mVdiff(Max)
  136. #
  137. # Hardkernel default
  138. # hdmi_tx_lvl_ch0 = 3, hdmi_tx_lvl_ch1 = 3, hdmi_tx_lvl_ch2 = 3,
  139. #------------------------------------------------------------------------------
  140. setenv hdmi_tx_lvl_ch0 "3"
  141. setenv hdmi_tx_lvl_ch1 "3"
  142. setenv hdmi_tx_lvl_ch2 "3"
  143. #------------------------------------------------------------------------------
  144. #
  145. # TMDS data pre-emphasis level control.
  146. #
  147. #------------------------------------------------------------------------------
  148. #
  149. # 1LSB corresponds to -0.45dB emphasis level except for 1
  150. # tx_emp_lvl : 0 = 0 db(Min), 1 = -0.25 db, 2 = 0.7 db, 15 = -7.45 db(Max)
  151. #
  152. # Hardkernel default hdmi_tx_emp_lvl = 6 (-2.50 db);
  153. #------------------------------------------------------------------------------
  154. setenv hdmi_tx_emp_lvl "6"
  155. #------------------------------------------------------------------------------
  156. #
  157. # TMDS clock amplitude control.
  158. #
  159. #------------------------------------------------------------------------------
  160. #
  161. # 1LSB corresponds to 20 mVdiff amplitude level.
  162. # clk_amp_lvl : 0 = 790 mVdiff(Min), 31 = 1410 mVdiff(Max)
  163. #
  164. # Hardkernel default hdmi_clk_amp_lvl = 31 (1410 mVdiff)
  165. #------------------------------------------------------------------------------
  166. setenv hdmi_clk_amp_lvl "31"
  167. #------------------------------------------------------------------------------
  168. #
  169. # TMDS data source termination resistor control.
  170. #
  171. #------------------------------------------------------------------------------
  172. #
  173. # tx_res :
  174. # 0 = Source Termination OFF(Min), 1 = 200 ohm, 2 = 300 ohm, 3 = 120 ohm(Max)
  175. #
  176. # Hardkernrel default hdmi_tx_res = 0 (Source Termination OFF)
  177. #------------------------------------------------------------------------------
  178. setenv hdmi_tx_res "0"
  179. #------------------------------------------------------------------------------
  180. setenv hdmi_phy_control "hdmi_tx_amp_lvl=${hdmi_tx_amp_lvl} hdmi_tx_lvl_ch0=${hdmi_tx_lvl_ch0} hdmi_tx_lvl_ch1=${hdmi_tx_lvl_ch1} hdmi_tx_lvl_ch2=${hdmi_tx_lvl_ch2} hdmi_tx_emp_lvl=${hdmi_tx_emp_lvl} hdmi_clk_amp_lvl=${hdmi_clk_amp_lvl} hdmi_tx_res=${hdmi_tx_res} HPD=${HPD} vout=${vout}"
  181. # ========================================================
  182. # = RESTORE boot.scr FOR MULTIBOOT, DO NOT CHANGE =
  183. # ========================================================
  184. mmc list
  185. mmc dev
  186. setenv change_osdev no;
  187. setenv bootdev "0:1";
  188. if test "${mmc_boot_device}" = "0"; then
  189. setenv bootdev "0:1";
  190. elif test "${mmc_boot_device}" = "1"; then
  191. setenv bootdev "1:1";
  192. fi
  193. setenv os_dev "${bootdev}";
  194. if test "${change_osdev}" = "yes"; then
  195. if test "${bootdev}" = "0:1"; then
  196. setenv os_dev "1:1";
  197. else
  198. setenv os_dev "0:1";
  199. fi
  200. fi
  201. # ========================================================
  202. # Load kernel, initrd and dtb in that sequence
  203. fatload mmc ${os_dev} 0x40008000 multiboot/zImage.linux2
  204. fatload mmc ${os_dev} 0x42000000 multiboot/uInitrd.linux2
  205. fatload mmc ${os_dev} 0x44000000 multiboot/exynos5422-odroidxu3.dtb.linux2
  206. # set FDT address
  207. fdt addr 0x44000000
  208. if test "${cecenable}" = "false"; then fdt rm /cec@101B0000; fi
  209. # final boot args
  210. setenv bootargs "${bootrootfs} ${videoconfig} smsc95xx.macaddr=${macaddr} governor=${governor} ${hdmi_phy_control}"
  211. # === RESTORE MULTIBOOT SCRIPT ===========================
  212. fatload mmc ${bootdev} 0x60000000 multiboot/boot.scr.multi
  213. fatwrite mmc ${bootdev} 0x60000000 boot.scr ${filesize}
  214. #=========================================================
  215. # Boot the board
  216. bootz 0x40008000 0x42000000 0x44000000