Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/boards/aml-t95z-plus.tvb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BOOTPATCHDIR="v2024.04/board_t95z" # This has a 000.patching_config.yaml inside,

# Use extlinux and u-boot-menu extension
declare -g SRC_EXTLINUX="yes"
declare -g SRC_CMDLINE="loglevel=7 splash=verbose console=ttyAML0,115200" # Those boards are serial-debug only; 'root=LABEL=armbi_root' ?
declare -g SRC_CMDLINE="loglevel=7 console=ttyAML0,115200" # Those boards are serial-debug only; 'root=LABEL=armbi_root' ?
enable_extension "u-boot-menu" # this generates the extlinux.conf

# Use the blobs for not-exactly-matching SBCs which are also S912. Note: the VIM2 blobs expect DDR4 and fails with "DDR4 chl: Rank0+1 @ 1008MHz" last message.
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-cubox.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

setenv bootargs "root=${rootdev} rootfstype=${rootfstype} rootwait ${consoleargs} consoleblank=0 video=mxcfb0:dev=hdmi,${disp_mode},if=RGB24,bpp=32 coherent_pool=2M cma=256M@2G rd.dm=0 rd.luks=0 rd.lvm=0 raid=noautodetect pci=nomsi vt.global_cursor_default=0 loglevel=${verbosity} usb-storage.quirks=${usbstoragequirks} ${extraargs}"
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-generic.cmd.template
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fi
if test "${bootlogo}" = "true" ; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

part uuid ${devtype} ${devnum}:${distro_bootpart} l_ubootpart
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-genio.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${consoleargs} consoleblank=0 loglevel=${verbosity} ubootpart=${partuuid} usb-storage.quirks=${usbstoragequirks} ${extraargs} ${extraboardargs}"
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-meson-gx.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if test "${console}" = "serial"; then setenv consoleargs "console=ttyAML0,115200
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi
if test "${disable_vu7}" = "false"; then setenv usbhidquirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi

Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-meson-s4t7.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fi
if test "${bootlogo}" = "true"; then
setenv plymouthargs "splash plymouth.ignore-serial-consoles"
else
setenv plymouthargs "splash=verbose"
setenv plymouthargs ""
fi

setenv bootargs "${bootargs} root=${rootdev} rootfstype=${rootfstype} rw fsck.repair=yes rootwait ${consoleargs} partition_type=generic loglevel=${verbosity} ${plymouthargs} ${extraargs} ${extraboardargs}"
Expand Down
4 changes: 2 additions & 2 deletions config/bootscripts/boot-meson64.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ if test -e ${devtype} ${devnum} ${prefix}zImage; then
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${consoleargs} consoleblank=0 coherent_pool=2M loglevel=${verbosity} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a55=${max_freq_a55} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan} ${hid_quirks} monitor_onoff=${monitor_onoff} ${cec_enable} sdrmode=${sdrmode}"
Expand All @@ -135,7 +135,7 @@ else
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi
if test "${disable_vu7}" = "false"; then setenv usbhidquirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi

Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-mvebu.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fi
if test "${bootlogo}" = "true" ; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

part uuid ${devtype} ${devnum}:${distro_bootpart} l_ubootpart
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-nuvoton-ma35d1.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fi
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

# MA35D1 specific: limit kernel memory if needed (for OP-TEE reserved memory)
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-odroid-xu4.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if test "${console}" = "serial" || test "${console}" = "both"; then setenv conso
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

setenv bootrootfs "${consoleargs} consoleblank=0 loglevel=${verbosity} root=${rootdev} rootfstype=${rootfstype} rootwait rw"
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-onecloud.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if test -n "${consoleargs}"; test $? != 0; then
if test "${bootlogo}" = "true"; then
setenv consoleargs "${consoleargs} splash plymouth.ignore-serial-consoles"
else
setenv consoleargs "${consoleargs} splash=verbose"
setenv consoleargs "${consoleargs}"
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-qemu.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

setenv bootargs "root=${rootdev} rw rootdelay=5 rootwait rootfstype=${rootfstype} ${consoleargs} loglevel=7 apparmor=0 nousb selinux=0 ${extraargs} ${extraboardargs}"
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-qrb2210.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if test "${console}" = "serial" || test "${console}" = "both"; then setenv conso
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

# get PARTUUID of partition the boot script was loaded from
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-rk322x.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if test "${devtype}" = "mmc"; then part uuid mmc ${devnum}:1 partuuid; fi
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

