LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 07-24-2017, 11:25 AM   #1
joakim12
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Ubuntu 18.04
Posts: 82

Rep: Reputation: 15
X doesn't start up and gives an error.


Hei.

I'm trying to get X to work, but I get errors:
startx error:
Code:
[    34.005] 
X.Org X Server 1.19.1
Release Date: 2017-01-11
[    34.005] X Protocol Version 11, Revision 0
[    34.005] Build Operating System: Linux 4.12.0 x86_64 
[    34.006] Current Operating System: Linux Leho-LFS 4.12.0 #1 SMP Sun Jul 23 19:17:07 EEST 2017 x86_64
[    34.006] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.12-lfs-8.0 root=/dev/sda2
[    34.006] Build Date: 23 July 2017  12:12:54AM
[    34.006]  
[    34.006] Current version of pixman: 0.34.0
[    34.007] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    34.007] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    34.008] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul 24 18:49:04 2017
[    34.045] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    34.045] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    34.066] (==) No Layout section.  Using the first Screen section.
[    34.066] (==) No screen section available. Using defaults.
[    34.066] (**) |-->Screen "Default Screen Section" (0)
[    34.066] (**) |   |-->Monitor "<default monitor>"
[    34.066] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[    34.066] (**) |   |-->Device "nvidia"
[    34.066] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    34.066] (==) Automatically adding devices
[    34.066] (==) Automatically enabling devices
[    34.066] (==) Automatically adding GPU devices
[    34.066] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    34.067] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/misc/".
[    34.067] 	Entry deleted from font path.
[    34.067] 	(Run 'mkfontdir' on "/usr/share/fonts/X11/misc/").
[    34.068] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/100dpi/".
[    34.068] 	Entry deleted from font path.
[    34.068] 	(Run 'mkfontdir' on "/usr/share/fonts/X11/100dpi/").
[    34.068] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/75dpi/".
[    34.068] 	Entry deleted from font path.
[    34.068] 	(Run 'mkfontdir' on "/usr/share/fonts/X11/75dpi/").
[    34.068] (==) FontPath set to:
	/usr/share/fonts/X11/TTF/,
	/usr/share/fonts/X11/OTF/,
	/usr/share/fonts/X11/Type1/
[    34.068] (==) ModulePath set to "/usr/lib/xorg/modules"
[    34.068] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    34.068] (II) Loader magic: 0x810c40
[    34.068] (II) Module ABI versions:
[    34.068] 	X.Org ANSI C Emulation: 0.4
[    34.068] 	X.Org Video Driver: 23.0
[    34.068] 	X.Org XInput driver : 24.1
[    34.068] 	X.Org Server Extension : 10.0
[    34.069] (--) PCI:*(0:1:0:0) 10de:1402:1462:8c92 rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[    34.069] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    34.069] (II) LoadModule: "glx"
[    34.070] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    34.144] (II) Module glx: vendor="X.Org Foundation"
[    34.144] 	compiled for 1.19.1, module version = 1.0.0
[    34.144] 	ABI class: X.Org Server Extension, version 10.0
[    34.144] (II) LoadModule: "nouveau"
[    34.144] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[    34.154] (II) Module nouveau: vendor="X.Org Foundation"
[    34.154] 	compiled for 1.19.1, module version = 1.0.13
[    34.154] 	Module class: X.Org Video Driver
[    34.154] 	ABI class: X.Org Video Driver, version 23.0
[    34.154] (II) NOUVEAU driver 
[    34.154] (II) NOUVEAU driver for NVIDIA chipset families :
[    34.154] 	RIVA TNT        (NV04)
[    34.154] 	RIVA TNT2       (NV05)
[    34.154] 	GeForce 256     (NV10)
[    34.154] 	GeForce 2       (NV11, NV15)
[    34.154] 	GeForce 4MX     (NV17, NV18)
[    34.154] 	GeForce 3       (NV20)
[    34.154] 	GeForce 4Ti     (NV25, NV28)
[    34.154] 	GeForce FX      (NV3x)
[    34.154] 	GeForce 6       (NV4x)
[    34.154] 	GeForce 7       (G7x)
[    34.154] 	GeForce 8       (G8x)
[    34.154] 	GeForce GTX 200 (NVA0)
[    34.154] 	GeForce GTX 400 (NVC0)
[    34.154] (--) using VT number 7

