Files
build/config/bootscripts/boot-odroid-c1.ini
kernelzru 9d8eb46572 Update boot-odroid-c1.ini
-Clean, remove params for old kernel
-Add option to disable usb autosuspend
-Add display console
2024-05-19 19:42:05 +02:00

30 lines
1.0 KiB
INI

ODROIDC-UBOOT-CONFIG
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-odroidc1.dtb
bootm 0x20800000 0x22000000 0x21800000