SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I want to have a go at compiling a 2.6 kernel. I have read about it a lot on the web and I think I have just about enough information to start.
I have 2 questions though:
When I have downloaded the compressed kernel, where should I unzip it to. Should I actually be in this directory to do the actual build commands?
Secondly, I use NVIDIA's nforce2 and graphics drivers, so how do I get the information and modules etc for these incorporated when I build the new kernel. Surely I don't have to fully install the driver packages again after I get linux running with the new kernel?
When I have downloaded the compressed kernel, where should I unzip it to. Should I actually be in this directory to do the actual build commands?
I put it in /usr/src and unpack it with
Code:
tar xvzf linux-kernelversion
Quote:
Originally Posted by Toods
Secondly, I use NVIDIA's nforce2 and graphics drivers, so how do I get the information and modules etc for these incorporated when I build the new kernel. Surely I don't have to fully install the driver packages again after I get linux running with the new kernel?
This depend on what kind of kernelchange you've made. If you are still using the same kernelversion you don't have to rekompile the driverpackage. If you've change anything of importance then you have to rerun the driver installer. I always keep the NVIDIA*.run script so I can rerun it after I've changed anything in my kernel. Then you don't have to download it again...
This depend on what kind of kernelchange you've made. If you are still using the same kernelversion you don't have to rekompile the driverpackage. If you've change anything of importance then you have to rerun the driver installer. I always keep the NVIDIA*.run script so I can rerun it after I've changed anything in my kernel. Then you don't have to download it again...
Good luck!
Hi,
Thanks for your reply.
Can I ask a little more on the second point for clarification?
At the moment I am running a 2.4 version kernel and I have already installed nforce2 and graphics driver packages. I want to now atttempt to build a 2.6 version kernel to use on the same PC. With regard to the nvidia packages, is there some script included with the original zipped driver package that I need to run or do I have to run the full installers again?.
You have to rerun the driver file named something like "NVIDIA-Linux-x86-1.0-8174-pkg1.run" with:
Code:
sh ./NVIDIA-Linux-x86-1.0-8174-pkg1.run
That will build a new driver module and place it in the right place in /lib/modules/kernelversion...
If you change from a 2.4 to a 2.6 kernel you definately need to recompile the driver.
Really. -Thanks for clarifying vls. I wasn't really sure on how to run a script with sh. I've always done something like this
Code:
chmod u+x scriptfile
./scriptfile
I saw the sh part on the NVIDIA site and put ./ in front of the scriptfile just to be clear about that sh was to be passed with the correct path to the scriptfile. So that the file want downloaded into one directory and sh scriptfile was run in another.
to be another pedantic ass , you dont need to unpack it into /usr/src. you can unpack it into your home directory. that way you can build as user, not root.
This is one of the best slackware kernel howto's ive found.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.