boot.ini.oelec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. ODROIDC2-UBOOT-CONFIG
  2. # boot.ini identification, Essential. Do not change first line shown above.
  3. # **Important Note**
  4. # Selecting various resolutions has no effect with LibreELEC / Kodi as it uses EDID
  5. # handshaking negotiation with a connected display to show available resolutions after Kodi startup.
  6. # Possible bootscreen screen resolutions - supported by the Kernel drivers, listed for reference purposes.
  7. # 480 Lines (720x480)
  8. # setenv m "480i60hz" # Interlaced 60Hz
  9. # setenv m "480i_rpt" # Interlaced for Rear Projection Televisions 60Hz
  10. # setenv m "480p60hz" # 480 Progressive 60Hz
  11. # setenv m "480p_rpt" # 480 Progressive for Rear Projection Televisions 60Hz
  12. # 576 Lines (720x576)
  13. # setenv m "576i50hz" # Interlaced 50Hz
  14. # setenv m "576i_rpt" # Interlaced for Rear Projection Televisions 50Hz
  15. # setenv m "576p50hz" # Progressive 50Hz
  16. # setenv m "576p_rpt" # Progressive for Rear Projection Televisions 50Hz
  17. # 720 Lines (1280x720)
  18. # setenv m "720p50hz" # 50Hz
  19. # setenv m "720p60hz" # 60Hz
  20. # 1080 Lines (1920x1080)
  21. # setenv m "1080i60hz" # Interlaced 60Hz
  22. setenv m "1080p60hz" # Progressive 60Hz
  23. # setenv m "1080i50hz" # Interlaced 50Hz
  24. # setenv m "1080p50hz" # Progressive 50Hz
  25. # setenv m "1080p24hz" # Progressive 24Hz
  26. # 4K (3840x2160)
  27. # setenv m "2160p30hz" # Progressive 30Hz
  28. # setenv m "2160p25hz" # Progressive 25Hz
  29. # setenv m "2160p24hz" # Progressive 24Hz
  30. # setenv m "smpte24hz" # Progressive 24Hz SMPTE
  31. # setenv m "2160p50hz" # Progressive 50Hz
  32. # setenv m "2160p60hz" # Progressive 60Hz
  33. # setenv m "2160p50hz420" # Progressive 50Hz with YCbCr 4:2:0 (Requires TV/Monitor that supports it)
  34. # setenv m "2160p60hz420" # Progressive 60Hz with YCbCr 4:2:0 (Requires TV/Monitor that supports it)
  35. ### VESA modes ###
  36. # setenv m "640x480p60hz"
  37. # setenv m "800x480p60hz"
  38. # setenv m "800x600p60hz"
  39. # setenv m "1024x600p60hz"
  40. # setenv m "1024x768p60hz"
  41. # setenv m "1280x800p60hz"
  42. # setenv m "1280x1024p60hz"
  43. # setenv m "1360x768p60hz"
  44. # setenv m "1440x900p60hz"
  45. # setenv m "1600x900p60hz"
  46. # setenv m "1680x1050p60hz"
  47. # setenv m "1920x1200p60hz"
  48. # setenv m "2560x1080p60hz"
  49. # setenv m "2560x1440p60hz"
  50. # setenv m "2560x1600p60hz"
  51. # HDMI BPP Mode
  52. setenv m_bpp "32"
  53. # setenv m_bpp "24"
  54. # setenv m_bpp "16"
  55. # HDMI DVI/VGA modes
  56. # Uncomment only a single Line! The line with setenv written.
  57. # At least one mode must be selected.
  58. setenv vout "hdmi"
  59. # setenv vout "dvi"
  60. # setenv vout "vga"
  61. # HDMI HotPlug Detection control
  62. # Allows you to force HDMI thinking that the cable is connected.
  63. # true = HDMI will believe that cable is always connected
  64. # false = will let board/monitor negotiate the connection status
  65. setenv hpd "true"
  66. # setenv hpd "false"
  67. # Default Console Device Setting
  68. # setenv condev "console=ttyS0,115200n8" # on serial port
  69. setenv condev "console=tty0" # on display (HDMI)
  70. # setenv condev "console=tty0 console=ttyS0,115200n8" # on both
  71. # Server Mode (aka. No Graphics)
  72. # Setting nographics to 0 will disable all video subsystem
  73. # This mode is ideal of server type usage. (Saves ~300Mb of RAM)
  74. setenv nographics "1"
  75. # Setup the LibreELEC options
  76. # Valid values are: textmode debugging progress nofsck nosplash noram overlay quiet ssh
  77. setenv libreelec "quiet ssh"
  78. # UHS Card Configuration
  79. # Uncomment the line below to DISABLE UHS-1 MicroSDHC support
  80. # This might break bootup for some SDHC cards.
  81. # setenv disableuhs "disableuhs"
  82. # Enable | Disable HDMI CEC Control
  83. # setenv hdmi_cec "0" # Disabled
  84. setenv hdmi_cec "1" # Enabled
  85. # setenv hdmi_cec "2" # Enabled but disable auto TV switching ON
  86. # CPU Frequency / Cores control
  87. #
  88. # WARNING!!! WARNING!!! WARNING!!!
  89. # Before changing anything here please read the wiki entry:
  90. # http://odroid.com/dokuwiki/doku.php?id=en:c2_set_cpu_freq
  91. #
  92. # MAX CPU's
  93. # setenv maxcpus "1"
  94. # setenv maxcpus "2"
  95. # setenv maxcpus "3"
  96. setenv maxcpus "4"
  97. #
  98. # MAX Frequency
  99. # setenv max_freq "2016" # 2.016GHz
  100. # setenv max_freq "1944" # 1.944GHz
  101. # setenv max_freq "1944" # 1.944GHz
  102. # setenv max_freq "1920" # 1.920GHz
  103. # setenv max_freq "1896" # 1.896GHz
  104. # setenv max_freq "1752" # 1.752GHz
  105. # setenv max_freq "1680" # 1.680GHz
  106. setenv max_freq "1656" # 1.656GHz
  107. # setenv max_freq "1536" # 1.536GHz
  108. # Force HDMI to use RGB colorspace regardless of TV request
  109. setenv hdmi_forcergb "0" # Disabled
  110. # setenv hdmi_forcergb "1" # Enabled
  111. # Odroid C2 specific
  112. setenv odroidp1 "no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} disablehpd=${hpd}"
  113. setenv odroidp2 "${disableuhs} consoleblank=0 max_freq=${max_freq} maxcpus=${maxcpus}"
  114. setenv odroid "${odroidp1} ${odroidp2}"
  115. # U-Boot - populate bootcmd
  116. setenv kernel "fatload mmc 0:1 0x11000000 multiboot/KERNEL"
  117. setenv dtb "fatload mmc 0:1 0x1000000 multiboot/meson64_odroidc2.dtb.oelec"
  118. setenv bootseq "booti 0x11000000 - 0x1000000"
  119. setenv timer "fdt addr 0x1000000; fdt rm /timer"
  120. setenv bootcmd "${kernel}; ${dtb}; ${timer}; ${bootseq}"
  121. # Set Boot and Disk Partitions
  122. setenv bootrootfs "boot=LABEL=userdata disk=LABEL=oelec"
  123. # Prepare to boot
  124. if test "${hdmi_cec}" = "0"; then setenv hdmitx "hdmitx=cec0"; fi
  125. if test "${hdmi_cec}" = "1"; then setenv hdmitx "hdmitx=cecf"; fi
  126. if test "${hdmi_cec}" = "2"; then setenv hdmitx "hdmitx=cec7"; fi
  127. if test "${hdmi_forcergb}" = "1"; then setenv hdmitx "${hdmitx},forcergb"; fi
  128. if test "${nographics}" = "0"; then fdt rm /mesonfb; fdt rm /aocec; fi
  129. # Populate the final boot variables
  130. setenv bootargs "${condev} ${bootrootfs} ${odroid} ${hdmitx} ${libreelec}"
  131. # =================================================
  132. # = RESTORE boot.ini FOR MULTIBOOT, DO NOT CHANGE =
  133. # =================================================
  134. fatload mmc 0:1 0x60000000 multiboot/boot.ini.multi
  135. fatwrite mmc 0:1 0x60000000 boot.ini ${filesize}
  136. # =================================================
  137. # Boot the C2 board
  138. run bootcmd