Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Just building BLFS-12.0 on an old DELL Latitude D820.
LFS runs properly, didn't experience anything unusual so far.
I also went through capter 24 until "Xorg-7 Testing and Configuration" without visible hassels.
Now, after typing "startx" problems start. No graphics, but errors:
Code:
grep EE /var/log/Xorg.0.log
[ 47.506] Current Operating System: Linux d820 6.4.12 #4 SMP PREEMPT_DYNAMIC Sat Oct 21 11:16:32 CEST 2023 x86_64
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 48.091] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 48.091] (EE) Failed to load module "nv" (module does not exist, 0)
[ 48.167] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 48.168] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 48.172] (EE) open /dev/dri/card0: No such file or directory
[ 48.172] (EE) open /dev/dri/card0: No such file or directory
[ 48.172] (EE) Screen 0 deleted because of no matching config section.
[ 48.172] (EE) Device(s) detected, but none match those in the config file.
[ 48.172] (EE)
[ 48.172] (EE) no screens found(EE)
[ 48.172] (EE)
[ 48.172] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 48.172] (EE)
[ 48.176] (EE) Server terminated with error (1). Closing log file.
Well, i didn't build any of the video drivers, which were tried to load.
Looks like the chapter "xorg drivers" e.g. in BLFS-11.3, where also video drivers used to be built, has been reduced to "xorg input drivers" in BLFS-12.0.
What did i miss?
The recommended Xorg driver nowadays is the modesetting driver included with Xorg-server, but it needs the appropriate kernel video driver to interface with.
During boot i also see, when the nvidiafb driver gets loaded: the text resolution changes from 80x25 to: "Need some glasses" ;-)
cheers,
WK
EDIT: seems there's just one driver: modesetting_drv.so in /usr/lib/xorg/modules/drivers, nothing else.
Is that ok?
Somehow the xorg-server seems to know the "right" drivers to load:
Code:
[ 23.001] ABI class: X.Org Server Extension, version 10.0
[ 23.001] (==) Matched nouveau as autoconfigured driver 0
[ 23.001] (==) Matched nv as autoconfigured driver 1
[ 23.001] (==) Matched modesetting as autoconfigured driver 2
[ 23.001] (==) Matched fbdev as autoconfigured driver 3
[ 23.001] (==) Matched vesa as autoconfigured driver 4
[ 23.001] (==) Assigned the driver to the xf86ConfigLayout
[ 23.001] (II) LoadModule: "nouveau"
[ 23.003] (WW) Warning, couldn't open module nouveau
[ 23.003] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 23.003] (II) LoadModule: "nv"
[ 23.003] (WW) Warning, couldn't open module nv
[ 23.003] (EE) Failed to load module "nv" (module does not exist, 0)
[ 23.003] (II) LoadModule: "modesetting"
[ 23.003] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 23.077] (II) Module modesetting: vendor="X.Org Foundation"
but it doesn't find them. Me neither :-(
Last edited by derguteweka; 10-21-2023 at 11:39 AM.
Yeah, this is approximatly, what i tried...
Currently i'm trying with xorg-server-21.1.7 and the drivers from BLFS-11.3.
Doesnt look good either.
When i just have built the nouveau driver only, i get another error during startx - the /dev/dri interface doesn't exist:
Code:
[ 628.515] (II) LoadModule: "nouveau"
[ 628.562] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[ 628.611] (II) Module nouveau: vendor="X.Org Foundation"
[ 628.611] compiled for 1.21.1.8, module version = 1.0.17
[ 628.611] Module class: X.Org Video Driver
[ 628.611] ABI class: X.Org Video Driver, version 25.2
[ 628.611] (II) LoadModule: "nv"
[ 628.611] (WW) Warning, couldn't open module nv
[ 628.611] (EE) Failed to load module "nv" (module does not exist, 0)
[ 628.611] (II) LoadModule: "modesetting"
[ 628.611] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 628.611] (WW) Warning, couldn't open module nv
[ 628.611] (EE) Failed to load module "nv" (module does not exist, 0)
[ 628.611] (II) LoadModule: "modesetting"
[ 628.611] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 628.644] (II) Module modesetting: vendor="X.Org Foundation"
[ 628.644] compiled for 1.21.1.7, module version = 1.21.1
[ 628.645] Module class: X.Org Video Driver
[ 628.645] ABI class: X.Org Video Driver, version 25.2
[ 628.645] (II) LoadModule: "fbdev"
[ 628.645] (WW) Warning, couldn't open module fbdev
[ 628.645] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 628.645] (II) LoadModule: "vesa"
[ 628.645] (WW) Warning, couldn't open module vesa
[ 628.645] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 628.645] (II) NOUVEAU driver
[ 628.645] (II) NOUVEAU driver for NVIDIA chipset families :
[ 628.645] RIVA TNT (NV04)
[ 628.645] RIVA TNT2 (NV05)
[ 628.645] GeForce 256 (NV10)
[ 628.645] GeForce 2 (NV11, NV15)
[ 628.645] GeForce 4MX (NV17, NV18)
[ 628.645] GeForce 3 (NV20)
[ 628.645] GeForce 4Ti (NV25, NV28)
[ 628.645] GeForce FX (NV3x)
[ 628.646] GeForce 6 (NV4x)
[ 628.646] GeForce 7 (G7x)
[ 628.646] GeForce 8 (G8x)
[ 628.646] GeForce 9 (G9x)
[ 628.646] GeForce GTX 2xx/3xx (GT2xx)
[ 628.646] GeForce GTX 4xx/5xx (GFxxx)
[ 628.646] GeForce GTX 6xx/7xx (GKxxx)
[ 628.646] GeForce GTX 9xx (GMxxx)
[ 628.646] GeForce GTX 10xx (GPxxx)
[ 628.646] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 628.813] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[ 628.813] (EE) open /dev/dri/card0: No such file or directory
[ 628.813] (WW) Falling back to old probe method for modesetting
[ 628.813] (EE) open /dev/dri/card0: No such file or directory
[ 628.813] (EE) Screen 0 deleted because of no matching config section.
[ 628.813] (II) UnloadModule: "modesetting"
[ 628.813] (EE) Device(s) detected, but none match those in the config file.
[ 628.813] (EE)
Fatal server error:
[ 628.813] (EE) no screens found(EE)
When i additionally build the fbdev driver, this get's loaded and i can see something on the laptops display which comes close to the expected(the xterms and the xclock). Unfortunatelly there is huge flickering, so it's completly unusable. I cannot see anything suspicious in the log, the modeline looks sensible to me. I know from the DELL manual, that the resolution is indeed 1920x1200.
Code:
[ 19308.398] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 19308.398] (II) FBDEV: driver for framebuffer: fbdev
[ 19308.582] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[ 19308.582] (EE) open /dev/dri/card0: No such file or directory
[ 19308.582] (WW) Falling back to old probe method for modesetting
[ 19308.582] (EE) open /dev/dri/card0: No such file or directory
[ 19308.582] (II) Loading sub module "fbdevhw"
[ 19308.582] (II) LoadModule: "fbdevhw"
[ 19308.582] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 19308.596] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 19308.596] compiled for 1.21.1.7, module version = 0.0.2
[ 19308.596] ABI class: X.Org Video Driver, version 25.2
[ 19308.596] (**) FBDEV(1): claimed PCI slot 1@0:0:0
[ 19308.596] (II) FBDEV(1): using default device
[ 19308.596] (EE) Screen 0 deleted because of no matching config section.
[ 19308.596] (II) UnloadModule: "modesetting"
[ 19308.596] (II) FBDEV(0): Console is 8bpp, defaulting to 32bpp
[ 19308.596] (II) FBDEV(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 19308.596] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
[ 19308.596] (==) FBDEV(0): RGB weight 888
[ 19308.596] (==) FBDEV(0): Default visual is TrueColor
[ 19308.596] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[ 19308.596] (II) FBDEV(0): hardware: NV1d (video memory: 262144kB)
[ 19308.596] (II) FBDEV(0): checking modes against framebuffer device...
[ 19308.596] (II) FBDEV(0): checking modes against monitor...
[ 19308.596] (II) FBDEV(0): Virtual size is 1920x1200 (pitch 1920)
[ 19308.596] (**) FBDEV(0): Built-in mode "current": 154.0 MHz, 74.0 kHz, 60.0 Hz
[ 19308.596] (II) FBDEV(0): Modeline "current"x0.0 154.01 1920 1968 2000 2080 1200 1203 1209 1235 +hsync -vsync -csync (74.0 kHz b)
[ 19308.596] (==) FBDEV(0): DPI set to (96, 96)
[ 19308.596] (II) Loading sub module "fb"
[ 19308.596] (II) LoadModule: "fb"
[ 19308.596] (II) Module "fb" already built-in
Even more unhappyness approaching here:
I used some older Ubuntu-LTS from USB-Bootstick as host to build LFS (Yeah, i know, this might cause trouble building LFS but i think i got it anyway - no unusual behaviour in the testuites) - there i noticed, that the GUI was a bit distored and there was also nagging about some data integrity in some files, yadayada...anyway - i managed to install/run sshd on this thing and did the whole B/LFS build via ssh from my usual PC.
But now i put a rather fresh Ubuntu (23.10.1) on my USB-Stick, booted again - and - HECK! - the "Try Ubuntu" thing works as a charm. No problems with picture flickering, etc. Their nouveau driver seems to work - no nasty words in Xorg.0.log.
/dev/dri/ exists...
Which leads to the conclusion: The Hardware is OK, it's my own incompetence. With the words of 2 great american philosophers Beavis&Butthead: This sucks!HeheHmhm :-(
Phew, finally got xorg up and running. with xorg-server from BLFS-12.0.
Root of the problem seemed to be this:
Code:
[ 628.813] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[ 628.813] (EE) open /dev/dri/card0: No such file or directory
[ 628.813] (WW) Falling back to old probe method for modesetting
[ 628.813] (EE) open /dev/dri/card0: No such file or directory
I didn't have /dev/dri on my system.
I fixed it by fiddeling around in the config of the Kernel in Device drivers/Graphics and framebuffer. Seems i missed something important there.
Look at the age of this DELL beauty :-)
Code:
[ 668.980] (II) NOUVEAU(0): Manufacturer: LPL Model: ab00 Serial#: 0
[ 668.980] (II) NOUVEAU(0): Year: 2005 Week: 0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.