LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-14-2005, 03:32 AM   #1
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
Beginners Questions about Compiling New Kernel


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?

Thank you.
 
Old 12-14-2005, 04:00 AM   #2
heltreko
Member
 
Registered: Mar 2005
Location: Stockholm, Sweden
Distribution: Slackware, Zenwalk
Posts: 141

Rep: Reputation: 15
Hi

Quote:
Originally Posted by Toods
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...

Good luck!
 
Old 12-14-2005, 04:10 AM   #3
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by heltreko
Hi


I put it in /usr/src and unpack it with
Code:
tar xvzf linux-kernelversion

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?.

Thank you.
 
Old 12-14-2005, 05:40 AM   #4
heltreko
Member
 
Registered: Mar 2005
Location: Stockholm, Sweden
Distribution: Slackware, Zenwalk
Posts: 141

Rep: Reputation: 15
Hi again

I'm not sure what you mena with
Quote:
...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.

Quote:
Thank you.
You're welcome. :-)
 
Old 12-14-2005, 05:52 AM   #5
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Thank you yet again.

You recommended the following command:

Code:
 sh ./NVIDIA-Linux-x86-1.0-8174-pkg1.run
I guess I have a real beginner's question now: what is the function of the ./ bit before the file name?.

Thank you again.
 
Old 12-14-2005, 07:49 AM   #6
heltreko
Member
 
Registered: Mar 2005
Location: Stockholm, Sweden
Distribution: Slackware, Zenwalk
Posts: 141

Rep: Reputation: 15
./ is just to define that the filer NVIDIA-Linux-x86-1.0-8174-pkg1.run lies in your current working directory.
 
Old 12-15-2005, 12:08 PM   #7
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
Quote:
Originally Posted by heltreko
./ is just to define that the filer NVIDIA-Linux-x86-1.0-8174-pkg1.run lies in your current working directory.
Just to be a pedantic ass about it, passing a script as an argument to sh doesn't require ./ before the script name.
 
Old 12-15-2005, 01:13 PM   #8
heltreko
Member
 
Registered: Mar 2005
Location: Stockholm, Sweden
Distribution: Slackware, Zenwalk
Posts: 141

Rep: Reputation: 15
Quote:
Originally Posted by vls
Just to be a pedantic ass
LOL!

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.

Last edited by heltreko; 12-15-2005 at 01:14 PM.
 
Old 12-15-2005, 02:09 PM   #9
slack_prad
Member
 
Registered: Nov 2005
Location: Chennai, India
Distribution: Ubuntu, Slackware 10.2
Posts: 31

Rep: Reputation: 15
aren't there drivers for nvidia on the 2.6 kernel ? coz i remember seeing them when i was doing a menuconfig and selecting stuff
 
Old 12-15-2005, 03:32 PM   #10
soulestream
Member
 
Registered: Nov 2005
Posts: 183

Rep: Reputation: 30
Quote:
I put it in /usr/src and unpack it with
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.

2.6 Kernel howto

soule

edit

Quote:
aren't there drivers for nvidia on the 2.6 kernel ? coz i remember seeing them when i was doing a menuconfig and selecting stuff
you can use "nv" for nvidia drivers, unless you want 3d features i beleive.

Last edited by soulestream; 12-15-2005 at 03:34 PM.
 
  


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
beginners questions howarddevore Ubuntu 2 07-12-2005 08:28 PM
Some beginners questions.... omrisela Linux - General 0 04-05-2004 10:13 AM
kernel compiling questions panzram Linux - General 1 06-26-2003 08:34 AM
Kernel compiling questions Mentecapto Linux - Newbie 1 09-26-2002 04:20 PM
Kernel compiling questions mistery Linux - Newbie 1 07-19-2002 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:02 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