setenv bootargs "earlyprintk root=${rootdev} console=ttyS2,115200n8 console=tty1 rootwait rootfstype=${rootfstype} ${consoleargs} consoleblank=0 loglevel=${verbosity} ubootpart=${partuuid} usb-storage.quirks=${usbstoragequirks} ${extraargs} ${extraboardargs}"
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-rk3506.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

# get PARTUUID of first partition on SD/eMMC the boot script was loaded from
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-rk3576.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

# get PARTUUID of first partition on SD/eMMC the boot script was loaded from
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-rk35xx.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

# get PARTUUID of first partition on SD/eMMC the boot script was loaded from
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-rockchip.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

# get PARTUUID of first partition on SD/eMMC the boot script was loaded from
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-rockchip64-ttyS0.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

# get PARTUUID of first partition on SD/eMMC the boot script was loaded from
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-rockchip64.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

# get PARTUUID of first partition on SD/eMMC the boot script was loaded from
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-sun50i-next.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ if test "${console}" = "serial"; then setenv consoleargs "console=ttyS0,115200";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

# get PARTUUID of first partition on SD/eMMC it was loaded from
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-sun50iw9.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if test "${console}" = "serial"; then setenv consoleargs "console=ttyS0,115200";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

# get PARTUUID of first partition on SD/eMMC it was loaded from
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-sunxi.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${consoleargs} hdmi.audio=EDID:0 disp.screen0_output_mode=${disp_mode} consoleblank=0 loglevel=${verbosity} ubootpart=${partuuid} ubootsource=${devtype} usb-storage.quirks=${usbstoragequirks} ${extraargs} ${extraboardargs}"
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-udoo.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}";
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

setenv bootargs "root=${rootdev} rootfstype=${rootfstype} rootwait ${consoleargs} video=mxcfb0:dev=hdmi,${disp_mode},if=RGB24,bpp=32 rd.dm=0 rd.luks=0 rd.lvm=0 raid=noautodetect pci=nomsi ahci_imx.hotplug=1 vt.global_cursor_default=0 loglevel=${verbosity} usb-storage.quirks=${usbstoragequirks} ${extraargs}"
Expand Down
2 changes: 1 addition & 1 deletion config/bootscripts/boot-xpressreal-t3.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if test "${earlycon}" = "on"; then setenv consoleargs "earlycon=uart8250,mmio32,
if test "${bootlogo}" = "true"; then
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
else
setenv consoleargs "splash=verbose ${consoleargs}"
setenv consoleargs "${consoleargs}"
fi

