boot.ini.multi 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. #ODROIDXU-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 "600"
  8. # ===============================================================
  9. # Menu item to boot if no key is pressed ("1" ~ "8") =
  10. # ------------------------------------------------------------- =
  11. setenv DEFAULT_OS "1"
  12. #
  13. # ===============================================================
  14. # U-Boot Parameters
  15. setenv initrd_high "0xffffffff"
  16. setenv fdt_high "0xffffffff"
  17. # Mac address configuration
  18. setenv macaddr "00:1e:06:61:7a:39"
  19. setenv bootdev "0:1";
  20. setenv boot_mmc_type "unknown";
  21. setenv mmc_boot_device 9
  22. # ===================================================================================
  23. # ==== Get some info about boot device ====
  24. # ==== Only when booting from multiboot prepared card the values wil be returned ====
  25. # ===================================================================================
  26. mmc list
  27. mmc dev
  28. # ==========================================================================================================================
  29. # | Inserted | ------------------------------------------------------------------------------------------------------ |
  30. # | emmc | sdcard | switch | boot_mmc0_dev | boot_mmc0_type | boot_mmc1_dev | boot_mmc1_type | mmc_boot_device | boot_from |
  31. # ==========================================================================================================================
  32. # | yes | no | SD | - | ---- | - | ---- | - | ---- |
  33. # --------------------------------------------------------------------------------------------------------------------------
  34. # | yes | no | EMMC | 0 | eMMC | 1 | none | 0 | emmc |
  35. # --------------------------------------------------------------------------------------------------------------------------
  36. # | no | yes | SD | 0 | SD | 1 | none | 0 | sdcard |
  37. # --------------------------------------------------------------------------------------------------------------------------
  38. # | no | yes | EMMC | - | ---- | - | ---- | - | ---- |
  39. # --------------------------------------------------------------------------------------------------------------------------
  40. # | yes | yes | SD | 0 | SD | 1 | eMMC | 1 | emmc |!!
  41. # --------------------------------------------------------------------------------------------------------------------------
  42. # | yes | yes | EMMC | 0 | eMMC | 1 | SD | 1 | sdcard |!!
  43. # ==========================================================================================================================
  44. # =========================================================
  45. # When mmc_boot_device=1 we have to load from 1:1 device !!
  46. # =========================================================
  47. if test "${mmc_boot_device}" = "0"; then
  48. setenv bootdev "0:1";
  49. setenv boot_mmc_type "${boot_mmc0_type}";
  50. elif test "${mmc_boot_device}" = "1"; then
  51. setenv bootdev "1:1";
  52. setenv boot_mmc_type "${boot_mmc1_type}";
  53. fi
  54. # =========================================================
  55. echo "BOOT FROM: ${mmc_boot_device}:${boot_mmc_type}"
  56. #----------------------------------------
  57. # Set boot variables for kernel/initramfs
  58. #----------------------------------------
  59. setenv bootrootfs "console=tty0 quiet boot_card_type=${boot_mmc_type} boot_card_dev=${mmc_boot_device} instdelay=${INST_DELAY} default_boot=${DEFAULT_OS} no_console_suspend loglevel=0}"
  60. # boot commands
  61. setenv bootcmd "fatload mmc ${bootdev} 0x40008000 multiboot/zImage.multi; fatload mmc ${bootdev} 0x42000000 multiboot/uInitrd.multi; fatload mmc ${bootdev} 0x44000000 multiboot/exynos5422-odroidxu3.dtb.multi; bootz 0x40008000 0x42000000 0x44000000"
  62. # --- Screen Configuration for HDMI --- #
  63. # ---------------------------------------
  64. # Uncomment only ONE line! Leave all commented for automatic selection.
  65. # Uncomment only the setenv line!
  66. # ---------------------------------------
  67. # ODROID-VU forced resolution
  68. # setenv videoconfig "video=HDMI-A-1:1280x800@60"
  69. # -----------------------------------------------
  70. # ODROID-VU forced EDID
  71. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x800.bin"
  72. # -----------------------------------------------
  73. # 1920x1080 (1080P) with monitor provided EDID information. (1080p-edid)
  74. # setenv videoconfig "video=HDMI-A-1:1920x1080@60"
  75. # -----------------------------------------------
  76. # 1920x1080 (1080P) without monitor data using generic information (1080p-noedid)
  77. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080.bin"
  78. # -----------------------------------------------
  79. # 1920x1080 50hz (1080P) with monitor provided EDID information. (1080p 50hz-edid)
  80. # setenv videoconfig "video=HDMI-A-1:1920x1080@50"
  81. # -----------------------------------------------
  82. # 1920x1080 50hz (1080P) without monitor data using generic information (1080p 50hz-noedid)
  83. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080_50hz.bin"
  84. # -----------------------------------------------
  85. # 1440x900 with monitor provided EDID information.
  86. # setenv videoconfig "video=HDMI-A-1:1440x900@60"
  87. # -----------------------------------------------
  88. # 1440x900 without monitor data using generic information
  89. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1440x900.bin"
  90. # -----------------------------------------------
  91. # 1280x720 (720P) with monitor provided EDID information. (720p-edid)
  92. # setenv videoconfig "video=HDMI-A-1:1280x720@60"
  93. # -----------------------------------------------
  94. # 1280x720 (720P) without monitor data using generic information (720p-noedid)
  95. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x720.bin"
  96. # -----------------------------------------------
  97. # 1024x768 without monitor data using generic information
  98. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x768.bin"
  99. # -----------------------------------------------
  100. # 800x600 without monitor data using generic information
  101. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/800x600.bin"
  102. # -----------------------------------------------
  103. # 720x576 without monitor data using generic information
  104. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/720x576.bin"
  105. # -----------------------------------------------
  106. # 720x480 without monitor data using generic information
  107. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/720x480.bin"
  108. # -----------------------------------------------
  109. # 640x480 without monitor data using generic information
  110. # setenv videoconfig "drm_kms_helper.edid_firmware=edid/640x480.bin"
  111. # --- CPU Governor Setup ---
  112. # Uncomment only one line. New governor is set after 90secs after boot.
  113. # ------------------------------------------
  114. # - Performance (Keep all the CPU's at Maximum frequency)
  115. setenv governor "performance"
  116. # ------------------------------------------
  117. # - Ondemand
  118. # setenv governor "ondemand"
  119. # ------------------------------------------
  120. # - Interactive (Pretty much just like ondemand with more possible customization via sysfs.)
  121. # setenv governor "interactive"
  122. # ------------------------------------------
  123. # - Conservative (Like ondemand, but do the frequency transitions more slowly, great for battery powered applications)
  124. # setenv governor "conservative"
  125. # ------------------------------------------
  126. # - Powersave (Keeps the CPU's to the lowest possible temps)
  127. # setenv governor "powersave"
  128. # final boot args
  129. setenv bootargs "${bootrootfs} ${videoconfig} smsc95xx.macaddr=${macaddr} governor=${governor}"
  130. # drm.debug=0xff
  131. # Boot the board
  132. boot