TEXT   21

boot ini template

Guest on 16th June 2022 05:04:12 AM

  1. #------------------------------------------------------------------------------------------------------
  2. #
  3. # Boot.ini text file template
  4. #
  5. #------------------------------------------------------------------------------------------------------
  6. #
  7. # boot.ini identification
  8. #
  9. #------------------------------------------------------------------------------------------------------
  10. ODROIDXU-UBOOT-CONFIG
  11.  
  12. # U-Boot Parameters
  13. setenv initrd_high "0xffffffff"
  14. setenv fdt_high "0xffffffff"
  15.  
  16. #------------------------------------------------------------------------------------------------------
  17. #
  18. # Boot Specific Stuff
  19. # Ubuntu
  20. # setenv bootrootfs "console=tty1 console=ttySAC2,115200n8 root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro"
  21.  
  22. # Android
  23. setenv bootroofs "root=/dev/mmcblk0p2 rw rootfstype=ext4 init=/init console=ttySAC2,115200n8 vmalloc=512M androidboot.console=ttySAC2"
  24.  
  25. #------------------------------------------------------------------------------------------------------
  26. #
  27. # Frame buffer size.
  28. # Example.. If you are on LCD Kit set the values bellow to:
  29. # x = 1280 and y = 800
  30. # Otherwise please set this value below to your wanted resolution
  31. # Values:
  32. # LCD Kit: x = 1280   y = 800
  33. #  ---------------------------
  34. # HDMI:
  35. #    480: x = 720    y = 480
  36. #    576: x = 720    y = 576
  37. #    720: x = 1280   y = 720
  38. #   1080: x = 1920   y = 1080
  39. #
  40. #------------------------------------------------------------------------------------------------------
  41. setenv fb_x_res     "1920"
  42. setenv fb_y_res     "1080"
  43.  
  44. #------------------------------------------------------------------------------------------------------
  45. #
  46. # Controls the Board Output Method.
  47. # Valid values are: lcd dp hdmi dvi
  48. #
  49. #------------------------------------------------------------------------------------------------------
  50. setenv vout         "hdmi"
  51.  
  52. #------------------------------------------------------------------------------------------------------
  53. #
  54. # FB Timing Control
  55. #
  56. #------------------------------------------------------------------------------------------------------
  57. setenv left     "56"
  58. setenv right    "24"
  59. setenv upper    "3"
  60. setenv lower    "3"
  61. setenv hsync    "14"
  62. setenv vsync    "3"
  63.  
  64. setenv fb_control "left=${left} right=${right} upper=${upper} lower=${lower} vsync=${vsync} hsync=${hsync}"
  65.  
  66. #------------------------------------------------------------------------------------------------------
  67. #
  68. # Example.. Timing parameters of some monitor..
  69. #
  70. #------------------------------------------------------------------------------------------------------
  71. #
  72. # AOC I2269V 22" (1920 X 1080)
  73. # left = 56, right = 24, upper = 3, lower = 3, hsync = 14, vsync = 3
  74. #
  75. #------------------------------------------------------------------------------------------------------
  76. #
  77. # YAMAKASI Monitor 27" (2560 X 1440)
  78. # left = 15, right = 10, upper = 10, lower = 10, hsync = 10, vsync = 10,
  79. #
  80. #------------------------------------------------------------------------------------------------------
  81. #
  82. # X-Star Monitor 27" (2560 X 1440)
  83. # left = 56, right = 24, upper = 3, lower = 3, hsync = 14, vsync = 3,
  84. #
  85. #------------------------------------------------------------------------------------------------------
  86. #
  87. # LG Monitor 27" (2560 * 1080)
  88. #
  89. # left = 56, right = 248, upper = 3, lower = 3, hsync = 144, vsync = 3,
  90. # left = 100, right = 100, upper = 100, lower = 100, hsync = 100, vsync = 100,
  91. #
  92. #------------------------------------------------------------------------------------------------------
  93.  
  94. #------------------------------------------------------------------------------------------------------
  95. #
  96. # Forces a fixed resolution on the HDMI controller. Please make sure that your screen supports and
  97. # It matchs the resolution above! setted the X and Y
  98. # valid values are: 480p60hz 576p50hz 720p60hz 720p50hz 1080p60hz 1080i60hz 1080i50hz 1080p50hz
  99. #                   1080p30hz 1080p25hz 1080p24hz
  100. #
  101. #------------------------------------------------------------------------------------------------------
  102. setenv hdmi_phy_res "1080p60hz"
  103.  
  104. #------------------------------------------------------------------------------------------------------
  105. #
  106. # System Status LED: Blink the RGB LED or disable it
  107. # valid values: 0 to 255
  108. #
  109. # Example..
  110. # led_blink    "0" : LED Off
  111. # led_blink    "1" : LED blink period 1 sec.
  112. #------------------------------------------------------------------------------------------------------
  113. setenv led_blink    "1"
  114.  
  115. #------------------------------------------------------------------------------------------------------
  116. #
  117. # U-Boot bootcmd command
  118. #  
  119. #------------------------------------------------------------------------------------------------------
  120. setenv bootcmd "movi r k 0:1 40008000; bootz 0x40008000"
  121.  
  122. #------------------------------------------------------------------------------------------------------
  123. #
  124. # Kernel boot arguments
  125. #
  126. #------------------------------------------------------------------------------------------------------
  127. setenv bootargs "${bootrootfs} ${fb_control} fb_x_res=${fb_x_res} fb_y_res=${fb_y_res} vout=${vout} hdmi_phy_res=${hdmi_phy_res} led_blink=${led_blink}"
  128.  
  129. # Boot the board
  130. boot

Raw Paste


Login or Register to edit or fork this paste. It's free.