openwrt/target/linux
Mark Mentovai cddda1d44d x86: enable console keyboard
The kernel support necessary to use a console keyboard was not built on
x86, affecting real and virtual machines alike. The console keyboard
would function properly in GRUB, but would not work at all once Linux
booted. It appeared that the console was intended to work because
console video appeared on the display, including prompts to enter
failsafe or select the debug log level from the keyboard, and the prompt
to "Press Enter to activate this console", but there was no way to
provide input to it. All keystrokes were ignored.

This enables several kernel configuration options to enable HID and USB
HID support (CONFIG_HID, CONFIG_HID_SUPPORT, CONFIG_HID_GENERIC, and
CONFIG_USB_HID), making the keyboard functional. For alignment with
armsr, CONFIG_USB_HIDDEV is also added, although not strictly necessary
for keyboard support. Note that this change also causes
CONFIG_HID_HYPERV_MOUSE to be enabled for x86/64 and x86/generic: it was
already set in these subarchitectures' kernel configurations, but was
ineffective due to CONFIG_HID being absent.

The omission of keyboard support on x86 may not have been widely noticed
because USB HID is not used on production OpenWrt x86 machines such as
pc-engines,apu2 which only have a serial console, or with the default
x86 configuration used by scripts/qemustart, which uses -nographic and
does not configure a virtual physical console but instead uses a serial
console.

This configuration change results in, for x86_64, +40kB in kernel.bin
and just over +40kB in gzip-compressed "combined" images. This should
not be a problem for the non-storage-constrained x86 target.

Until 2a86425de1, CONFIG_HID, CONFIG_USB_HID, and CONFIG_USB_HIDDEV
were set in the target-level kernel configuration, and
CONFIG_HID_GENERIC was set at the subtarget level. These are
reintroduced strictly at the subtarget level by request. This applies to
the 64, generic, and legacy subtargets, omitting geode.

Fixes: https://github.com/openwrt/openwrt/issues/16157
Signed-off-by: Mark Mentovai <mark@mentovai.com>
Link: https://github.com/openwrt/openwrt/pull/16208
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-08-21 12:15:21 +02:00
..
airoha airoha: drop kernel 6.1 support 2024-06-05 09:34:06 +02:00
apm821xx kernel: rtl8367b: use realtek,extif property 2024-08-06 00:34:14 +02:00
archs38 archs38: enable features rootfs-part 2024-08-07 10:29:36 +02:00
armsr kernel: Enable CONFIG_ARM64_PAN to restrict kernel access to user space memory 2024-08-21 00:21:05 +02:00
at91 at91: 5.15: remove old config and patch files 2024-04-28 17:50:37 +02:00
ath79 kernel: bump 6.6 to 6.6.46 2024-08-20 23:41:08 +02:00
bcm27xx kernel: Enable CONFIG_ARM64_PAN to restrict kernel access to user space memory 2024-08-21 00:21:05 +02:00
bcm47xx generic: 6.6: add backported bmips CBR patches 2024-08-06 14:06:09 +02:00
bcm53xx bcm53xx: refresh 6.6 kernel patches 2024-08-19 20:39:03 +02:00
bcm4908 kernel: bump 6.1 to 6.1.105 2024-08-20 23:45:07 +02:00
bmips bmips: bcm6328: add support for D-Link DSL-2750B rev B1 2024-08-20 16:19:11 +02:00
d1 d1: drop 6.1 support 2024-05-29 17:56:28 +02:00
gemini kernel: bump 6.6 to 6.6.33 and adjust subarches 2024-06-15 22:44:06 +02:00
generic kernel: Enable CONFIG_ARM64_PAN to restrict kernel access to user space memory 2024-08-21 00:21:05 +02:00
imx imx: drop 6.1 support 2024-08-12 20:59:06 +02:00
ipq40xx ipq40xx: Drop nand features from Chromium image 2024-08-02 19:54:38 +02:00
ipq806x ipq806x: 6.6: enable at803x driver 2024-06-27 17:11:40 +02:00
ixp4xx ixp4xx: Add back support for D-Link DSM G600 A 2024-05-25 09:17:19 +02:00
kirkwood kirkwood: remove 6.1 support 2024-08-01 17:10:15 +02:00
lantiq kernel: bump 6.6 to 6.6.45 and update config-6.6 2024-08-13 00:34:16 +02:00
layerscape kernel: Enable CONFIG_ARM64_PAN to restrict kernel access to user space memory 2024-08-21 00:21:05 +02:00
loongarch64 kernel: bump 6.6 to 6.6.33 and adjust subarches 2024-06-15 22:44:06 +02:00
malta malta: enable VM targets again 2024-06-30 22:00:03 +02:00
mediatek kernel: bump 6.6 to 6.6.46 2024-08-20 23:41:08 +02:00
mpc85xx mpc85xx: panda: use DSA B53 driver 2024-08-19 18:42:45 +02:00
mvebu mvebu: GL-MV1000: let u-boot-env be writable again 2024-08-06 21:46:25 +02:00
mxs mxs: drop 6.1 support 2024-04-25 14:33:22 +02:00
octeon octeon: ubnt-edgerouter: Disable PCIe 2024-07-28 19:34:30 +02:00
omap omap: re-enable target 2024-07-17 23:27:50 +02:00
pistachio pistachio: Fix setting mtd name 2024-07-01 00:46:16 +02:00
qoriq qoriq: use 6.1 by default and drop 5.15 2024-06-21 20:27:53 +02:00
qualcommax kernel: bump 6.6 to 6.6.45 and update config-6.6 2024-08-13 00:34:16 +02:00
ramips kernel: bump 6.6 to 6.6.46 2024-08-20 23:41:08 +02:00
realtek realtek: Trap LLDP packets to the CPU 2024-05-10 16:03:51 +02:00
rockchip kernel: Enable CONFIG_ARM64_PAN to restrict kernel access to user space memory 2024-08-21 00:21:05 +02:00
sifiveu sifiveu: drop 6.1 support 2024-04-30 11:02:48 +02:00
starfive kernel: bump 6.1 to 6.1.96 2024-07-04 22:02:47 +02:00
sunxi kernel: bump 6.6 to 6.6.44 2024-08-06 00:40:42 +02:00
tegra tegra: promote kernel 6.6 as default 2024-07-13 14:29:16 +02:00
uml uml: fix glibc-static check with GCC14 2024-06-22 22:06:06 +02:00
x86 x86: enable console keyboard 2024-08-21 12:15:21 +02:00
zynq zynq: drop 6.1 support 2024-08-03 11:36:59 +02:00
Makefile linux: add dtb makefile target to targets list 2024-02-08 23:04:55 +01:00