-
-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
1,949 additions
and
2,184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
ODROIDC-UBOOT-CONFIG | ||
|
||
# HDMI resolution | ||
# - Exactly one line needs to be uncommented! | ||
#setenv m "vga" # 640x480 | ||
#setenv m "480p" # 720x480 | ||
#setenv m "576p" # 720x576 | ||
#setenv m "800x480p60hz" # 800x480 | ||
#setenv m "800x600p60hz" # 800x600 | ||
#setenv m "1024x600p60hz" # 1024x600 | ||
#setenv m "1024x768p60hz" # 1024x768 | ||
#setenv m "1360x768p60hz" # 1360x768 | ||
#setenv m "1440x900p60hz" # 1440x900 | ||
#setenv m "1600x900p60hz" # 1600x900 | ||
#setenv m "1680x1050p60hz" # 1680x1050 | ||
#setenv m "720p" # 720p 1280x720 | ||
#setenv m "800p" # 1280x800 | ||
#setenv m "sxga" # 1280x1024 | ||
#setenv m "1080i50hz" # 1080I@50Hz | ||
#setenv m "1080p24hz" # 1080P@24Hz | ||
#setenv m "1080p50hz" # 1080P@50Hz | ||
setenv m "1080p" # 1080P@60Hz | ||
#setenv m "1920x1200" # 1920x1200 | ||
|
||
# HDMI/DVI selection: "hdmi" or "dvi" | ||
# - DVI mode disables HDMI sound | ||
setenv vout "hdmi" | ||
|
||
# HDMI BPP Mode: "32", "24" or "12" | ||
setenv m_bpp "32" | ||
|
||
# Monitor output: "true" or "false" | ||
# - Controls if HDMI PHY should output anything to the monitor | ||
setenv monitor_onoff "true" | ||
|
||
# HDMI Hot Plug detection | ||
# - "0" disables auto-detection and forces HDMI output. | ||
# - "1" enables HDMI detection based on cable connection (default). | ||
#setenv hpd "0" | ||
|
||
# CEC (requires hardware modification) | ||
# - "0" disables HDMI CEC (default). | ||
# - "1" enables HDMI CEC. | ||
#setenv cec "0" | ||
|
||
# PCM5102 I2S Audio DAC | ||
# - PCM5102 is an I2S Audio DAC addon board for ODROID-C1+ | ||
# - Uncomment the line below to __ENABLE__ support for this addon board. | ||
#setenv enabledac "enabledac" | ||
|
||
# UHS Card Configuration | ||
# - Uncomment the line below to __DISABLE__ UHS-1 Micro SD support | ||
# - This might break boot for some brand models of cards. | ||
#setenv disableuhs "disableuhs" | ||
|
||
|
||
# Disable VPU (Video decoding engine, saves RAM!!!) | ||
# - 0 = disabled | ||
# - 1 = enabled (default) | ||
#setenv vpu "1" | ||
|
||
# Disable HDMI Output (Again, saves RAM!) | ||
# - 0 = disabled | ||
# - 1 = enabled (default) | ||
#setenv hdmioutput "1" | ||
|
||
# Default Console Device Setting | ||
setenv condev "console=ttyAML0,115200n8 console=tty1" | ||
|
||
# ODROID-VU7 touchscreen: "false" or "true", defaults to "true" | ||
#setenv disable_vu7 "false" | ||
|
||
# CPU Max Frequency: 96 192 312 408 504 600 720 816 1008 1200 1320 1488 1536 1632 1728 or 1824 | ||
setenv max_freq "1536" | ||
|
||
### DO NOT EDIT ANYTHING BELOW THIS LINE ### | ||
|
||
if test "${hpd}" = "0"; then setenv hdmi_hpd "disablehpd=true"; fi | ||
if test "${cec}" = "1"; then setenv hdmi_cec "hdmitx=cecf"; fi | ||
if test "${disable_vu7}" = "false"; then setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi | ||
|
||
# Boot arguments | ||
setenv bootargs "root=UUID=0ae78c3b-9579-4a13-8b2d-58ad222f2ca6 rootfstype=ext4 rootwait rw ${condev} loglevel=4 no_console_suspend consoleblank=0 vdaccfg=0xa000 dmfc=3 cvbsmode=576cvbs hdmimode=${m} m_bpp=${m_bpp} vout=${vout} ${disableuhs} ${hdmi_hpd} ${hdmi_cec} ${enabledac} monitor_onoff=${monitor_onoff} max_freq=${max_freq} ${hid_quirks} ${extraargs}" | ||
|
||
# Booting | ||
fatload mmc 0:1 0x20800000 uImage | ||
fatload mmc 0:1 0x22000000 uInitrd | ||
fatload mmc 0:1 0x21800000 dtb/meson8b-odroidc1.dtb | ||
|
||
fdt addr 21800000 | ||
|
||
if test "${vpu}" = "0"; then fdt rm /mesonstream; fdt rm /vdec; fdt rm /ppmgr; fi | ||
if test "${hdmioutput}" = "0"; then fdt rm /mesonfb; fi | ||
|
||
bootm 0x20800000 0x22000000 0x21800000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,220 @@ | ||
ODROIDXU-UBOOT-CONFIG | ||
|
||
# U-Boot parameters | ||
setenv initrd_high "0xffffffff" | ||
setenv fdt_high "0xffffffff" | ||
|
||
# MAC address configuration | ||
setenv macaddr "00:1e:06:61:7a:72" | ||
|
||
# Kernel command-line parameters | ||
setenv bootrootfs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro console=ttySAC2,115200n8 console=tty1 consoleblank=0 fsck.repair=yes net.ifnames=0" | ||
|
||
# HDMI/DVI selection: "hdmi" or "dvi" | ||
# - DVI mode disables HDMI sound | ||
setenv vout "hdmi" | ||
|
||
# HDMI Hot Plug detection: "false" or "true" | ||
# - "true" enables HDMI detection based on cable connection. | ||
# - "false" disables auto-detection and forces HDMI output. | ||
setenv HPD "true" | ||
|
||
# HDMI CEC: "false" or "true", defaults to "true" | ||
#setenv cecenable "false" | ||
|
||
# HDMI resolution | ||
# - Uncomment only ONE line! Leave all commented for automatic selection. | ||
# - Uncomment only the setenv line! | ||
# ----------------------------------------------- | ||
# ODROID-VU forced resolution | ||
#setenv videoconfig "video=HDMI-A-1:1280x800@60" | ||
# ----------------------------------------------- | ||
# ODROID-VU forced EDID | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x800.bin" | ||
# ----------------------------------------------- | ||
# 1920x1200 60hz without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1200_60hz.bin" | ||
# ----------------------------------------------- | ||
# 1920x1200 30hz without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1200_30hz.bin" | ||
# ----------------------------------------------- | ||
# 1920x1080 (1080P) with monitor provided EDID information. (1080p-edid) | ||
#setenv videoconfig "video=HDMI-A-1:1920x1080@60" | ||
# ----------------------------------------------- | ||
# 1920x1080 (1080P) without monitor data using generic information (1080p-noedid) | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080.bin" | ||
# ----------------------------------------------- | ||
# 1920x1080 50hz (1080P) with monitor provided EDID information. (1080p 50hz-edid) | ||
#setenv videoconfig "video=HDMI-A-1:1920x1080@50" | ||
# ----------------------------------------------- | ||
# 1920x1080 50hz (1080P) without monitor data using generic information (1080p 50hz-noedid) | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080_50hz.bin" | ||
# ----------------------------------------------- | ||
# 1920x800 60hz without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x800.bin" | ||
# ----------------------------------------------- | ||
# 1792x1344 60hz without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1792x1344.bin" | ||
# ----------------------------------------------- | ||
# 1680x1050 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1680x1050.bin" | ||
# ----------------------------------------------- | ||
# 1600x1200 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1600x1200.bin" | ||
# ----------------------------------------------- | ||
# 1600x900 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1600x900.bin" | ||
# ----------------------------------------------- | ||
# 1400x1050 60hz without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1400x1050.bin" | ||
# ----------------------------------------------- | ||
# 1440x900 with monitor provided EDID information. | ||
#setenv videoconfig "video=HDMI-A-1:1440x900@60" | ||
# ----------------------------------------------- | ||
# 1440x900 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1440x900.bin" | ||
# ----------------------------------------------- | ||
# 1366x768 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1366x768.bin" | ||
# ----------------------------------------------- | ||
# 1360x768 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1360x768.bin" | ||
# ----------------------------------------------- | ||
# 1280x1024 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x1024.bin" | ||
# ----------------------------------------------- | ||
# 1280x768 60hz without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x768.bin" | ||
# ----------------------------------------------- | ||
# 1280x720 (720P) with monitor provided EDID information. (720p-edid) | ||
#setenv videoconfig "video=HDMI-A-1:1280x720@60" | ||
# ----------------------------------------------- | ||
# 1280x720 (720P) without monitor data using generic information (720p-noedid) | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x720.bin" | ||
# ----------------------------------------------- | ||
# 1152x864 75hz without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1152x864_75hz.bin" | ||
# ----------------------------------------------- | ||
# 1024x768 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x768.bin" | ||
# ----------------------------------------------- | ||
# 1024x600 without monitor data using generic information (ODROID VU7+) | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x600.bin" | ||
# ----------------------------------------------- | ||
# 800x600 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/800x600.bin" | ||
# ----------------------------------------------- | ||
# 848x480 60hz without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/848x480.bin" | ||
# ----------------------------------------------- | ||
# 800x480 without monitor data using generic information (ODROID 7") | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/800x480.bin" | ||
# ----------------------------------------------- | ||
# 720x576 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/720x576.bin" | ||
# ----------------------------------------------- | ||
# 720x480 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/720x480.bin" | ||
# ----------------------------------------------- | ||
# 640x480 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/640x480.bin" | ||
# ----------------------------------------------- | ||
# 480x800 without monitor data using generic information | ||
#setenv videoconfig "drm_kms_helper.edid_firmware=edid/480x800.bin" | ||
# ----------------------------------------------- | ||
|
||
# ODROID-VU7 touchscreen: "false" or "true", defaults to "true" | ||
#setenv disable_vu7 "false" | ||
|
||
# ODROID CloudShell2 TFT LCD and FAN control via I2C bus: "false" or "true", defaults to "false" | ||
#setenv cs2enable "true" | ||
|
||
# Device tree overlays | ||
# - See /boot/dtb/overlays for available overlays: defaults to empty string "" | ||
#setenv overlays "i2c0" | ||
|
||
# CPU governor | ||
# - DietPi will override this setting to user configured in dietpi-config > Performance Options > CPU governor | ||
setenv governor "performance" | ||
|
||
# DDR frequency [MHz]: "933", "825", "728" or "633", defaults to "825" | ||
#setenv ddr_freq "933" | ||
|
||
# TMDS data amplitude control. | ||
# - 1LSB corresponds to 20 mVdiff amplitude level | ||
# - tx_amp_lvl : 0 = 760 mVdiff(Min), 31 = 1380 mVdiff(Max) | ||
# - Hardkernel default: hdmi_tx_amp_lvl = 31(1380 mVdiff) | ||
setenv hdmi_tx_amp_lvl "31" | ||
|
||
# TMDS data amplitude fine control for each channel | ||
# - 1LSB corresponds to 20 mVdiff amplitude level | ||
# - tx_lvl : 0 = 0 mVdiff(Min), 3 = 60 mVdiff(Max) | ||
# - Hardkernel default: hdmi_tx_lvl_ch0=hdmi_tx_lvl_ch1=hdmi_tx_lvl_ch2 = 3 | ||
setenv hdmi_tx_lvl_ch0 "3" | ||
setenv hdmi_tx_lvl_ch1 "3" | ||
setenv hdmi_tx_lvl_ch2 "3" | ||
|
||
# TMDS data pre-emphasis level control | ||
# - 1LSB corresponds to -0.45dB emphasis level except for 1 | ||
# - tx_emp_lvl : 0 = 0 db(Min), 1 = -0.25 db, 2 = 0.7 db, 15 = -7.45 db(Max) | ||
# - Hardkernel default: hdmi_tx_emp_lvl = 6 (-2.50 db) | ||
setenv hdmi_tx_emp_lvl "6" | ||
|
||
# TMDS clock amplitude control | ||
# - 1LSB corresponds to 20 mVdiff amplitude level. | ||
# - clk_amp_lvl : 0 = 790 mVdiff(Min), 31 = 1410 mVdiff(Max) | ||
# - Hardkernel default hdmi_clk_amp_lvl = 31 (1410 mVdiff) | ||
setenv hdmi_clk_amp_lvl "31" | ||
|
||
# TMDS data source termination resistor control | ||
# - tx_res : 0 = Source Termination OFF(Min), 1 = 200 ohm, 2 = 300 ohm, 3 = 120 ohm(Max) | ||
# - Hardkernel default hdmi_tx_res = 0 (Source Termination OFF) | ||
setenv hdmi_tx_res "0" | ||
|
||
### DO NOT EDIT ANYTHING BELOW THIS LINE ### | ||
|
||
setenv hdmi_phy_control "hdmi_tx_amp_lvl=${hdmi_tx_amp_lvl} hdmi_tx_lvl_ch0=${hdmi_tx_lvl_ch0} hdmi_tx_lvl_ch1=${hdmi_tx_lvl_ch1} hdmi_tx_lvl_ch2=${hdmi_tx_lvl_ch2} hdmi_tx_emp_lvl=${hdmi_tx_emp_lvl} hdmi_clk_amp_lvl=${hdmi_clk_amp_lvl} hdmi_tx_res=${hdmi_tx_res} HPD=${HPD} vout=${vout}" | ||
|
||
# Load kernel, initrd and dtb in that sequence | ||
ext4load mmc 0:1 0x40008000 /boot/zImage | ||
ext4load mmc 0:1 0x42000000 /boot/uInitrd | ||
if test "${board_name}" = "xu4"; then setenv fdtfile "exynos5422-odroidxu4.dtb"; fi | ||
if test "${board_name}" = "xu3"; then setenv fdtfile "exynos5422-odroidxu3.dtb"; fi | ||
if test "${board_name}" = "xu3l"; then setenv fdtfile "exynos5422-odroidxu3-lite.dtb"; fi | ||
if test "${board_name}" = "hc1"; then setenv fdtfile "exynos5422-odroidhc1.dtb"; fi | ||
ext4load mmc 0:1 0x44000000 /boot/dtb/${fdtfile} | ||
|
||
# Set FDT address | ||
fdt addr 0x44000000 | ||
|
||
if test "${cecenable}" = "false"; then fdt rm /cec@101B0000; fi | ||
if test "${disable_vu7}" = "false"; then setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi | ||
|
||
# Add overlays for CloudShell | ||
if test "${cs2enable}" = "true"; then | ||
for csoverlay in i2c0 i2c1 hktft-cs-ogst; do | ||
setenv match "false" | ||
for overlay in ${overlays}; do | ||
if test "${overlay}" = "${csoverlay}"; then setenv match "true"; fi | ||
done | ||
if test "${match}" = "false"; then setenv overlays "${overlays} ${csoverlay}"; fi | ||
done | ||
fi | ||
|
||
# Load device tree overlays | ||
if test "x${overlays}" != "x"; then | ||
fdt resize 8192 | ||
for overlay in ${overlays}; do | ||
ext4load mmc 0:1 0x60000000 /boot/dtb/overlays/${overlay}.dtbo | ||
fdt apply 0x60000000 | ||
done | ||
fi | ||
|
||
# Set DDR frequency | ||
if test "x${ddr_freq}" != "x"; then dmc "${ddr_freq}"; fi | ||
|
||
# Final boot args (DRM debugging: drm.debug=0xff) | ||
setenv bootargs "${bootrootfs} ${videoconfig} smsc95xx.macaddr=${macaddr} governor=${governor} ${hdmi_phy_control} ${hid_quirks}" | ||
|
||
# Boot the board | ||
bootz 0x40008000 0x42000000 0x44000000 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.