LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-28-2004, 10:40 AM   #1
LinuxOG
LQ Newbie
 
Registered: Aug 2003
Posts: 22

Rep: Reputation: 15
slackware kernel source install (kernel 2.6.6) ?


Hello,

i have installed the new kernel 2.6.6 from here: ftp://ftp.slackware.com/pub/slackwar...s/linux-2.6.6/

the kernel works great

now, i want to install the kernel source, because i want to install the nvidia driver...

i have downloaded this file "linux-2.6.6.tar.bz2" from www.kernel.org, but i dont now how i install the kernel-source.

how can i install the kernel source. iam using slackware-current

thx

greets

linuxog
 
Old 05-28-2004, 10:46 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
just untar the package and........
move the directory to /usr/src/ and.......
change the symlink to point to the new kernel directory.......
and then update your lilo or grub............
 
Old 05-28-2004, 10:56 AM   #3
LinuxOG
LQ Newbie
 
Registered: Aug 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by 320mb

change the symlink to point to the new kernel directory.......
thx for reply, but how can i set a symlink ?

greets
 
Old 05-28-2004, 11:24 AM   #4
dmadcat
Member
 
Registered: Aug 2003
Location: Columbus, OH
Distribution: Slackware
Posts: 32

Rep: Reputation: 15
Check out the kernel compiling for newbies guide at the top of the forum. It'll give you everything you need to know about compiling a kernel from source.
 
Old 05-28-2004, 11:27 AM   #5
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
if not then login as root and chnage to /usr/src/

now frist remove the old link like this: rm linux

now make the new link like so: ln -s linux-2.6.6 linux

and bingo we have a link to the kernel source
 
Old 05-28-2004, 11:38 AM   #6
LinuxOG
LQ Newbie
 
Registered: Aug 2003
Posts: 22

Original Poster
Rep: Reputation: 15
thx@all. the symlink works.

now i want to install the nvidia driver but i get this error:
Code:
 ERROR:Unable to determine the NVIDIA kernel module filename
i have try it in the "normal" way and with --kernel-source-path.... but it doesnt work.

any suggestions ?

greets
 
Old 05-28-2004, 12:58 PM   #7
LinuxOG
LQ Newbie
 
Registered: Aug 2003
Posts: 22

Original Poster
Rep: Reputation: 15
can anybody help me ?
 
Old 05-28-2004, 01:05 PM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
./Your_NVIDIA_INSTALLER --kernel-name=2.6.6

Last edited by keefaz; 05-28-2004 at 01:07 PM.
 
Old 05-28-2004, 01:12 PM   #9
LinuxOG
LQ Newbie
 
Registered: Aug 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by keefaz
./Your_NVIDIA_INSTALLER --kernel-name=2.6.6
hello,

that dosnt help. same error.

greets
 
Old 05-28-2004, 01:55 PM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
what is the output in your
ls /lib/modules/
?
 
Old 05-28-2004, 01:59 PM   #11
LinuxOG
LQ Newbie
 
Registered: Aug 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by keefaz
what is the output in your
ls /lib/modules/
?
Code:
ogu@night:~$ ls /lib/modules/
2.4.22/  2.4.26/  2.6/  2.6.6/
ogu@night:~$
EDIT: with the kernel 2.4.22 the nvidia driver works great

Last edited by LinuxOG; 05-28-2004 at 02:00 PM.
 
Old 05-28-2004, 02:04 PM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Assuming you tar xjvf linux-2.6.6.tar.bz2 in /usr/src
and then ln -s linux-2.6.6 linux
does it work :
./Your_NVIDIA_INSTALLER -k=2.6.6 --kernel-source-path=/usr/src/linux

[ edit ]

Also to be sure, what is the output for uname -r ?

If it still does not work, I think it is time to learn how to configure, compile and install a new kernel (you end with a good kernel adapted to your system)

Last edited by keefaz; 05-28-2004 at 02:08 PM.
 
Old 05-28-2004, 02:26 PM   #13
LinuxOG
LQ Newbie
 
Registered: Aug 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by keefaz

Also to be sure, what is the output for uname -r ?
Code:
ogu@night:~$ uname -r
2.6.6
ogu@night:~$
 
Old 05-28-2004, 02:37 PM   #14
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
What is the full name of your nvidia installer package please ?
Does the directory /lib/modules/2.6.6/kernel/drivers/video/ exist ?

And Does it work :
./Your_NVIDIA_INSTALLER -k=2.6.6 --kernel-source-path=/lib/modules/2.6.6/build
 
Old 05-28-2004, 02:51 PM   #15
LinuxOG
LQ Newbie
 
Registered: Aug 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by keefaz
What is the full name of your nvidia installer package please ?
NVIDIA-Linux-x86-1.0-5336-pkg1.run
Quote:
Does the directory /lib/modules/2.6.6/kernel/drivers/video/ exist ?
yes

Quote:
And Does it work :
./Your_NVIDIA_INSTALLER -k=2.6.6 --kernel-source-path=/lib/modules/2.6.6/build
no, same error

i think i need to compile the kernel or have you more ideas?

big thx!
 
  


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
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
10.1 install kernel and kernel-source different - build fails Feebles Mandriva 2 06-10-2005 06:58 PM
how to install kernel source for kernel 2.6 appas Red Hat 1 09-27-2004 07:07 AM
Slackware 9.0 kernel source acom99 Slackware 17 09-26-2003 12:09 PM
slackware 9.0 kernel source sharrej Slackware 9 08-07-2003 04:55 PM

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

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