[    34.280] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[    34.280] (EE) No devices detected.
[    34.280] (EE) 
Fatal server error:
[    34.280] (EE) no screens found(EE) 
[    34.280] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    34.280] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    34.280] (EE) 
[    34.284] (EE) Server terminated with error (1). Closing log file.
dmesg nouveau error:
Code:
[    0.608554] serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    0.610805] lp: driver loaded but no devices found
[    0.611151] ppdev: user-space parallel port driver
[    0.611221] Linux agpgart interface v0.103
[    0.611344] MXM: GUID detected in BIOS
[    0.611533] nouveau 0000:01:00.0: NVIDIA GM206 (126020a1)
[    0.702943] nouveau 0000:01:00.0: bios: version 84.06.5e.00.77
[    0.703189] nouveau 0000:01:00.0: disp: dcb 15 type 8 unknown
[    0.703273] nouveau 0000:01:00.0: Direct firmware load for nvidia/gm206/gr/sw_nonctx.bin failed with error -2
[    0.703353] nouveau 0000:01:00.0: gr: failed to load gr/sw_nonctx
[    0.703433] nouveau 0000:01:00.0: gr ctor failed, -2
[    0.703504] nouveau: probe of 0000:01:00.0 failed with error -2
[    0.703731] parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
[    0.704442] parport0: irq 7 detected
[    0.798036] lp0: using parport0 (polling).
[    0.800540] loop: module loaded
[    0.800627] mei_me 0000:00:16.0: enabling device (0000 -> 0002)
lsmod shown nothing. Not one module.

I don't know what to do and where is the error.
 
Old 07-24-2017, 02:43 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,256

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
1. You don't tell us what the video card is. Post the output of
Code:
lspci -v |grep -A12 VGA
2. You don't tell us what driver was installed, or is this a new install.
3. You don't tell us what distro & kernel, and is that kernel home built.
 
Old 07-25-2017, 10:39 AM   #3
joakim12
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Ubuntu 18.04
Posts: 82

Original Poster
Rep: Reputation: 15
lspci -v | grep VGA shows:
Code:
01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 950] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Micro-Star International Co., Ltd. [MSI] GM206 [GeForce GTX 950]
	Flags: fast devsel, IRQ 313
	Memory at de000000 (32-bit, non-prefetchable) [size=16M]
	Memory at c0000000 (64-bit, prefetchable) [size=256M]
	Memory at d0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at e000 [size=128]
	Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Legacy Endpoint, MSI 00
	Capabilities: [100] Virtual Channel
	Capabilities: [250] Latency Tolerance Reporting
	Capabilities: [258] L1 PM Substates
	Capabilities: [128] Power Budgeting <?>
	Capabilities: [420] Advanced Error Reporting
	Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
	Capabilities: [900] #19
I installed Xorg Nouveau Driver-1.0.15 in BLFS Xorg Drivers.

I compiled Linux kernel 4.12 in LFS and made .config file with make localyesconfig in Ubuntu 16.04 kernel source tree.

(B)LFS 8.0

Last edited by joakim12; 07-25-2017 at 10:43 AM.
 
Old 07-25-2017, 12:17 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,256

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
The card looks healthy. If you leave out the |grep -A12 and put in |less, you can read that to the end. The last line on each thing tells you what module(s) it's loading.

The kernel might be an issue, if you had nvidia drivers in ubuntu and nouveau in LFS. Distro kernels are inclined to enable everything. I'd check your video section config with 'make xconfig' or 'make menuconfig' and read the help. You need nouveau OR nvidia drivers.
 
Old 07-25-2017, 12:35 PM   #5
joakim12
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Ubuntu 18.04
Posts: 82

Original Poster
Rep: Reputation: 15
The lspci output I pasted here is the whole info about my graphics card from lspci. The next line is the next device. I doesn't show the graphics card module.
 
Old 07-25-2017, 05:39 PM   #6
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Did you run "make check" when you installed libdrm? What were the results? Was LLVM available when you built Mesa?
 
