LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware kernel source install (kernel 2.6.6) ? (http://www.linuxquestions.org/questions/slackware-14/slackware-kernel-source-install-kernel-2-6-6-a-186961/)

LinuxOG 05-28-2004 11:40 AM

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

320mb 05-28-2004 11:46 AM

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

LinuxOG 05-28-2004 11:56 AM

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:)

dmadcat 05-28-2004 12:24 PM

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. ;)

ProtoformX 05-28-2004 12:27 PM

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

LinuxOG 05-28-2004 12:38 PM

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 :)

LinuxOG 05-28-2004 01:58 PM

can anybody help me ?

keefaz 05-28-2004 02:05 PM

./Your_NVIDIA_INSTALLER --kernel-name=2.6.6

LinuxOG 05-28-2004 02:12 PM

Quote:

Originally posted by keefaz
./Your_NVIDIA_INSTALLER --kernel-name=2.6.6
hello,

that dosnt help. same error. :(

greets

keefaz 05-28-2004 02:55 PM

what is the output in your
ls /lib/modules/
?

LinuxOG 05-28-2004 02:59 PM

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

keefaz 05-28-2004 03:04 PM

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)

LinuxOG 05-28-2004 03:26 PM

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:~$


keefaz 05-28-2004 03:37 PM

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

LinuxOG 05-28-2004 03:51 PM

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!:)


All times are GMT -5. The time now is 06:39 AM.