# get PARTUUID of first partition on SD/eMMC the boot script was loaded from
Expand Down
16 changes: 12 additions & 4 deletions extensions/grub-riscv64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,17 @@ configure_grub() {
[[ -n "$SERIALCON" ]] &&
GRUB_CMDLINE_LINUX_DEFAULT+=" console=${SERIALCON}"

[[ "$BOOT_LOGO" == "yes" || "$BOOT_LOGO" == "desktop" && "$BUILD_DESKTOP" == "yes" ]] &&
GRUB_CMDLINE_LINUX_DEFAULT+=" quiet splash plymouth.ignore-serial-consoles i915.force_probe=* loglevel=3" ||
GRUB_CMDLINE_LINUX_DEFAULT+=" splash=verbose i915.force_probe=*"
# Kernel cmdline. Always pass the graphical-Plymouth flags
# regardless of whether this image is being built as CLI or
# desktop — same reasoning as in extensions/grub.sh: users
# add a desktop later via armbian-config and we can't
# regenerate grub.cfg from there. Plymouth handles the
# "no theme installed" / "no DRM" cases gracefully.
# (No i915.force_probe here — that's an x86 Intel-graphics
# driver knob and is meaningless on riscv64. No 'quiet' /
# 'loglevel=3' either: kernel boot messages stay visible
# underneath the splash so users can see what's happening.)
GRUB_CMDLINE_LINUX_DEFAULT+=" splash plymouth.ignore-serial-consoles"

# Enable Armbian Wallpaper on GRUB
if [[ "${VENDOR}" == Armbian ]]; then
Expand All @@ -135,7 +143,7 @@ configure_grub() {
GRUB_DISTRIBUTOR="${UEFI_GRUB_DISTRO_NAME}" # On GRUB menu will show up as "Armbian GNU/Linux" (will show up in some UEFI BIOS boot menu (F8?) as "armbian", not on others)
GRUB_DISABLE_OS_PROBER=false # Have to be explicit about enabling os-prober
GRUB_GFXMODE=1024x768
GRUB_GFXPAYLOAD=keep
GRUB_GFXPAYLOAD_LINUX=text # See extensions/grub.sh — correct var name is GRUB_GFXPAYLOAD_LINUX, not GRUB_GFXPAYLOAD, and 'text' disables Ubuntu's vt.handoff=7 injection.
GRUB_DISABLE_UUID=false # Be explicit about wanting UUID
GRUB_DISABLE_LINUX_UUID=false # Be explicit about wanting UUID
grubCfgFrag
Expand Down
28 changes: 24 additions & 4 deletions extensions/grub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,29 @@ configure_grub() {
[[ -n "$SERIALCON" ]] &&
GRUB_CMDLINE_LINUX_DEFAULT+=" console=${SERIALCON}"

[[ "$BOOT_LOGO" == "yes" || "$BOOT_LOGO" == "desktop" && "$BUILD_DESKTOP" == "yes" ]] &&
GRUB_CMDLINE_LINUX_DEFAULT+=" quiet splash plymouth.ignore-serial-consoles i915.force_probe=* loglevel=3" ||
GRUB_CMDLINE_LINUX_DEFAULT+=" splash=verbose i915.force_probe=*"
# Kernel cmdline. We always pass the graphical-Plymouth flags
# (splash plymouth.ignore-serial-consoles) on UEFI x86,
# regardless of whether this image is being built as CLI or
# desktop. Two reasons:
# 1. Users routinely add a desktop later via armbian-config
# and we don't want that to require regenerating grub.cfg.
# The .cfg is baked once at image-build time and stays
# put across desktop installs.
# 2. Plymouth handles the "no theme installed" / "no DRM"
# cases gracefully — the flags are harmless on a CLI
# install. They are NOT harmless when wrong: the previous
# 'splash=verbose' value was rejected by the kernel
# ("Unknown kernel command line parameters splash=verbose"
# in dmesg) AND interpreted by Plymouth as "render the
# verbose/text theme", so a desktop installed later still
# booted to a black/text screen.
#
# Deliberately NO 'quiet' and NO 'loglevel=3' here. Plymouth
# still draws the splash on top of the kernel boot messages,
# but the messages remain visible underneath so users can see
# what their system is doing. Press Esc during boot to drop
# the splash and read the messages directly.
GRUB_CMDLINE_LINUX_DEFAULT+=" splash plymouth.ignore-serial-consoles i915.force_probe=*"

# Enable Armbian Wallpaper on GRUB
if [[ "${VENDOR}" == Armbian ]]; then
Expand All @@ -290,7 +310,7 @@ configure_grub() {
GRUB_DISABLE_SUBMENU=y # Do not put all kernel options into a submenu, instead, list them all on the main menu.
GRUB_DISABLE_OS_PROBER=false # Have to be explicit about enabling os-prober
GRUB_FONT="/usr/share/grub/unicode.pf2" # Be explicit about the font to use so Ubuntu does not freak out and mess gfxterm
GRUB_GFXPAYLOAD=keep
GRUB_GFXPAYLOAD_LINUX=text # Note the correct var name is GRUB_GFXPAYLOAD_LINUX, not GRUB_GFXPAYLOAD (the latter is silently ignored). The 'text' value disables Ubuntu's vt.handoff=7 injection: Ubuntu's grub2 10_linux only expands 'vt.handoff=7' inside grub.cfg's gfxmode function when the gfxpayload arg is exactly 'keep'. Setting it to 'text' makes the runtime check fail and the framebuffer console stays bound to fbcon for the entire userspace lifetime — which is what we want, otherwise after Plymouth quits on a CLI install (or after the user uninstalls the desktop), the kernel hands the framebuffer to VT7 waiting for an X server, nothing ever claims it, and the local console goes black even though getty@tty1 is running.
GRUB_DISABLE_UUID=false # Be explicit about wanting UUID
GRUB_DISABLE_LINUX_UUID=false # Be explicit about wanting UUID
grubCfgFrag
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
[Service]
TTYVTDisallocate=no
# Drop the upstream --noclear from ExecStart so agetty wipes the
# screen before painting its issue/login banner. Without this
# override, kernel boot messages stay visible above the login
# prompt on tty1 — Plymouth ran (so we expected a clean screen)
# but agetty's default --noclear preserves whatever was on the
# console at handoff time. The empty ExecStart= line is required
# by systemd to clear the inherited value before we set the new
# one.
ExecStart=
ExecStart=-/sbin/agetty -o '-p -- \\u' - $TERM
Loading