Advertisement
Guest User

boot.ini

a guest
Jul 29th, 2019
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ODROIDN2-UBOOT-CONFIG
  2.  
  3. # Default Console Device Setting
  4. setenv condev "console=ttyS0,115200n8"   # on both
  5.  
  6. # Auto Detection of Monitor settings based on your Screen information
  7. setenv display_autodetect "false"
  8.  
  9. # HDMI Mode
  10. # Resolution Configuration
  11. #    Symbol             | Resolution
  12. # ----------------------+-------------
  13. #    "480x272p60hz"     | 480x272 Progressive 60Hz
  14. #    "480x320p60hz"     | 480x320 Progressive 60Hz
  15. #    "480p60hz"         | 720x480 Progressive 60Hz
  16. #    "576p50hz"         | 720x576 Progressive 50Hz
  17. #    "720p60hz"         | 1280x720 Progressive 60Hz
  18. #    "720p50hz"         | 1280x720 Progressive 50Hz
  19. #    "1080p60hz"        | 1920x1080 Progressive 60Hz
  20. #    "1080p50hz"        | 1920x1080 Progressive 50Hz
  21. #    "1080p30hz"        | 1920x1080 Progressive 30Hz
  22. #    "1080p24hz"        | 1920x1080 Progressive 24Hz
  23. #    "1080i60hz"        | 1920x1080 Interlaced 60Hz
  24. #    "1080i50hz"        | 1920x1080 Interlaced 50Hz
  25. #    "2160p60hz"        | 3840x2160 Progressive 60Hz
  26. #    "2160p50hz"        | 3840x2160 Progressive 50Hz
  27. #    "2160p30hz"        | 3840x2160 Progressive 30Hz
  28. #    "2160p25hz"        | 3840x2160 Progressive 25Hz
  29. #    "2160p24hz"        | 3840x2160 Progressive 24Hz
  30. #    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
  31. #    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
  32. #    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
  33. #    "640x480p60hz"     | 640x480 Progressive 60Hz
  34. #    "800x480p60hz"     | 800x480 Progressive 60Hz
  35. #    "800x600p60hz"     | 800x600 Progressive 60Hz
  36. #    "1024x600p60hz"    | 1024x600 Progressive 60Hz
  37. #    "1024x768p60hz"    | 1024x768 Progressive 60Hz
  38. #    "1280x800p60hz"    | 1280x800 Progressive 60Hz
  39. #    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
  40. #    "1360x768p60hz"    | 1360x768 Progressive 60Hz
  41. #    "1440x900p60hz"    | 1440x900 Progressive 60Hz
  42. #    "1600x900p60hz"    | 1600x900 Progressive 60Hz
  43. #    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
  44. #    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
  45. #    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
  46. #    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
  47. #    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
  48. #    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
  49. #    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
  50. setenv hdmimode "2160p50hz"
  51.  
  52. # Monitor output
  53. # Controls if HDMI PHY should output anything to the monitor
  54. setenv monitor_onoff "false" # true or false
  55.  
  56. # Overscan percentage
  57. # This value scales down the actual screen size by the percentage below
  58. # valid range is 80 to 100
  59. setenv overscan "100"
  60.  
  61. ### voutmode : hdmi or dvi
  62. setenv voutmode "hdmi"
  63. # setenv voutmode "dvi"
  64.  
  65. # HPD enable/disable option
  66. setenv disablehpd "false"
  67.  
  68. # Hardkernel ODROID-VU7 support
  69. # By default VU7 support is disabled
  70. setenv disable_vu7 "true"
  71. # setenv disable_vu7 "false"
  72.  
  73. # max cpu frequency for big core, A73 in MHz unit
  74. # setenv max_freq_a73 "2004"  # 2.004 GHz
  75. # setenv max_freq_a73 "1992"  # 1.992 GHz
  76. # setenv max_freq_a73 "1908"  # 1.908 GHz
  77. setenv max_freq_a73 "1800"  # 1.8 GHz, default value
  78. # setenv max_freq_a73 "1704"  # 1.704 GHz
  79.  
  80. # max cpu frequency for little core, A53 in MHz unit
  81. # setenv max_freq_a53 "1992"  # 1.992 GHz
  82. setenv max_freq_a53 "1896"  # 1.896 GHz, default value
  83. # setenv max_freq_a53 "1704"  # 1.704 GHz
  84.  
  85.  
  86. # max cpu-cores
  87. # Note:
  88. # CPU's 0 and 1 are the A53 (small cores)
  89. # CPU's 2 to 5 are the A73 (big cores)
  90. # Lowering this value disables only the bigger cores (the last cores).
  91. # setenv maxcpus "4"
  92. # setenv maxcpus "5"
  93. setenv maxcpus "6"
  94.  
  95. ### Normal HDMI Monitors
  96. if test "${display_autodetect}" = "true"; then hdmitx edid; fi
  97. if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi
  98.  
  99. # VU7 Settings
  100. if test "${disable_vu7}" = "false"; then setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi
  101.  
  102. # Boot Args
  103. setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait rw ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan} ${hid_quirks} monitor_onoff=${monitor_onoff}"
  104.  
  105. # Set load addresses
  106. setenv dtb_loadaddr "0x1000000"
  107. setenv k_addr "0x1100000"
  108. setenv loadaddr "0x1B00000"
  109. setenv initrd_loadaddr "0x3700000"
  110.  
  111. # Load kernel, dtb and initrd
  112. fatload mmc ${devno}:1 ${k_addr} Image.gz
  113. fatload mmc ${devno}:1 ${dtb_loadaddr} meson64_odroidn2.dtb
  114. fatload mmc ${devno}:1 ${initrd_loadaddr} uInitrd
  115. fdt addr ${dtb_loadaddr}
  116. # unzip the kernel
  117. unzip ${k_addr} ${loadaddr}
  118.  
  119. # boot
  120. booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement