Hello,
I'm having trouble starting X server in LFS 10.0 with linux-5.8.3 kernel. I'm not familiar with Graphic Drivers that much and need direction in the right choices in building kernel.
Background information:
- I'm on amd64 cpu with graphics card: Radeon VII
https://www.amd.com/en/products/graphics/amd-radeon-vii. Note that I have two monitors attached via HDMI to Radeon VII.
- I have built everything in a chroot environment on Ubuntu 20.04 host.
- I've been successful with the LFS and BLFS and can boot into console by rebooting.
- I got stuck at installing X Server and getting a display:
http://www.linuxfromscratch.org/blfs...rg-config.html
- I have not setup auto start of X Server as described here
http://www.linuxfromscratch.org/blfs...e/x/xinit.html. I start it manually by running `X -configure` and the test command `X -config /root/xorg.conf.new`
When I run `X -configure` and the test command `X -config /root/xorg.conf.new`. It produces the following:
/root/xorg.conf.new:
Code:
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Screen 2 "Screen2" RightOf "Screen1"
Screen 3 "Screen3" RightOf "Screen2"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc/"
FontPath "/usr/share/fonts/X11/TTF/"
FontPath "/usr/share/fonts/X11/OTF/"
FontPath "/usr/share/fonts/X11/Type1/"
FontPath "/usr/share/fonts/X11/100dpi/"
FontPath "/usr/share/fonts/X11/75dpi/"
EndSection
Section "Module"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor2"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor3"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ZaphodHeads" # <str>
#Option "AccelMethod" # <str>
#Option "DRI3" # [<bool>]
#Option "DRI" # <i>
#Option "ShadowPrimary" # [<bool>]
#Option "TearFree" # [<bool>]
#Option "DeleteUnusedDP12Displays" # [<bool>]
#Option "VariableRefresh" # [<bool>]
Identifier "Card0"
Driver "amdgpu"
BusID "PCI:9:0:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ZaphodHeads" # <str>
#Option "AccelMethod" # <str>
#Option "DRI3" # [<bool>]
#Option "DRI" # <i>
#Option "ShadowPrimary" # [<bool>]
#Option "TearFree" # [<bool>]
#Option "DeleteUnusedDP12Displays" # [<bool>]
#Option "VariableRefresh" # [<bool>]
Identifier "Card1"
Driver "amdgpu"
BusID "PCI:10:0:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ZaphodHeads" # <str>
#Option "AccelMethod" # <str>
#Option "DRI3" # [<bool>]
#Option "DRI" # <i>
#Option "ShadowPrimary" # [<bool>]
#Option "TearFree" # [<bool>]
#Option "DeleteUnusedDP12Displays" # [<bool>]
#Option "VariableRefresh" # [<bool>]
Identifier "Card2"
Driver "amdgpu"
BusID "PCI:11:0:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ZaphodHeads" # <str>
#Option "AccelMethod" # <str>
#Option "DRI3" # [<bool>]
#Option "DRI" # <i>
#Option "ShadowPrimary" # [<bool>]
#Option "TearFree" # [<bool>]
#Option "DeleteUnusedDP12Displays" # [<bool>]
#Option "VariableRefresh" # [<bool>]
Identifier "Card3"
Driver "amdgpu"
BusID "PCI:11:0:1"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Card2"
Monitor "Monitor2"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen3"
Device "Card3"
Monitor "Monitor3"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Xorg.0.log:
Quote:
[ 1272.139]
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[ 1272.139] Build Operating System: Linux 5.4.0-48-generic x86_64
[ 1272.139] Current Operating System: Linux devx011 5.8.9 #1 SMP Fri Oct 30 21:02:38 EDT 2020 x86_64
[ 1272.139] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.8.3-lfs-10.0 root=/dev/sdb1 ro rootfstype=ext4 rootdelay=10
[ 1272.140] Build Date: 29 October 2020 01:41:31AM
[ 1272.140]
[ 1272.140] Current version of pixman: 0.40.0
[ 1272.141] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 1272.141] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 1272.142] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Oct 30 21:50:17 2020
[ 1272.142] (++) Using config file: "/root/xorg.conf.new"
[ 1272.142] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 1272.142] (==) ServerLayout "X.org Configured"
[ 1272.142] (**) |-->Screen "Screen0" (0)
[ 1272.142] (**) | |-->Monitor "Monitor0"
[ 1272.143] (**) | |-->Device "Card0"
[ 1272.143] (**) |-->Screen "Screen1" (1)
[ 1272.143] (**) | |-->Monitor "Monitor1"
[ 1272.143] (**) | |-->Device "Card1"
[ 1272.143] (**) |-->Screen "Screen2" (2)
[ 1272.143] (**) | |-->Monitor "Monitor2"
[ 1272.143] (**) | |-->Device "Card2"
[ 1272.143] (**) |-->Screen "Screen3" (3)
[ 1272.143] (**) | |-->Monitor "Monitor3"
[ 1272.143] (**) | |-->Device "Card3"
[ 1272.143] (**) |-->Input Device "Mouse0"
[ 1272.143] (**) |-->Input Device "Keyboard0"
[ 1272.143] (==) Automatically adding devices
[ 1272.143] (==) Automatically enabling devices
[ 1272.143] (==) Automatically adding GPU devices
[ 1272.143] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 1272.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/misc/".
[ 1272.143] Entry deleted from font path.
[ 1272.143] (Run 'mkfontdir' on "/usr/share/fonts/X11/misc/").
[ 1272.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/100dpi/".
[ 1272.143] Entry deleted from font path.
[ 1272.143] (Run 'mkfontdir' on "/usr/share/fonts/X11/100dpi/").
[ 1272.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/75dpi/".
[ 1272.143] Entry deleted from font path.
[ 1272.143] (Run 'mkfontdir' on "/usr/share/fonts/X11/75dpi/").
[ 1272.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/misc/".
[ 1272.143] Entry deleted from font path.
[ 1272.143] (Run 'mkfontdir' on "/usr/share/fonts/X11/misc/").
[ 1272.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/100dpi/".
[ 1272.143] Entry deleted from font path.
[ 1272.143] (Run 'mkfontdir' on "/usr/share/fonts/X11/100dpi/").
[ 1272.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/75dpi/".
[ 1272.143] Entry deleted from font path.
[ 1272.143] (Run 'mkfontdir' on "/usr/share/fonts/X11/75dpi/").
[ 1272.143] (**) FontPath set to:
/usr/share/fonts/X11/TTF/,
/usr/share/fonts/X11/OTF/,
/usr/share/fonts/X11/Type1/,
/usr/share/fonts/X11/TTF/,
/usr/share/fonts/X11/OTF/,
/usr/share/fonts/X11/Type1/
[ 1272.143] (**) ModulePath set to "/usr/lib/xorg/modules"
[ 1272.143] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 1272.143] (WW) Disabling Mouse0
[ 1272.143] (WW) Disabling Keyboard0
[ 1272.143] (II) Loader magic: 0x61bcc0
[ 1272.143] (II) Module ABI versions:
[ 1272.143] X.Org ANSI C Emulation: 0.4
[ 1272.143] X.Org Video Driver: 24.1
[ 1272.143] X.Org XInput driver : 24.1
[ 1272.143] X.Org Server Extension : 10.0
[ 1272.143] (--) using VT number 7
[ 1272.143] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 1272.145] (--) PCI:*(11@0:0:0) 1002:66af:1002:081e rev 193, Mem @ 0xe0000000/268435456, 0xf0000000/2097152, 0xfc900000/524288, I/O @ 0x0000d000/256, BIOS @ 0x????????/131072
[ 1272.146] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 1272.146] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 1272.146] (II) LoadModule: "glx"
[ 1272.146] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 1272.146] (II) Module glx: vendor="X.Org Foundation"
[ 1272.146] compiled for 1.20.8, module version = 1.0.0
[ 1272.146] ABI class: X.Org Server Extension, version 10.0
[ 1272.146] (II) LoadModule: "amdgpu"
[ 1272.146] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[ 1272.146] (II) Module amdgpu: vendor="X.Org Foundation"
[ 1272.146] compiled for 1.20.8, module version = 19.1.0
[ 1272.146] Module class: X.Org Video Driver
[ 1272.146] ABI class: X.Org Video Driver, version 24.1
[ 1272.146] (II) AMDGPU: Driver for AMD Radeon:
All GPUs supported by the amdgpu kernel driver
[ 1272.149] (II) AMDGPU(0): [KMS] drm report modesetting isn't supported.
[ 1272.149] (II) AMDGPU(1): [KMS] drm report modesetting isn't supported.
[ 1272.149] (II) AMDGPU(2): [KMS] drm report modesetting isn't supported.
[ 1272.149] (II) AMDGPU(3): [KMS] drm report modesetting isn't supported.
[ 1272.149] (EE) Screen 0 deleted because of no matching config section.
[ 1272.149] (II) UnloadModule: "amdgpu"
[ 1272.149] (EE) Screen 0 deleted because of no matching config section.
[ 1272.149] (II) UnloadModule: "amdgpu"
[ 1272.149] (EE) Screen 0 deleted because of no matching config section.
[ 1272.149] (II) UnloadModule: "amdgpu"
[ 1272.149] (EE) Screen 0 deleted because of no matching config section.
[ 1272.149] (II) UnloadModule: "amdgpu"
[ 1272.149] (EE) Device(s) detected, but none match those in the config file.
[ 1272.149] (EE)
Fatal server error:
[ 1272.149] (EE) no screens found(EE)
[ 1272.149] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 1272.149] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 1272.149] (EE)
[ 1272.151] (EE) Server terminated with error (1). Closing log file.
|
I have compiled pretty much all the drivers I could on the X Drivers page
http://www.linuxfromscratch.org/blfs.../x7driver.html but when I re-compiled the linux-kernel with all the kernel configurations described under those packages I got a blank screen during boot. (The last message on the boot screen was about starting edev, and then instead of dropping into console it wouldn't respond to keyboard or mouse- had to hard restart.
On this try I've decided to build the kernel with only amdgpu modifications made
http://www.linuxfromscratch.org/blfs...-amdgpu-driver. Which gave me the above errors.
Questions:
Q1) Is it typical to build the kernel with all the drivers so that it supports VM and other possible graphics drivers? Or is that problematic?
Q2) Is amdgpu wrong for Radeon VII? Should it be ATI drivers? How do I determine that- can a command on Host OS (Ubuntu) be of help?
Q3) Any ideas that come up with debugging process would be appreciated.
Thank you in advance.