Advertisement
Guest User

Untitled

a guest
Jul 17th, 2020
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
INI file 13.20 KB | None | 0 0
  1. ODROIDXU-UBOOT-CONFIG
  2.  
  3. # DO NOT EDIT THIS FILE
  4. #
  5. # Please edit /boot/armbianEnv.txt to set supported parameters
  6. #
  7.  
  8. # U-Boot defaults
  9. setenv initrd_high "0xffffffff"
  10. setenv fdt_high "0xffffffff"
  11.  
  12. # default settings, will be overwritten from armbianEnv.txt
  13. setenv macaddr "00:1e:06:61:7a:55"
  14. setenv rootdev "UUID=5fa7d387-e1d0-42e5-9bf8-2b3822f1c2fe"
  15. setenv rootfstype "ext4"
  16. setenv console "both"
  17. setenv verbosity "1"
  18.  
  19. # To update boot loader on your eMMC use the nand-sata-install tool
  20. # run copy_uboot_sd2emmc
  21.  
  22. if ext4load mmc 0:1 0x44000000 /boot/armbianEnv.txt || fatload mmc 0:1 0x44000000 armbianEnv.txt || ext4load mmc 0:1 0x44000000 armbianEnv.txt; then env import -t 0x44000000 ${filesize}; fi
  23.  
  24. if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=null"; fi
  25. if test "${console}" = "serial" || test "${console}" = "both"; then setenv consoleargs "console=ttySAC2,115200n8 ${consoleargs}"; fi
  26.  
  27. setenv bootrootfs "${consoleargs} consoleblank=0 loglevel=${verbosity} root=${rootdev} rootfstype=${rootfstype} rootwait rw"
  28.  
  29. # --- Screen Configuration for HDMI --- #
  30. # ---------------------------------------
  31. # Uncomment only ONE line! Leave all commented for automatic selection.
  32. # Uncomment only the setenv line!
  33. # ---------------------------------------
  34. # ODROID-VU forced resolution
  35. # setenv videoconfig "video=HDMI-A-1:1280x800@60"
  36. # -----------------------------------------------
  37. # ODROID-VU forced EDID
  38. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x800.bin"
  39. # -----------------------------------------------
  40. # 1920x1200 60hz without monitor data using generic information
  41. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1200_60hz.bin"
  42. # -----------------------------------------------
  43. # 1920x1200 30hz without monitor data using generic information
  44. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1200_30hz.bin"
  45. # -----------------------------------------------
  46. # 1920x1080 (1080P) with monitor provided EDID information. (1080p-edid)
  47. # setenv videoconfig "video=HDMI-A-1:1920x1080@60"
  48. # -----------------------------------------------
  49. # 1920x1080 (1080P) without monitor data using generic information (1080p-noedid)
  50. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080.bin"
  51. # -----------------------------------------------
  52. # 1920x1080 50hz (1080P) with monitor provided EDID information. (1080p 50hz-edid)
  53. # setenv videoconfig "video=HDMI-A-1:1920x1080@50"
  54. # -----------------------------------------------
  55. # 1920x1080 50hz (1080P) without monitor data using generic information (1080p 50hz-noedid)
  56. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080_50hz.bin"
  57. # -----------------------------------------------
  58. # 1920x800 60hz without monitor data using generic information
  59. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x800.bin"
  60. # -----------------------------------------------
  61. # 1792x1344 60hz without monitor data using generic information
  62. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1792x1344.bin"
  63. # -----------------------------------------------
  64. # 1680x1050 without monitor data using generic information
  65. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1680x1050.bin"
  66. # -----------------------------------------------
  67. # 1600x1200 without monitor data using generic information
  68. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1600x1200.bin"
  69. # -----------------------------------------------
  70. # 1600x900 without monitor data using generic information
  71. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1600x900.bin"
  72. # -----------------------------------------------
  73. # 1400x1050 60hz without monitor data using generic information
  74. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1400x1050.bin"
  75. # -----------------------------------------------
  76. # 1440x900 with monitor provided EDID information.
  77. # setenv videoconfig "video=HDMI-A-1:1440x900@60"
  78. # -----------------------------------------------
  79. # 1440x900 without monitor data using generic information
  80. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1440x900.bin"
  81. # -----------------------------------------------
  82. # 1366x768 without monitor data using generic information
  83. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1366x768.bin"
  84. # -----------------------------------------------
  85. # 1360x768 without monitor data using generic information
  86. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1360x768.bin"
  87. # -----------------------------------------------
  88. # 1280x1024 without monitor data using generic information
  89. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x1024.bin"
  90. # -----------------------------------------------
  91. # 1280x768 60hz without monitor data using generic information
  92. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x768.bin"
  93. # -----------------------------------------------
  94. # 1280x720 (720P) with monitor provided EDID information. (720p-edid)
  95. # setenv videoconfig "video=HDMI-A-1:1280x720@60"
  96. # -----------------------------------------------
  97. # 1280x720 (720P) without monitor data using generic information (720p-noedid)
  98. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x720.bin"
  99. # -----------------------------------------------
  100. # 1152x864 75hz without monitor data using generic information
  101. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1152x864_75hz.bin"
  102. # -----------------------------------------------
  103. # 1024x768 without monitor data using generic information
  104. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x768.bin"
  105. # -----------------------------------------------
  106. # 1024x600 without monitor data using generic information (ODROID VU7+)
  107. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x600.bin"
  108. # -----------------------------------------------
  109. # 800x600 without monitor data using generic information
  110. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/800x600.bin"
  111. # -----------------------------------------------
  112. # 848x480 60hz without monitor data using generic information
  113. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/848x480.bin"
  114. # -----------------------------------------------
  115. # 800x480 without monitor data using generic information (ODROID 7")
  116. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/800x480.bin"
  117. # -----------------------------------------------
  118. # 720x576 without monitor data using generic information
  119. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/720x576.bin"
  120. # -----------------------------------------------
  121. # 720x480 without monitor data using generic information
  122. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/720x480.bin"
  123. # -----------------------------------------------
  124. # 640x480 without monitor data using generic information
  125. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/640x480.bin"
  126. # -----------------------------------------------
  127. # 480x800 without monitor data using generic information
  128. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/480x800.bin"
  129.  
  130.  
  131. # --- HDMI / DVI Mode Selection ---
  132. # ------------------------------------------
  133. # - HDMI Mode
  134. setenv vout "hdmi"
  135. # - DVI Mode (disables sound over HDMI as per DVI compat)
  136. # setenv vout "dvi"
  137.  
  138. # --- HDMI CEC Configuration ---
  139. # ------------------------------------------
  140. setenv cecenable "false" # false or true
  141. # set to true to enable HDMI CEC
  142.  
  143. # CPU Governor Selection
  144. # Available governos: conservative, userspace, powersave, ondemand, performance, schedutil
  145. setenv governor "performance"
  146.  
  147. # DRAM Frequency
  148. # Sets the LPDDR3 memory frequency
  149. # Supported values: 933 825 728 633 (MHZ)
  150. setenv ddr_freq 825
  151.  
  152. #------------------------------------------------------------------------------
  153. #
  154. # Use Hardware Add-On
  155. #
  156. #------------------------------------------------------------------------------
  157. #
  158. # If you are using your odroidxu4 in a CloudShell2 enclosure set this to true to
  159. # enable TFT LCD and FAN control via i2c bus
  160. # false : disabled
  161. # true : TFT LCD and i2c bus enabled
  162. #
  163. # default : false
  164. #
  165. #------------------------------------------------------------------------------
  166. setenv cs2enable "false"
  167.  
  168. #------------------------------------------------------------------------------
  169. #
  170. # HDMI Hot Plug detection
  171. #
  172. #------------------------------------------------------------------------------
  173. #
  174. # Forces the HDMI subsystem to ignore the check if the cable is connected or
  175. # not.
  176. # false : disable the detection and force it as connected.
  177. # true : let cable, board and monitor decide the connection status.
  178. #
  179. # default: true
  180. #
  181. #------------------------------------------------------------------------------
  182. setenv HPD "true"
  183.  
  184. #------------------------------------------------------------------------------
  185. #
  186. #  TMDS data amplitude control.
  187. #
  188. #------------------------------------------------------------------------------
  189. #
  190. #  1LSB corresponds to 20 mVdiff amplitude level.
  191. #  tx_amp_lvl : 0 = 760 mVdiff(Min), 31 = 1380 mVdiff(Max)
  192. #
  193. #  Hardkernel default hdmi_tx_amp_lvl = 31(1380 mVdiff);
  194. #------------------------------------------------------------------------------
  195. setenv hdmi_tx_amp_lvl  "31"
  196.  
  197. #------------------------------------------------------------------------------
  198. #
  199. #  TMDS data amplitude fine control for each channel.
  200. #
  201. #------------------------------------------------------------------------------
  202. #
  203. #  1LSB corresponds to 20 mVdiff amplitude level.
  204. #  tx_lvl : 0 = 0 mVdiff(Min), 3 = 60 mVdiff(Max)
  205. #
  206. #  Hardkernel default
  207. #      hdmi_tx_lvl_ch0 = 3, hdmi_tx_lvl_ch1 = 3, hdmi_tx_lvl_ch2 = 3,
  208. #------------------------------------------------------------------------------
  209. setenv hdmi_tx_lvl_ch0      "3"
  210. setenv hdmi_tx_lvl_ch1      "3"
  211. setenv hdmi_tx_lvl_ch2      "3"
  212.  
  213. #------------------------------------------------------------------------------
  214. #
  215. #  TMDS data pre-emphasis level control.
  216. #
  217. #------------------------------------------------------------------------------
  218. #
  219. #  1LSB corresponds to -0.45dB emphasis level except for 1
  220. #  tx_emp_lvl : 0 = 0 db(Min), 1 = -0.25 db, 2 = 0.7 db, 15 = -7.45 db(Max)
  221. #
  222. #  Hardkernel default hdmi_tx_emp_lvl = 6 (-2.50 db);
  223. #------------------------------------------------------------------------------
  224. setenv hdmi_tx_emp_lvl      "6"
  225.  
  226. #------------------------------------------------------------------------------
  227. #
  228. #  TMDS clock amplitude control.
  229. #
  230. #------------------------------------------------------------------------------
  231. #
  232. #  1LSB corresponds to 20 mVdiff amplitude level.
  233. #  clk_amp_lvl : 0 = 790 mVdiff(Min), 31 = 1410 mVdiff(Max)
  234. #
  235. #  Hardkernel default hdmi_clk_amp_lvl = 31 (1410 mVdiff)
  236. #------------------------------------------------------------------------------
  237. setenv hdmi_clk_amp_lvl     "31"
  238.  
  239. #------------------------------------------------------------------------------
  240. #
  241. #  TMDS data source termination resistor control.
  242. #
  243. #------------------------------------------------------------------------------
  244. #
  245. #  tx_res :
  246. #      0 = Source Termination OFF(Min), 1 = 200 ohm, 2 = 300 ohm, 3 = 120 ohm(Max)
  247. #
  248. #  Hardkernrel default hdmi_tx_res = 0 (Source Termination OFF)
  249. #------------------------------------------------------------------------------
  250. setenv hdmi_tx_res      "0"
  251.  
  252. #------------------------------------------------------------------------------
  253.  
  254. 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}"
  255.  
  256. # Load kernel, initrd and dtb in that sequence
  257. ext4load mmc 0:1 0x40008000 /boot/zImage || fatload mmc 0:1 0x40008000 zImage || ext4load mmc 0:1 0x40008000 zImage
  258. ext4load mmc 0:1 0x42000000 /boot/uInitrd || fatload mmc 0:1 0x42000000 uInitrd || ext4load mmc 0:1 0x42000000 uInitrd
  259.  
  260. # this is for mainline only
  261. if test "${board_name}" = "xu4"; then setenv fdtfile "exynos5422-odroidxu4.dtb"; fi
  262. if test "${board_name}" = "xu3"; then setenv fdtfile "exynos5422-odroidxu3.dtb"; fi
  263. if test "${board_name}" = "xu3l"; then setenv fdtfile "exynos5422-odroidxu3-lite.dtb"; fi
  264. if test "${board_name}" = "hc1"; then setenv fdtfile "exynos5422-odroidhc1.dtb"; fi
  265.  
  266. # legacy shares a single DT for all boards
  267. if ext4load mmc 0:1 0x00000000 "/boot/.next" || fatload mmc 0:1 0x00000000 ".next"  || ext4load mmc 0:1 0x00000000 ".next"; then echo "Found mainline kernel configuration"; else setenv fdtfile "exynos5422-odroidxu3.dtb"; fi
  268. ext4load mmc 0:1 0x44000000 /boot/dtb/${fdtfile} || fatload mmc 0:1 0x44000000 dtb/${fdtfile} || ext4load mmc 0:1 0x44000000 dtb/${fdtfile}
  269.  
  270. # set FDT address
  271. fdt addr 0x44000000
  272.  
  273. if test "${cs2enable}" = "true"; then
  274.    fdt resize 8192
  275.  
  276.    setenv overlays "i2c0 i2c1 hktft-cs-ogst"
  277.    for overlay in ${overlays}; do
  278.        ext4load mmc 0:1 0x60000000 /boot/dtb/overlays/${overlay}.dtbo
  279.        fdt apply 0x60000000
  280.    done
  281. fi
  282.  
  283. if test "${cecenable}" = "false"; then fdt rm /cec@101B0000; fi
  284.  
  285. # final boot args
  286. setenv bootargs "${bootrootfs} ${videoconfig} smsc95xx.macaddr=${macaddr} governor=${governor} ${hdmi_phy_control} usb-storage.quirks=${usbstoragequirks} ${extraargs}"
  287.  
  288. # set DDR frequency
  289. dmc ${ddr_freq}
  290.  
  291. bootz 0x40008000 0x42000000 0x44000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement