boot.ini.multi 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. ODROIDC-UBOOT-CONFIG
  2. # ===============================================================
  3. # = Multi boot & install parameters =
  4. # ===============================================================
  5. # Time (sec) to automatic boot if no key is pressed (min 5) =
  6. # ------------------------------------------------------------- =
  7. setenv BOOT_DELAY "60"
  8. # ===============================================================
  9. # Menu item to boot if no key is pressed ("1" ~ "8") =
  10. # ------------------------------------------------------------- =
  11. setenv DEFAULT_OS "1"
  12. #
  13. # ===============================================================
  14. # Possible screen resolutions
  15. # Uncomment only a single Line! The line with setenv written.
  16. # At least one mode must be selected.
  17. # setenv m "vga" # 640x480
  18. # setenv m "480p" # 720x480
  19. # setenv m "576p" # 720x576
  20. # setenv m "800x480p60hz" # 800x480
  21. # setenv m "800x600p60hz" # 800x600
  22. # setenv m "1024x600p60hz" # 1024x600
  23. # setenv m "1024x768p60hz" # 1024x768
  24. # setenv m "1360x768p60hz" # 1360x768
  25. # setenv m "1440x900p60hz" # 1440x900
  26. # setenv m "1600x900p60hz" # 1600x900
  27. # setenv m "1680x1050p60hz" # 1680x1050
  28. # setenv m "720p" # 720p 1280x720
  29. # setenv m "800p" # 1280x800
  30. # setenv m "sxga" # 1280x1024
  31. # setenv m "1080i50hz" # 1080I@50Hz
  32. # setenv m "1080p24hz" # 1080P@24Hz
  33. # setenv m "1080p50hz" # 1080P@50Hz
  34. setenv m "1080p" # 1080P@60Hz
  35. # setenv m "1920x1200" # 1920x1200
  36. # HDMI DVI Mode Configuration
  37. setenv vout_mode "hdmi"
  38. # setenv vout_mode "dvi"
  39. # setenv vout_mode "vga"
  40. # HDMI BPP Mode
  41. setenv m_bpp "32"
  42. # setenv m_bpp "24"
  43. # setenv m_bpp "16"
  44. # Monitor output
  45. # Controls if HDMI PHY should output anything to the monitor
  46. setenv monitor_onoff "false" # true or false
  47. # HDMI Hotplug Force (HPD)
  48. # 1 = Enables HOTPlug Detection
  49. # 0 = Disables HOTPlug Detection and force the connected status
  50. setenv hpd "0"
  51. # CEC Enable/Disable (Requires Hardware Modification)
  52. # 1 = Enables HDMI CEC
  53. # 0 = Disables HDMI CEC
  54. setenv cec "0"
  55. # PCM5102 I2S Audio DAC
  56. # PCM5102 is an I2S Audio Dac Addon board for ODROID-C1+
  57. # Uncomment the line below to __ENABLE__ support for this Addon board.
  58. # setenv enabledac "enabledac"
  59. # UHS Card Configuration
  60. # Uncomment the line below to __DISABLE__ UHS-1 MicroSD support
  61. # This might break boot for some brand models of cards.
  62. #setenv disableuhs "disableuhs"
  63. # Disable VPU (Video decoding engine, Saves RAM!!!)
  64. # 0 = disabled
  65. # 1 = enabled
  66. setenv vpu "0"
  67. # Disable HDMI Output (Again, saves ram!)
  68. # 0 = disabled
  69. # 1 = enabled
  70. setenv hdmioutput "1"
  71. # Default Console Device Setting
  72. # setenv condev "console=ttyS0,115200n8" # on serial port
  73. # setenv condev "console=tty0" # on display (HDMI)
  74. setenv condev "console=tty0 console=ttyS0,115200n8" # on both
  75. # CPU Max Frequency
  76. # Possible Values: 96 192 312 408 504 600 720 816
  77. # 1008 1200 1320 1488 1536 1632 1728 and 1824
  78. setenv max_freq "1536"
  79. # setenv max_freq "1632"
  80. # setenv max_freq "1728"
  81. # setenv max_freq "1824"
  82. ###########################################
  83. if test "${hpd}" = "0"; then setenv hdmi_hpd "disablehpd=true"; fi
  84. if test "${cec}" = "1"; then setenv hdmi_cec "hdmitx=cecf"; fi
  85. # Boot Arguments
  86. #if test "${is_boot_card}" = ""; then setenv is_boot_card="unknown"; fi
  87. #setenv bootargs "console=tty0 quiet boot_card_type=${is_boot_card} boot_delay=${BOOT_DELAY} default_os=${DEFAULT_OS} no_console_suspend loglevel=0 no_console_suspend vdaccfg=0xa000 logo=osd1,loaded,0x7900000,720p,full dmfc=3 cvbsmode=576cvbs hdmimode=${m} m_bpp=${m_bpp} vout=${vout_mode} ${disableuhs} ${hdmi_hpd} ${hdmi_cec} ${enabledac} monitor_onoff=${monitor_onoff} max_freq=${max_freq}"
  88. setenv bootargs "console=tty0 quiet boot_delay=${BOOT_DELAY} default_os=${DEFAULT_OS} no_console_suspend loglevel=0 no_console_suspend vdaccfg=0xa000 logo=osd1,loaded,0x7900000,720p,full dmfc=3 cvbsmode=576cvbs hdmimode=${m} m_bpp=${m_bpp} vout=${vout_mode} ${disableuhs} ${hdmi_hpd} ${hdmi_cec} ${enabledac} monitor_onoff=${monitor_onoff} max_freq=${max_freq}"
  89. # Booting
  90. fatload mmc 0:1 0x21000000 multiboot/uImage.multi
  91. fatload mmc 0:1 0x22000000 multiboot/uInitrd.multi
  92. fatload mmc 0:1 0x21800000 multiboot/meson8b_odroidc.dtb.multi
  93. fdt addr 21800000
  94. if test "${vpu}" = "0"; then fdt rm /mesonstream; fdt rm /vdec; fdt rm /ppmgr; fi
  95. if test "${hdmioutput}" = "0"; then fdt rm /mesonfb; fi
  96. bootm 0x21000000 0x22000000 0x21800000"