[SOLVED] CLFS X11 starts with fbdev but cant use any other driver
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.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,103
Rep:
CLFS X11 starts with fbdev but cant use any other driver
Right here's my problem I have build CLFS on an AMD64, all goes fine boots up etc, installed Xorg7 via the book, did a minimal install from this: http://lists.x.org/archives/xorg-mod...er/000801.html
+some dependencies that were missing.
This is what was installed:
Used Xorg to create a default xorg.conf file
Driver set to fbdev and X started with this comand
Code:
X -retro -config ~/xorg.conf.new
and X11 starts with a grey sgreen and an X cursor.
If I try any other driver ( nv,vesa,nvidia ) just get a black screen and hang and have to do ALT-SYSREG-B to reboot
I no the proper nvidia works on my mahine as I use it in slackware but although it installs in LFS I get the same black screen
Default xorg.conf:
I'm stumped I've googled my @$$ off and gone over the xorg chapter in the book at least four times I've tried reinstallaing the server and copying xorg.conf files that I know work with my system, I've tried using my kernel from slackware to boot LFS to see if it was a kernel problem but always the same problem fbdev works nothing else seems to.
Try ls /usr/lib(64)/libGL* and see where the symlinks are pointed. Things like libGL.so should point at libGL.so.1.2(?) if it's using Mesa libs(for nv), but point at libGL.so.<nvidia version> if it's a proprietary driver is there. That's a show stopper Post
I may have found the reason late last night, I decided to install all the library's and protos from the Xorg7 section of the books and rebuild mesa and I noticed that the 'dri' folder installed by mesa was in /usr/lib64 and NOT in /usr/lib64/xorg/modules which is where the configure command in the xorg-server section looks so I symlinked and reinstalled xorg-server and the nvidia driver and presto! a working X, I don't see anything in the mesalib configure section to tell it where to install the 'dri' folder, have I missed something?
I now just want to go back and remove the extra libs and see if that was part of the problem I will post back.
Accidentally hosed my LFS install so I am rebuilding now...
Consider creating a tarball backup of your LFS partition after every big section, or before starting a new big section. At the point where you are, it takes about a minute to create or restore from a tarball.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,103
Original Poster
Rep:
Quote:
Originally Posted by stoat
Consider creating a tarball backup of your LFS partition after every big section, or before starting a new big section. At the point where you are, it takes about a minute to create or restore from a tarball.
Yeah already done that just rebuilding the xorg bit.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,103
Original Poster
Rep:
Well I've finally sorted the problem after having re-installed xorg a couple of times and finally done a complete rebuild from scratch ( mostly scripted and package managed so not a real problem to just let it run ).
I decided to go with a full library/proto install as they don't take much room and will probably save me grief in the future.
The configure for xorgserver has this option --with-dri-driver-path="${XORG_PREFIX}/lib/xorg/modules/dri" which is fine but the corresponding option is not given for mesalib which should be --with-dri-driverdir=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri --enable-xcb ( xcb is not enabled by default ), where LIBDIRSUFFIX=64 for x86_64 or "" for 32Bit, this puts the dri folder into xorg/modules linstead of /usr/lib.
Also to install the proprietary nvidia driver ( I know I know it's not open source ), you need to use the eglibc-2.15-r16526-dl_dep_fix-1.patch when building the final eglib.
Thanks for the suggestions and I hope this may help someone else.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,103
Original Poster
Rep:
Quote:
Originally Posted by business_kid
Post the corrections to the appropriate LFS list so they can fix the book.
I don't want to sign up for yet another mailing list for such a small ( but annoying! ) bug, so if anyone else reading this is already signed up please pass it on. Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.