Changeset 54c0a86 for bootscripts


Ignore:
Timestamp:
08/23/2024 11:36:09 AM (4 weeks ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.2, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib
Children:
872a378, 993a789, ae7b9ed
Parents:
db7bf1f
git-author:
Xi Ruoyao <xry111@…> (08/23/2024 11:23:13 AM)
git-committer:
Xi Ruoyao <xry111@…> (08/23/2024 11:36:09 AM)
Message:

bootscripts: console: Fix fb console detection

If CONFIG_FB is not set but CONFIG_DRM_FBDEV_EMULATION is set to y, on a
DRM-drived graphic card (anything from AMD/ATI, Intel, or NVIDIA in
recent 20 years) we'd be using a fb console but without
/sys/class/graphics/fb0. Then the script won't run setfont for VT 2-6.

Check /sys/class/graphics/fbcon instead of /sys/class/graphics/fb0 to
fix the issue.

Closes: https://lists.linuxfromscratch.org/sympa/arc/lfs-support/2024-08/msg00001.html
Reported-by: Alan Ianson <agianson@…>

Location:
bootscripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/ChangeLog

    rdb7bf1f r54c0a86  
     12024-08-23 Xi Ruoyao <xry111@xry111.site>
     2   * In console, detect FB console by checking /sys/class/graphics/fbcon
     3     instead of fb0.  The latter does not exist if CONFIG_FB=n, but
     4     CONFIG_DRM_FBDEV_EMULATION=y can support a FB console without
     5     CONFIG_FB.
     6
    172024-07-12 Xi Ruoyao <xry111@xry111.site>
    28   * In mountvirtfs, recreate /dev/fd correctly if it's already created
  • bootscripts/lfs/init.d/console

    rdb7bf1f r54c0a86  
    4848
    4949      # Figure out if a framebuffer console is used
    50       [ -d /sys/class/graphics/fb0 ] && use_fb=1 || use_fb=0
     50      [ -d /sys/class/graphics/fbcon ] && use_fb=1 || use_fb=0
    5151
    5252      # Figure out the command to set the console into the
Note: See TracChangeset for help on using the changeset viewer.