Old 07-26-2017, 03:22 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,256

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Quote:
Originally Posted by joakim12 View Post
The lspci output I pasted here is the whole info about my graphics card from lspci. The next line is the next device. I doesn't show the graphics card module.
Ok, here's my output from an Intel HD4000 (Sandy Bridge?)
Code:
bash-4.3$ sudo  lspci -v |grep -A12 VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Samsung Electronics Co Ltd 3rd Gen Core processor Graphics Controller
	Flags: bus master, fast devsel, latency 0, IRQ 24
	Memory at bfc00000 (64-bit, non-prefetchable) [size=4M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 3000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [d0] Power Management version 2
	Capabilities: [a4] PCI Advanced Features
	Kernel driver in use: i915
Note the "Kernel Driver" line. What, if any kernel modules do you have loaded for your card?
 
Old 07-26-2017, 05:58 PM   #8
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Well, your log mentions missing firmware, so make sure you have that first.
 
Old 07-27-2017, 09:43 AM   #9
joakim12
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Ubuntu 18.04
Posts: 82

Original Poster
Rep: Reputation: 15
As you can see I have 01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 950] (rev a1) (prog-if 00 [VGA controller]) graphics card

I think I can download firmware from: http://anduin.linuxfromscratch.org/B.../nvidia/gm206/ , but I dont know which one to choose. There are many of them.
 
Old 07-27-2017, 09:44 AM   #10
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Check your logs:

[ 0.703273] nouveau 0000:01:00.0: Direct firmware load for nvidia/gm206/gr/sw_nonctx.bin failed with error -2
 
Old 07-27-2017, 10:36 AM   #11
joakim12
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Ubuntu 18.04
Posts: 82

Original Poster
Rep: Reputation: 15
I put the sw_nonctx.bin file to /lib/firmware and reboot the LFS, but dmesg still shows the same error as before.
 
Old 07-27-2017, 02:28 PM   #12
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Path shown above is relative to /lib/firmware. So you need to put the firmware into /lib/firmware/nvidia/gm206/gr. Note that it will only work if nouveau is built as module. If it is built into kernel, you need to build the firmware into kernel as well.
 
Old 07-28-2017, 07:29 AM   #13
joakim12
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Ubuntu 18.04
Posts: 82

Original Poster
Rep: Reputation: 15
If I have /usr/lib/xorg/modules/drivers/nouveau_drv.so file. Is this the module of my graphics card and I don't have the graphics card module compiled into kernel?
 
Old 07-28-2017, 07:51 AM   #14
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Does the proprietary driver work for your card? My desktop has a GT520, and the proprietary works very well in BLFS.

Nouveau has gotten better over the years, but it is still somewhat buggy and way behind the proprietary driver in FPS. The GPU runs a bit cooler as well.

Setting up the proprietary driver in BLFS is fairly straightforward. You don't need to compile additional firmware blobs into the kernel. Also, in your kernel config, you have to uncheck DRM and nouveau. You also don't compile the nouveau xorg driver in the BLFS book. You may also have to recompile Mesa without nouveau and LLVM.

Then you simply execute the nvidia run script as root. If there are no compile errors, startx or startxfce4 should work. If it doesn't, then you troubleshoot the log file. Mine installed without a hitch.

I use the latest nvidia beta driver and kernel 4.12.4 in systemd blfs.

Last edited by plasmonics; 07-28-2017 at 09:44 AM.
 
Old 07-28-2017, 03:50 PM   #15
joakim12
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Ubuntu 18.04
Posts: 82

Original Poster
Rep: Reputation: 15
How to I recompile Mesa without nouveau and LLVM? Is it ./configure --disable-llvm and GLL_DRV="i915,r600,radeonsi,svga,swrast" Is the Mesa recompilation a must?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xorg windows doesn't start and getting the error Carl_cj Linux From Scratch 10 11-04-2014 02:52 PM
SuSe 10.1 doesn't start X and gives an error on boot time 9a3eedi Linux - Software 9 10-03-2006 07:44 AM
firefox doesn't start, no error is outputted Karlsonas Linux - Software 13 10-25-2004 01:35 PM
Apache won't start, but doesn't give error message escargot22026 Linux - Software 1 08-10-2004 09:34 PM
Firebird doesn't start up - ERROR froedi Linux - Software 6 11-19-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration