boot.ini.linux 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ODROIDC-UBOOT-CONFIG
  2. # Possible screen resolutions
  3. # Uncomment only a single Line! The line with setenv written.
  4. # At least one mode must be selected.
  5. # setenv m "vga" # 640x480
  6. # setenv m "480p" # 720x480
  7. # setenv m "576p" # 720x576
  8. # setenv m "800x480p60hz" # 800x480
  9. # setenv m "800x600p60hz" # 800x600
  10. # setenv m "1024x600p60hz" # 1024x600
  11. # setenv m "1024x768p60hz" # 1024x768
  12. # setenv m "1360x768p60hz" # 1360x768
  13. # setenv m "1440x900p60hz" # 1440x900
  14. # setenv m "1600x900p60hz" # 1600x900
  15. # setenv m "1680x1050p60hz" # 1680x1050
  16. # setenv m "720p" # 720p 1280x720
  17. # setenv m "800p" # 1280x800
  18. # setenv m "sxga" # 1280x1024
  19. # setenv m "1080i50hz" # 1080I@50Hz
  20. # setenv m "1080p24hz" # 1080P@24Hz
  21. # setenv m "1080p50hz" # 1080P@50Hz
  22. setenv m "1080p" # 1080P@60Hz
  23. # setenv m "1920x1200" # 1920x1200
  24. # HDMI DVI Mode Configuration
  25. setenv vout_mode "hdmi"
  26. # setenv vout_mode "dvi"
  27. # setenv vout_mode "vga"
  28. # HDMI BPP Mode
  29. setenv m_bpp "32"
  30. # setenv m_bpp "24"
  31. # setenv m_bpp "16"
  32. # HDMI Hotplug Force (HPD)
  33. # 1 = Enables HOTPlug Detection
  34. # 0 = Disables HOTPlug Detection and force the connected status
  35. setenv hpd "0"
  36. # CEC Enable/Disable (Requires Hardware Modification)
  37. # 1 = Enables HDMI CEC
  38. # 0 = Disables HDMI CEC
  39. setenv cec "0"
  40. # PCM5102 I2S Audio DAC
  41. # PCM5102 is an I2S Audio Dac Addon board for ODROID-C1+
  42. # Uncomment the line below to __ENABLE__ support for this Addon board.
  43. # setenv enabledac "enabledac"
  44. # UHS Card Configuration
  45. # Uncomment the line below to __DISABLE__ UHS-1 MicroSD support
  46. # This might break boot for some brand models of cards.
  47. setenv disableuhs "disableuhs"
  48. # Disable VPU (Video decoding engine, Saves RAM!!!)
  49. # 0 = disabled
  50. # 1 = enabled
  51. setenv vpu "1"
  52. # Disable HDMI Output (Again, saves ram!)
  53. # 0 = disabled
  54. # 1 = enabled
  55. setenv hdmioutput "1"
  56. # Default Console Device Setting
  57. # setenv condev "console=ttyS0,115200n8" # on serial port
  58. # setenv condev "console=tty0" # on display (HDMI)
  59. setenv condev "console=tty0 console=ttyS0,115200n8" # on both
  60. ###########################################
  61. if test "${hpd}" = "0"; then setenv hdmi_hpd "disablehpd=true"; fi
  62. if test "${cec}" = "1"; then setenv hdmi_cec "hdmitx=cecf"; fi
  63. # =================================================
  64. # = RESTORE boot.ini FOR MULTIBOOT, DO NOT CHANGE =
  65. # =================================================
  66. fatload mmc 0:1 0x30000000 multiboot/boot.ini.multi
  67. fatwrite mmc 0:1 0x30000000 boot.ini ${filesize}
  68. # =================================================
  69. # Boot Arguments
  70. setenv bootargs "root=LABEL=XXlinux rootwait ro ${condev} 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}"
  71. # Booting
  72. fatload mmc 0:1 0x21000000 multiboot/uImage.linux
  73. fatload mmc 0:1 0x22000000 multiboot/uInitrd.linux
  74. fatload mmc 0:1 0x21800000 multiboot/meson8b_odroidc.dtb.linux
  75. fdt addr 21800000
  76. if test "${vpu}" = "0"; then fdt rm /mesonstream; fdt rm /vdec; fdt rm /ppmgr; fi
  77. if test "${hdmioutput}" = "0"; then fdt rm /mesonfb; fi
  78. bootm 0x21000000 0x22000000 0x21800000"