mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 04:57:38 +00:00
drm-panic: grub: Set up the VESA framebuffer for the kernel
In the previous commit we've enabled the kernel to use the SimpleDRM driver on the VESA framebuffer. Now provide the VESA framebuffer to the kernel.
This commit is contained in:
parent
fdf21dccba
commit
33c17d128b
@ -135,6 +135,7 @@ set timeout=5
|
|||||||
insmod part_gpt
|
insmod part_gpt
|
||||||
insmod ext2
|
insmod ext2
|
||||||
set root=(hd0,2)
|
set root=(hd0,2)
|
||||||
|
set gfxpayload=1024x768x32
|
||||||
|
|
||||||
menuentry "GNU/Linux, Linux &linux-version;-lfs-&version;" {
|
menuentry "GNU/Linux, Linux &linux-version;-lfs-&version;" {
|
||||||
linux /boot/vmlinuz-&linux-version;-lfs-&version; root=/dev/sda2 ro
|
linux /boot/vmlinuz-&linux-version;-lfs-&version; root=/dev/sda2 ro
|
||||||
@ -159,6 +160,14 @@ EOF</userinput></screen>
|
|||||||
be needed with some rare configurations.
|
be needed with some rare configurations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
The <command>set gfxpayload=1024x768x32</command> command sets the
|
||||||
|
resolution and color depth of the VESA framebuffer to be passed to the
|
||||||
|
kernel. It's necessary for the kernel SimpleDRM driver to use the
|
||||||
|
VESA framebuffer. You can use a different resolution or color depth
|
||||||
|
value which better suits for your monitor.
|
||||||
|
</para>
|
||||||
|
|
||||||
<note><para>From <application>GRUB</application>'s perspective, the
|
<note><para>From <application>GRUB</application>'s perspective, the
|
||||||
kernel files are relative to the partition used. If you
|
kernel files are relative to the partition used. If you
|
||||||
used a separate /boot partition, remove /boot from the above
|
used a separate /boot partition, remove /boot from the above
|
||||||
|
Loading…
Reference in New Issue
Block a user