aboutsummaryrefslogtreecommitdiffstats
path: root/chapter10
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-12-05 14:55:45 +0800
committerXi Ruoyao <xry111@xry111.site>2023-12-05 14:58:29 +0800
commit981b9fa6a1a47b5ea93d899dc467be3649b0c253 (patch)
treee71da66ab6d86dadeb62dee87262975f54c5aae7 /chapter10
parent34774f4986378ae0483a65233f453f5c2227ae47 (diff)
kernel-config: Drop FB
In Linux 6.6 DRM_FBDEV_EMULATION no longer depends on FB, so we no longer need to select FB (tested in a QEMU VM). But if DRM is selected, we must select both DRM_FBDEV_EMULATION and FRAMEBUFFER_CONSOLE or we'll see only blank screen. And now FRAMEBUFFER_CONSOLE is not selected by default, be warned!!
Diffstat (limited to 'chapter10')
-rw-r--r--chapter10/kernel.xml20
-rw-r--r--chapter10/kernel/systemd.toml12
-rw-r--r--chapter10/kernel/systemd.xml10
-rw-r--r--chapter10/kernel/sysv.toml11
-rw-r--r--chapter10/kernel/sysv.xml10
5 files changed, 43 insertions, 20 deletions
diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml
index 5c7a9d703..5bbfff11a 100644
--- a/chapter10/kernel.xml
+++ b/chapter10/kernel.xml
@@ -273,16 +273,18 @@
</varlistentry>
<varlistentry>
- <term><parameter>Framebuffer Console support</parameter></term>
+ <term>
+ <parameter>
+ Enable legacy fbdev support for your modesetting driver
+ </parameter> and
+ <parameter>Framebuffer Console support</parameter>
+ </term>
<listitem>
- <para>This is needed to display the Linux console on a frame
- buffer device. To allow the kernel to print debug messages at an
- early boot stage, it shouldn't be built as a kernel module
- unless an initramfs will be used. And, if
- <option>CONFIG_DRM</option> (Direct Rendering Manager) is enabled,
- it's likely <option>CONFIG_DRM_FBDEV_EMULATION</option> (Enable
- legacy fbdev support for your modesetting driver) should be
- enabled as well.</para>
+ <para>These are needed to display the Linux console on a
+ GPU driven by a DRI (Direct Rendering Infrastructure) driver.
+ If <option>CONFIG_DRM</option> (Direct Rendering Manager) is
+ enabled, you should enable these two options as well or you'll see
+ a blank screen once the DRI driver is loaded.</para>
</listitem>
</varlistentry>
diff --git a/chapter10/kernel/systemd.toml b/chapter10/kernel/systemd.toml
index 26ac61c46..dae4a4049 100644
--- a/chapter10/kernel/systemd.toml
+++ b/chapter10/kernel/systemd.toml
@@ -13,9 +13,7 @@ STACKPROTECTOR_STRONG='*'
UEVENT_HELPER=' '
DEVTMPFS='*'
DEVTMPFS_MOUNT='*'
-FB='*'
-FRAMEBUFFER_CONSOLE='*'
-
+DRM=' *M'
AUDIT=' '
NET='*'
INET='*'
@@ -28,3 +26,11 @@ TMPFS='*'
TMPFS_POSIX_ACL='*'
revision='systemd'
+
+[DRM_FBDEV_EMULATION]
+value = ' *'
+comment = 'If [DRM] is selected as * or M, this must be selected'
+
+[FRAMEBUFFER_CONSOLE]
+value = ' *'
+comment = 'If [DRM] is selected as * or M, this must be selected'
diff --git a/chapter10/kernel/systemd.xml b/chapter10/kernel/systemd.xml
index bfe3df275..c41b26673 100644
--- a/chapter10/kernel/systemd.xml
+++ b/chapter10/kernel/systemd.xml
@@ -41,10 +41,14 @@
<emphasis role='blue'>F</emphasis>irmware Drivers ---&gt;
[*] <emphasis role='blue'>E</emphasis>xport DMI identification via sysfs to userspace [DMIID]
<emphasis role='blue'>G</emphasis>raphics support ---&gt;
- <emphasis role='blue'>F</emphasis>rame buffer Devices ---&gt;
- &lt;*&gt; <emphasis role='blue'>S</emphasis>upport for frame buffer device drivers ---&gt; [FB]
+ &lt; /*/M&gt; <emphasis role='blue'>D</emphasis>irect Rendering Manager (XFree86 4.1.0 and higher DRI support) ---&gt;
+ ... [DRM]
+ # If [DRM] is selected as * or M, this must be selected:
+ [ /*] <emphasis role='blue'>E</emphasis>nable legacy fbdev support for your modesetting driver
+ ... [DRM_FBDEV_EMULATION]
<emphasis role='blue'>C</emphasis>onsole display driver support ---&gt;
- [*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [FRAMEBUFFER_CONSOLE]
+ # If [DRM] is selected as * or M, this must be selected:
+ [ /*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [FRAMEBUFFER_CONSOLE]
<emphasis role='blue'>F</emphasis>ile systems ---&gt;
[*] <emphasis role='blue'>I</emphasis>notify support for userspace [INOTIFY_USER]
diff --git a/chapter10/kernel/sysv.toml b/chapter10/kernel/sysv.toml
index 5c8b2df6e..3f8d2e93c 100644
--- a/chapter10/kernel/sysv.toml
+++ b/chapter10/kernel/sysv.toml
@@ -12,7 +12,14 @@ STACKPROTECTOR_STRONG='*'
UEVENT_HELPER=' '
DEVTMPFS='*'
DEVTMPFS_MOUNT='*'
-FB='*'
-FRAMEBUFFER_CONSOLE='*'
+DRM=' *M'
revision='sysv'
+
+[DRM_FBDEV_EMULATION]
+value = ' *'
+comment = 'If [DRM] is selected as * or M, this must be selected'
+
+[FRAMEBUFFER_CONSOLE]
+value = ' *'
+comment = 'If [DRM] is selected as * or M, this must be selected'
diff --git a/chapter10/kernel/sysv.xml b/chapter10/kernel/sysv.xml
index 405dfad0e..c61208c67 100644
--- a/chapter10/kernel/sysv.xml
+++ b/chapter10/kernel/sysv.xml
@@ -29,7 +29,11 @@
[*] <emphasis role='blue'>A</emphasis>utomount devtmpfs at /dev, after the kernel mounted the rootfs
... [DEVTMPFS_MOUNT]
<emphasis role='blue'>G</emphasis>raphics support ---&gt;
- <emphasis role='blue'>F</emphasis>rame buffer Devices ---&gt;
- &lt;*&gt; <emphasis role='blue'>S</emphasis>upport for frame buffer device drivers ---&gt; [FB]
+ &lt; /*/M&gt; <emphasis role='blue'>D</emphasis>irect Rendering Manager (XFree86 4.1.0 and higher DRI support) ---&gt;
+ ... [DRM]
+ # If [DRM] is selected as * or M, this must be selected:
+ [ /*] <emphasis role='blue'>E</emphasis>nable legacy fbdev support for your modesetting driver
+ ... [DRM_FBDEV_EMULATION]
<emphasis role='blue'>C</emphasis>onsole display driver support ---&gt;
- [*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [FRAMEBUFFER_CONSOLE]</screen>
+ # If [DRM] is selected as * or M, this must be selected:
+ [ /*] <emphasis role='blue'>F</emphasis>ramebuffer Console support [FRAMEBUFFER_CONSOLE]</screen>