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-28-2017, 04:05 PM   #16
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167

If you want a gallium driver, it is.
 
Old 07-29-2017, 07:16 AM   #17
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
I am not sure if recompiling Mesa is necessary. If you are going to recompile, you don't need radeonsi and r600. They are both radeon GPUs. The i915 is intel GPU. Also, I do not use Wayland, so I left that out of "--with-platform".

Before recompiling, you can try executing the nvidia run script and see if it works. If it has a problem with mesa, it will complain.

I think the main requirement is to omit DRM and nouveau in the kernel config and not compile the xorg nouveau driver. However, for most distros, the nouveau and proprietary drivers are able to coexist. You can prevent a conflict by blacklisting nouveau and preventing it from loading by setting
Code:
GRUB_CMDLINE_LINUX="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau plus_your_other_parameters"
in /etc/default/grub.

------------------edited----------------------
As a followup, even though I specified without nouveau and r600 when I compiled Mesa, the makefile went ahead and built them anyway. I can see the libraries in /usr/lib. That said, everything works fine. So I don't think it is necessary to recompile Mesa. You could also compile the Xorg nouveau driver without any side effects. The user can decide which driver gets loaded via kernel parameters.

Last edited by plasmonics; 07-29-2017 at 11:39 AM.
 
Old 07-29-2017, 07:37 AM   #18
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
I would build the gallium swrast and svga at along side my actual drivers. I know that both of those can act as pass-thru to other backend drivers because there are multiple paths for instructions to come through.
 
Old 07-29-2017, 12:47 PM   #19
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
This turned out to be an interesting thread. I found out that the nouveau and nvidia proprietary drivers can coexist in BLFS just as in other distros.

If you wish to use nouveau, you have to compile Mesa with drm and nouveau support, which the makefile wants to do anyway. Then you compile the kernel with DRM and nouveau as modules. Also, compile the Xorg nouveau driver using the BLFS book.
Startx should then work using the nouveau driver.

Now, if you wish to install the nvidia proprietary driver, you must boot into a blacklisted mode using the parameters I specified above, and execute the nvidia run script. If there are is no compilation error, startx should work.

If you wish to revert to nouveau, you have to delete /etc/X11/xorg.conf and un-blacklist nouveau in /etc/default/grub.

A good indicator of all is well is
Code:
glxinfo | grep -i opengl
--------------------------Edited----------------------
IMHO it is better to use the proprietary driver, assuming it is available for your GPU. No firmware blobs needed and much easier to install.

Last edited by plasmonics; 07-30-2017 at 06:31 AM.
 
  


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 03:25 PM.

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