mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add MXQ target. Copy HDMI fix from odroid-c1.
This commit is contained in:
30
config/bootscripts/boot-aml-s805-mxq.cmd
Normal file
30
config/bootscripts/boot-aml-s805-mxq.cmd
Normal 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
|
||||
Reference in New Issue
Block a user