SHARE
TWEET

Untitled

a guest Jun 1st, 2019 77 in 279 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DROIDXU-UBOOT-CONFIG
  2.  
  3. # U-Boot Parameters
  4. setenv initrd_high "0xffffffff"
  5. setenv fdt_high "0xffffffff"
  6.  
  7. # Mac address configuration
  8. setenv macaddr "00:1e:06:61:7a:39"
  9.  
  10. #------------------------------------------------------------------------------------------------------
  11. # Basic Ubuntu Setup. Don't touch unless you know what you are doing.
  12. # --------------------------------
  13. setenv bootrootfs "console=tty1 console=ttySAC2,115200n8 root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro fsck.repair=yes net.ifnames=0"
  14.  
  15. # --- Screen Configuration for HDMI --- #
  16. # ---------------------------------------
  17. # Uncomment only ONE line! Leave all commented for automatic selection.
  18. # Uncomment only the setenv line!
  19. # ---------------------------------------
  20. # ODROID-VU forced resolution
  21. # setenv videoconfig "video=HDMI-A-1:1280x800@60"
  22. # -----------------------------------------------
  23. # ODROID-VU forced EDID
  24. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x800.bin"
  25. # -----------------------------------------------
  26. # 1920x1200 60hz without monitor data using generic information
  27. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1200_60hz.bin"
  28. # -----------------------------------------------
  29. # 1920x1200 30hz without monitor data using generic information
  30. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1200_30hz.bin"
  31. # -----------------------------------------------
  32. # 1920x1080 (1080P) with monitor provided EDID information. (1080p-edid)
  33. # setenv videoconfig "video=HDMI-A-1:1920x1080@60"
  34. # -----------------------------------------------
  35. # 1920x1080 (1080P) without monitor data using generic information (1080p-noedid)
  36. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080.bin"
  37. # -----------------------------------------------
  38. # 1920x1080 50hz (1080P) with monitor provided EDID information. (1080p 50hz-edid)
  39. # setenv videoconfig "video=HDMI-A-1:1920x1080@50"
  40. # -----------------------------------------------
  41. # 1920x1080 50hz (1080P) without monitor data using generic information (1080p 50hz-noedid)
  42. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080_50hz.bin"
  43. # -----------------------------------------------
  44. # 1680x1050 without monitor data using generic information
  45. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1680x1050.bin"
  46. # -----------------------------------------------
  47. # 1600x1200 without monitor data using generic information
  48. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1600x1200.bin"
  49. # -----------------------------------------------
  50. # 1600x900 without monitor data using generic information
  51. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1600x900.bin"
  52. # -----------------------------------------------
  53. # 1440x900 with monitor provided EDID information.
  54. # setenv videoconfig "video=HDMI-A-1:1440x900@60"
  55. # -----------------------------------------------
  56. # 1440x900 without monitor data using generic information
  57. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1440x900.bin"
  58. # -----------------------------------------------
  59. # 1366x768 without monitor data using generic information
  60. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1366x768.bin"
  61. # -----------------------------------------------
  62. # 1360x768 without monitor data using generic information
  63. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1360x768.bin"
  64. # -----------------------------------------------
  65. # 1280x1024 without monitor data using generic information
  66. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x1024.bin"
  67. # -----------------------------------------------
  68. # 1280x720 (720P) with monitor provided EDID information. (720p-edid)
  69. # setenv videoconfig "video=HDMI-A-1:1280x720@60"
  70. # -----------------------------------------------
  71. # 1280x720 (720P) without monitor data using generic information (720p-noedid)
  72. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x720.bin"
  73. # -----------------------------------------------
  74. # 1024x768 without monitor data using generic information
  75. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x768.bin"
  76. # -----------------------------------------------
  77. # 1024x600 without monitor data using generic information (ODROID VU7+)
  78. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x600.bin"
  79. # -----------------------------------------------
  80. # 800x600 without monitor data using generic information
  81. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/800x600.bin"
  82. # -----------------------------------------------
  83. # 800x480 without monitor data using generic information (ODROID 7")
  84. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/800x480.bin"
  85. # -----------------------------------------------
  86. # 720x576 without monitor data using generic information
  87. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/720x576.bin"
  88. # -----------------------------------------------
  89. # 720x480 without monitor data using generic information
  90. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/720x480.bin"
  91. # -----------------------------------------------
  92. # 640x480 without monitor data using generic information
  93. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/640x480.bin"
  94. # -----------------------------------------------
  95. # 480x800 without monitor data using generic information
  96. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/480x800.bin"
  97. # -----------------------------------------------
  98. # 480x320 without monitor data using generic information
  99. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/480x320.bin"
  100. # 1080x1920 waveshare test 1
  101. # setenv videoconfig "drm_kms_helper.edid_firmware=1080x1920_waveshare_125590.bin"
  102. # 1080x1920 waveshare test 2
  103. # setenv videoconfig "drm_kms_helper.edid_firmware=1080x1920_waveshare_148500.bin"
  104. # 1080x1920 waveshare test 3
  105. # setenv videoconfig "drm_kms_helper.edid_firmware=1080x1920_waveshare.bin"
  106.  
  107.  
  108.  
  109. # --- HDMI / DVI Mode Selection ---
  110. # ------------------------------------------
  111. # - HDMI Mode
  112. setenv vout "hdmi"
  113. # - DVI Mode (disables sound over HDMI as per DVI compat)
  114. # setenv vout "dvi"
  115.  
  116.  
  117. # --- HDMI CEC Configuration ---
  118. # ------------------------------------------
  119. setenv cecenable "false" # false or true
  120. # set to true to enable HDMI CEC
  121.  
  122.  
  123. # --- CPU Governor Setup ---
  124. # Uncomment only one line. New governor is set after 90secs after boot.
  125. # ------------------------------------------
  126. # - Performance (Keep all the CPU's at Maximum frequency)
  127. # setenv governor "performance"
  128. # ------------------------------------------
  129. # - Ondemand
  130. # setenv governor "ondemand"
  131. # ------------------------------------------
  132. # - Interactive (Pretty much just like ondemand with more possible customization via sysfs.)
  133. # setenv governor "interactive"
  134. # ------------------------------------------
  135. # - Conservative (Like ondemand, but do the frequency transitions more slowly, great for battery powered applications)
  136.  setenv governor "conservative"
  137. # ------------------------------------------
  138. # - Powersave (Keeps the CPU's to the lowest possible temps)
  139. # setenv governor "powersave"
  140.  
  141. # Enable/Disable ODROID-VU7 Touchsreen
  142. setenv disable_vu7 "false" # false
  143.  
  144.  
  145. #------------------------------------------------------------------------------
  146. #
  147. # HDMI-PHY Parameter Control
  148. #
  149. #------------------------------------------------------------------------------
  150. #------------------------------------------------------------------------------
  151. #
  152. # HDMI Hot Plug detection
  153. #
  154. #------------------------------------------------------------------------------
  155. #
  156. # Forces the HDMI subsystem to ignore the check if the cable is connected or
  157. # not.
  158. # false : disable the detection and force it as connected.
  159. # true : let cable, board and monitor decide the connection status.
  160. #
  161. # default: true
  162. #
  163. #------------------------------------------------------------------------------
  164. setenv HPD "true"
  165.  
  166. #------------------------------------------------------------------------------
  167. #
  168. #  TMDS data amplitude control.
  169. #
  170. #------------------------------------------------------------------------------
  171. #
  172. #  1LSB corresponds to 20 mVdiff amplitude level.
  173. #  tx_amp_lvl : 0 = 760 mVdiff(Min), 31 = 1380 mVdiff(Max)
  174. #
  175. #  Hardkernel default hdmi_tx_amp_lvl = 31(1380 mVdiff);
  176. #------------------------------------------------------------------------------
  177. setenv hdmi_tx_amp_lvl  "31"
  178.  
  179. #------------------------------------------------------------------------------
  180. #
  181. #  TMDS data amplitude fine control for each channel.
  182. #
  183. #------------------------------------------------------------------------------
  184. #
  185. #  1LSB corresponds to 20 mVdiff amplitude level.
  186. #  tx_lvl : 0 = 0 mVdiff(Min), 3 = 60 mVdiff(Max)
  187. #
  188. #  Hardkernel default
  189. #      hdmi_tx_lvl_ch0 = 3, hdmi_tx_lvl_ch1 = 3, hdmi_tx_lvl_ch2 = 3,
  190. #------------------------------------------------------------------------------
  191. setenv hdmi_tx_lvl_ch0      "3"
  192. setenv hdmi_tx_lvl_ch1      "3"
  193. setenv hdmi_tx_lvl_ch2      "3"
  194.  
  195. #------------------------------------------------------------------------------
  196. #
  197. #  TMDS data pre-emphasis level control.
  198. #
  199. #------------------------------------------------------------------------------
  200. #
  201. #  1LSB corresponds to -0.45dB emphasis level except for 1
  202. #  tx_emp_lvl : 0 = 0 db(Min), 1 = -0.25 db, 2 = 0.7 db, 15 = -7.45 db(Max)
  203. #
  204. #  Hardkernel default hdmi_tx_emp_lvl = 6 (-2.50 db);
  205. #------------------------------------------------------------------------------
  206. setenv hdmi_tx_emp_lvl      "6"
  207.  
  208. #------------------------------------------------------------------------------
  209. #
  210. #  TMDS clock amplitude control.
  211. #
  212. #------------------------------------------------------------------------------
  213. #
  214. #  1LSB corresponds to 20 mVdiff amplitude level.
  215. #  clk_amp_lvl : 0 = 790 mVdiff(Min), 31 = 1410 mVdiff(Max)
  216. #
  217. #  Hardkernel default hdmi_clk_amp_lvl = 31 (1410 mVdiff)
  218. #------------------------------------------------------------------------------
  219. setenv hdmi_clk_amp_lvl     "31"
  220.  
  221. #------------------------------------------------------------------------------
  222. #
  223. #  TMDS data source termination resistor control.
  224. #
  225. #------------------------------------------------------------------------------
  226. #
  227. #  tx_res :
  228. #      0 = Source Termination OFF(Min), 1 = 200 ohm, 2 = 300 ohm, 3 = 120 ohm(Max)
  229. #
  230. #  Hardkernrel default hdmi_tx_res = 0 (Source Termination OFF)
  231. #------------------------------------------------------------------------------
  232. setenv hdmi_tx_res      "0"
  233.  
  234. #------------------------------------------------------------------------------
  235.  
  236. 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}"
  237.  
  238.  
  239. # Load kernel, initrd and dtb in that sequence
  240. fatload mmc 0:1 0x40008000 zImage
  241. fatload mmc 0:1 0x42000000 uInitrd
  242. fatload mmc 0:1 0x44000000 exynos5422-odroidxu3.dtb
  243.  
  244. # set FDT address
  245. fdt addr 0x44000000
  246.  
  247. if test "${cecenable}" = "false"; then fdt rm /cec@101B0000; fi
  248. if test "${disable_vu7}" = "false"; then setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi
  249.  
  250. # final boot args
  251. setenv bootargs "${bootrootfs} ${videoconfig} smsc95xx.macaddr=${macaddr} governor=${governor} ${hdmi_phy_control} ${hid_quirks}"
  252.  
  253. # Boot the board
  254. bootz 0x40008000 0x42000000 0x44000000
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top