188 lines
7.0 KiB
INI
188 lines
7.0 KiB
INI
ODROIDC2-UBOOT-CONFIG
|
|
|
|
setenv rootdev "/dev/mmcblk0p1"
|
|
setenv rootfstype "ext4"
|
|
|
|
# Possible screen resolutions
|
|
# Uncomment only a single Line! The line with setenv written.
|
|
# At least one mode must be selected.
|
|
|
|
# Custom modeline!
|
|
# To use custom modeline you need to disable all the below resolutions
|
|
# and setup your own!
|
|
# For more information check our wiki:
|
|
# http://odroid.com/dokuwiki/doku.php?id=en:c2_hdmi_autosetting
|
|
# Example below:
|
|
# setenv m "custombuilt"
|
|
# setenv modeline "1920,1200,154000,74040,60,1920,1968,2000,2080,1200,1202,1208,1235,1,0,1"
|
|
|
|
# Auto Detection of Monitor settings based on your Screen information
|
|
# See: http://odroid.com/dokuwiki/doku.php?id=en:c2_auto_detect_display
|
|
setenv display_autodetect "true"
|
|
|
|
# 480 Lines (720x480)
|
|
# setenv m "480i60hz" # Interlaced 60Hz
|
|
# setenv m "480i_rpt" # Interlaced for Rear Projection Televisions 60Hz
|
|
# setenv m "480p60hz" # 480 Progressive 60Hz
|
|
# setenv m "480p_rpt" # 480 Progressive for Rear Projection Televisions 60Hz
|
|
|
|
# 576 Lines (720x576)
|
|
# setenv m "576i50hz" # Interlaced 50Hz
|
|
# setenv m "576i_rpt" # Interlaced for Rear Projection Televisions 50Hz
|
|
# setenv m "576p50hz" # Progressive 50Hz
|
|
# setenv m "576p_rpt" # Progressive for Rear Projection Televisions 50Hz
|
|
|
|
# 720 Lines (1280x720)
|
|
# setenv m "720p50hz" # 50Hz
|
|
# setenv m "720p60hz" # 60Hz
|
|
|
|
# 1080 Lines (1920x1080)
|
|
# setenv m "1080i60hz" # Interlaced 60Hz
|
|
setenv m "1080p60hz" # Progressive 60Hz
|
|
# setenv m "1080i50hz" # Interlaced 50Hz
|
|
# setenv m "1080p50hz" # Progressive 50Hz
|
|
# setenv m "1080p24hz" # Progressive 24Hz
|
|
|
|
# 4K (3840x2160)
|
|
# setenv m "2160p30hz" # Progressive 30Hz
|
|
# setenv m "2160p25hz" # Progressive 25Hz
|
|
# setenv m "2160p24hz" # Progressive 24Hz
|
|
# setenv m "smpte24hz" # Progressive 24Hz SMPTE
|
|
# setenv m "2160p50hz" # Progressive 50Hz
|
|
# setenv m "2160p60hz" # Progressive 60Hz
|
|
# setenv m "2160p50hz420" # Progressive 50Hz with YCbCr 4:2:0 (Requires TV/Monitor that supports it)
|
|
# setenv m "2160p60hz420" # Progressive 60Hz with YCbCr 4:2:0 (Requires TV/Monitor that supports it)
|
|
|
|
### VESA modes ###
|
|
# setenv m "640x480p60hz"
|
|
# setenv m "800x480p60hz"
|
|
# setenv m "480x320p60hz"
|
|
# setenv m "480x800p60hz"
|
|
# setenv m "800x600p60hz"
|
|
# setenv m "1024x600p60hz"
|
|
# setenv m "1024x768p60hz"
|
|
# setenv m "1280x800p60hz"
|
|
# setenv m "1280x1024p60hz"
|
|
# setenv m "1360x768p60hz"
|
|
# setenv m "1366x768p60hz"
|
|
# setenv m "1440x900p60hz"
|
|
# setenv m "1600x900p60hz"
|
|
# setenv m "1600x1200p60hz"
|
|
# setenv m "1680x1050p60hz"
|
|
# setenv m "1920x1200p60hz"
|
|
# setenv m "2560x1440p60hz"
|
|
# setenv m "2560x1600p60hz"
|
|
# setenv m "2560x1080p60hz"
|
|
# setenv m "3440x1440p60hz"
|
|
|
|
# CEC Enable/Disable
|
|
setenv cec "cecf"
|
|
|
|
# HDMI BPP Mode
|
|
# setenv m_bpp "32"
|
|
setenv m_bpp "24"
|
|
# setenv m_bpp "16"
|
|
|
|
# HDMI DVI/VGA modes
|
|
# By default its set to HDMI, if needed change below.
|
|
# Uncomment only a single Line.
|
|
# setenv vout "dvi"
|
|
# setenv vout "vga"
|
|
|
|
# Display splash logo
|
|
setenv bootlogo "false"
|
|
|
|
# HDMI HotPlug Detection control
|
|
# Allows you to force HDMI thinking that the cable is connected.
|
|
# true = HDMI will believe that cable is always connected
|
|
# false = will let board/monitor negotiate the connection status
|
|
# setenv hpd "true"
|
|
setenv hpd "true"
|
|
|
|
# Monitor output
|
|
# Controls if HDMI PHY should output anything to the monitor
|
|
setenv monitor_onoff "false" # true or false
|
|
|
|
# Server Mode (aka. No Graphics)
|
|
# Setting nographics to 1 will disable all video subsystem
|
|
# This mode is ideal of server type usage. (Saves ~300Mb of RAM)
|
|
setenv nographics "0"
|
|
|
|
# Meson Timer
|
|
# 1 - Meson Timer
|
|
# 0 - Arch Timer
|
|
# Using meson_timer improves the video playback however it breaks KVM (virtualization).
|
|
# Using arch timer allows KVM/Virtualization to work however you'll experience poor video
|
|
setenv mesontimer "1"
|
|
|
|
# UHS (Ultra High Speed) MicroSD mode enable/disable
|
|
setenv disableuhs "false"
|
|
|
|
# MicroSD Card Detection enable/disable
|
|
# Force the MMC controlled to believe that a card is connected.
|
|
setenv mmc_removable "true"
|
|
|
|
# USB Multi WebCam tweak
|
|
# Only enable this if you use it.
|
|
setenv usbmulticam "false"
|
|
|
|
# Disable/Enable ODROID-VU7 Touchscreen
|
|
setenv disable_vu7 "true"
|
|
|
|
# CPU Frequency / Cores control
|
|
###########################################
|
|
### WARNING!!! WARNING!!! WARNING!!!
|
|
# Before changing anything here please read the wiki entry:
|
|
# http://odroid.com/dokuwiki/doku.php?id=en:c2_set_cpu_freq
|
|
#
|
|
# MAX CPU's
|
|
# setenv maxcpus "1"
|
|
# setenv maxcpus "2"
|
|
# setenv maxcpus "3"
|
|
setenv maxcpus "4"
|
|
|
|
# MAX Frequency
|
|
# setenv max_freq "2016" # 2.016GHz
|
|
# setenv max_freq "1944" # 1.944GHz
|
|
# setenv max_freq "1944" # 1.944GHz
|
|
# setenv max_freq "1920" # 1.920GHz
|
|
# setenv max_freq "1896" # 1.896GHz
|
|
# setenv max_freq "1752" # 1.752GHz
|
|
# setenv max_freq "1680" # 1.680GHz
|
|
# setenv max_freq "1656" # 1.656GHz
|
|
setenv max_freq "1536" # 1.536GHz
|
|
|
|
# Default Console Device Setting
|
|
if test -e mmc 0:1 boot/.next; then setenv condev "console=ttyAML0,115200n8"; else setenv condev "console=ttyS0,115200n8 console=tty0"; fi
|
|
|
|
###########################################
|
|
setenv verbosity "1"
|
|
|
|
if test "${bootlogo}" = "true"; then setenv bootsplash "splash plymouth.ignore-serial-consoles"; fi
|
|
|
|
# Boot arguments
|
|
setenv bootargs "root=${rootdev} rootwait rootflags=data=writeback rw rootfstype=${rootfstype} ${condev} no_console_suspend consoleblank=0 hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes loglevel=${verbosity} ${bootsplash} net.ifnames=0 ${extraargs}"
|
|
|
|
# Mainline boot arguments
|
|
if test -e mmc 0:1 boot/.next; then setenv bootargs "root=${rootdev} rootwait rootflags=data=writeback rw rootfstype=${rootfstype} ${condev} no_console_suspend consoleblank=0 fsck.repair=yes loglevel=${verbosity} net.ifnames=0 ${extraargs}"; fi
|
|
|
|
# Booting
|
|
setenv initrd_high "0x60000000"
|
|
setenv loadaddr "0x11000000"
|
|
setenv dtb_loadaddr "0x1000000"
|
|
setenv initrd_loadaddr "0x13000000"
|
|
|
|
ext4load mmc 0:1 ${initrd_loadaddr} /boot/uInitrd || fatload mmc 0:1 ${initrd_loadaddr} uInitrd || ext4load mmc 0:1 ${initrd_loadaddr} uInitrd
|
|
ext4load mmc 0:1 ${loadaddr} /boot/zImage || fatload mmc 0:1 ${loadaddr} zImage || ext4load mmc 0:1 ${loadaddr} zImage
|
|
ext4load mmc 0:1 ${dtb_loadaddr} /boot/dtb/meson64_odroidc2.dtb || fatload mmc 0:1 ${dtb_loadaddr} dtb/meson64_odroidc2.dtb || ext4load mmc 0:1 ${dtb_loadaddr} dtb/meson64_odroidc2.dtb
|
|
ext4load mmc 0:1 ${dtb_loadaddr} /boot/dtb/amlogic/meson-gxbb-odroidc2.dtb
|
|
|
|
fdt addr ${dtb_loadaddr}
|
|
if test "${mesontimer}" = "0"; then fdt rm /meson_timer; fdt rm /cpus/cpu@0/timer; fdt rm /cpus/cpu@1/timer; fdt rm /cpus/cpu@2/timer; fdt rm /cpus/cpu@3/timer; fi
|
|
if test "${mesontimer}" = "1"; then fdt rm /timer; fi
|
|
if test "${nographics}" = "1"; then fdt rm /meson-fb; fdt rm /amhdmitx; fdt rm /picdec; fdt rm /ppmgr; fdt rm /meson-vout; fdt rm /mesonstream; fdt rm /deinterlace; fdt rm /codec_mm; fdt rm /reserved-memory; fdt rm /aocec; fi
|
|
|
|
if test -e mmc 0:1 boot/.next; then ext4load mmc 0:1 ${dtb_loadaddr} boot/dtb/amlogic/meson-gxbb-odroidc2.dtb; fi
|
|
if test -e mmc 0:1 boot/.next; then ext4load mmc 0:1 0x01080000 boot/uImage; fi
|
|
if test -e mmc 0:1 boot/.next; then bootm 0x01080000 ${initrd_loadaddr} ${dtb_loadaddr}; else booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}; fi
|