]> git.ipfire.org Git - thirdparty/openwrt.git/commit
armsr: add patch (hack) to enable all "default" consoles
authorMathew McBride <matt@traverse.com.au>
Thu, 16 Jan 2025 01:20:56 +0000 (12:20 +1100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 31 Aug 2025 16:30:08 +0000 (18:30 +0200)
commit20271bf505cf3b37527ec90d0c3dc173d6b6efac
treef1b3945dc87706e99f28ae6d4b452cc10df813b2
parenta65ca44cb7a3e6fbb43b230c7c5a0684d88bae8b
armsr: add patch (hack) to enable all "default" consoles

A previous change added 'console=tty1' to the default kernel command
line on armsr, in order to ensure the framebuffer console is enabled
on systems capable of graphics output.

Unfortunately, this change broke boards that used device tree
(DT) firmware with serial consoles, as the serial console
specified by the system firmware (stdout-path) was no longer
setup by the kernel.

A bit of probing determined that the SPCR (serial port console
direction table) on ACPI systems was preventing Linux from setting
up a default framebuffer console on these systems (which is why
console=tty1 was added).

(The affected ACPI systems are usually VMs using QEMU's
'virt' machine and EDK2 firmware. The firmware on these systems
does not remove the SPCR when a screen is present)

So to ensure all possible systems are setup correctly, we modify
the kernel so all "default" console types (serial and screen)
are setup when no console= arguments are specified on the kernel
command line.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Fixes: c099523d66a3 ("use console=tty1 to make console more
readily available")
Link: https://github.com/openwrt/openwrt/pull/17012
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 3697022ce34cb6be196d62f1dbdf677bf6cabc22)
Link: https://github.com/openwrt/openwrt/pull/19894
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/armsr/patches-6.6/300-printk-always-setup-default-consoles.patch [new file with mode: 0644]