diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml index ed2498882..2f175f9c8 100644 --- a/chapter10/kernel.xml +++ b/chapter10/kernel.xml @@ -255,71 +255,6 @@ - - - - Display a user-friendly message when a kernel panic occurs - - - - This will make the kernel correctly display the message - in case a kernel panic happens and a running DRM driver - supports to do so. Without this, it would be more - difficult to diagnose a panic: if no DRM driver is running, - we'd be on the VGA console which can only hold 24 lines and - the relevant kernel message is often flushed away; if a DRM - driver is running, the display is often completely messed up - on panic. As of Linux-6.12, none of the dedicated drivers for - mainstream GPU models really supports this, but it's supported by - the Simple framebuffer driver which runs on the - VESA (or EFI) framebuffer before the dedicated GPU driver is - loaded. If the dedicated GPU driver is built as a module - (instead of a part of the kernel image) and no initramfs is - used, this functionality will work just fine before the root - file system is mounted and it's already enough for providing - information about most LFS configuration errors causing a - panic (for example, an incorrect root= - setting in the kernel command line). - - - - - - - Panic screen formatter - - - - Set this kmsg to make sure the last - kernel messages lines are displayed when a kernel panic happens. - The default, user, would make the kernel show - only a user friendly panic message which is not - helpful on diagnostic. The third choice, - qr_code, would make the kernel to compress - the last kernel message lines into a QR code and display it. - The QR code can hold more message lines than plain text and it - can be decoded with an external device (like a smart phone). - But it requires a Rust compiler that LFS does not provide. - - - - - - - Mark VGA/VBE/EFI FB as generic system framebuffer - and - Simple framebuffer driver - - - These allow to use the VESA framebuffer (or the EFI - framebuffer if booting the LFS system via UEFI) as a DRM device. - The VESA framebuffer will be set up by GRUB (or the EFI - framebuffer will be set up by the UEFI firmware), so the DRM panic - handler can function before the GPU-specific DRM driver is - loaded. - - - diff --git a/chapter10/kernel/systemd.toml b/chapter10/kernel/systemd.toml index 387a74b66..649df88d4 100644 --- a/chapter10/kernel/systemd.toml +++ b/chapter10/kernel/systemd.toml @@ -15,8 +15,6 @@ DEVTMPFS='*' DEVTMPFS_MOUNT='*' SYSFB_SIMPLEFB='*' DRM='*' -DRM_PANIC='*' -DRM_PANIC_SCREEN='kmsg' DRM_FBDEV_EMULATION='*' DRM_SIMPLEDRM='*' FRAMEBUFFER_CONSOLE='*' diff --git a/chapter10/kernel/systemd.xml b/chapter10/kernel/systemd.xml index af52f3427..b9879b9cf 100644 --- a/chapter10/kernel/systemd.xml +++ b/chapter10/kernel/systemd.xml @@ -46,13 +46,10 @@ Graphics support ---> <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> ... [DRM] - [*] Display a user-friendly message when a kernel panic occurs - ... [DRM_PANIC] - (kmsg) Panic screen formatter [DRM_PANIC_SCREEN] Supported DRM clients ---> [*] Enable legacy fbdev support for your modesetting driver ... [DRM_FBDEV_EMULATION] - <*> Simple framebuffer driver [DRM_SIMPLEDRM] + <*> Simple framebuffer driver [DRM_SIMPLEDRM] Console display driver support ---> [*] Framebuffer Console support [FRAMEBUFFER_CONSOLE] diff --git a/chapter10/kernel/sysv.toml b/chapter10/kernel/sysv.toml index c8267a303..5f6812821 100644 --- a/chapter10/kernel/sysv.toml +++ b/chapter10/kernel/sysv.toml @@ -14,8 +14,6 @@ DEVTMPFS='*' DEVTMPFS_MOUNT='*' SYSFB_SIMPLEFB='*' DRM='*' -DRM_PANIC='*' -DRM_PANIC_SCREEN='kmsg' DRM_FBDEV_EMULATION='*' DRM_SIMPLEDRM='*' FRAMEBUFFER_CONSOLE='*' diff --git a/chapter10/kernel/sysv.xml b/chapter10/kernel/sysv.xml index 1dc0e7c53..85d551fd7 100644 --- a/chapter10/kernel/sysv.xml +++ b/chapter10/kernel/sysv.xml @@ -33,12 +33,9 @@ Graphics support ---> <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> ... [DRM] - [*] Display a user-friendly message when a kernel panic occurs - ... [DRM_PANIC] - (kmsg) Panic screen formatter [DRM_PANIC_SCREEN] Supported DRM clients ---> [*] Enable legacy fbdev support for your modesetting driver ... [DRM_FBDEV_EMULATION] - <*> Simple framebuffer driver [DRM_SIMPLEDRM] + <*> Simple framebuffer driver [DRM_SIMPLEDRM] Console display driver support ---> [*] Framebuffer Console support [FRAMEBUFFER_CONSOLE]