Add MXQ target. Copy HDMI fix from odroid-c1.

This commit is contained in:
Dominik Wójt
2024-10-31 14:55:39 +01:00
committed by Igor
parent 222c875761
commit 2bf71e2fda
3 changed files with 140 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
# TODO: extract dtb file name to config script
# TODO: support for boot from usb
setenv rootdev "LABEL=armbi_root"
setenv rootfstype "ext4"
# Default Console Device Setting
setenv console "both"
setenv verbosity "1"
# Enable/Disable USB autosuspend (seems broken on current (6.x) kernels)
# 0 = disabled
# 1 = enabled
setenv usb_autosuspend "0"
###########################################
if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=tty1"; fi
if test "${console}" = "serial" || test "${console}" = "both"; then setenv consoleargs "console=ttyAML0,115200n8 ${consoleargs}"; fi
setenv consoleargs "${consoleargs} no_console_suspend consoleblank=0"
if test "${usb_autosuspend}" = "0"; then setenv extraargs "usbcore.autosuspend=-1"; fi
# Boot Arguments
setenv bootargs "root=${rootdev} rootwait rw ${consoleargs} rootfstype=${rootfstype} loglevel=${verbosity} ${extraargs}"
# Booting
fatload mmc 0:1 0x20800000 uImage
fatload mmc 0:1 0x22000000 uInitrd
fatload mmc 0:1 0x21800000 dtb/meson8b-mxq.dtb
bootm 0x20800000 0x22000000 0x21800000