LinuxQuestions.org

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

LinuxOG 05-28-2004 10: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 10: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 10: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 11:24 AM

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 11:27 AM

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 11:38 AM

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 12:58 PM

can anybody help me ?

keefaz 05-28-2004 01:05 PM

./Your_NVIDIA_INSTALLER --kernel-name=2.6.6

LinuxOG 05-28-2004 01: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 01:55 PM

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

LinuxOG 05-28-2004 01: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 02: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 02: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 02: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 02: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!:)

keefaz 05-28-2004 03:06 PM

More idea ? Yes but it's weird :
./NVIDIA-Linux-x86-1.0-5336-pkg1.run -k=2.6.6 --kernel-source-path=/usr/src/linux/include/linux

./NVIDIA-Linux-x86-1.0-5336-pkg1.run -k=2.6.6 --kernel-source-path=/usr/src/linux/include

And at last look in the file :
/lib/modules/2.6.6/build/include/linux/version.h

What is the value for UTS_RELEASE ?

And also this value should be the same in
/usr/src/linux/include/linux/version.h

LinuxOG 05-28-2004 03:09 PM

Quote:

Originally posted by keefaz
And at last look in the file :
/lib/modules/2.6.6/build/include/linux/version.h

What is the value for UTS_RELEASE ?

??
there is no version.h :confused:

greets

keefaz 05-28-2004 03:12 PM

You replied before I edit the previous post ;) Then what is the value for UTS_RELEASE in
/usr/src/linux/include/linux/version.h ?

LinuxOG 05-28-2004 03:15 PM

Quote:

Originally posted by keefaz
You replied before I edit the previous post ;) Then what is the value for UTS_RELEASE in
/usr/src/linux/include/linux/version.h ?

im sry, but there isnt version.h, too:rolleyes:

greets

keefaz 05-28-2004 03:36 PM

Ok I think your best way is :
download a 2.6.6 kernel from www.kernel.org
untar the file in /usr/src so you obtain a linux-2.6.6 directory in /usr/src
delete the file named 'linux' in /usr/src (a link to a directory)
ln -s linux-2.6.6 linux
./NVIDIA-Linux-x86-1.0-5336-pkg1.run -k=2.6.6 --kernel-source-path=/usr/src/linux

If that fails I can't help :(

[ edit ]
if you want compile your own kernel copy the config file for the actual kernel in /boot (named config.2.6.6 or so) and name it .config in /usr/src/linux-2.6.6 directory so you will just start from a workable config, just set a few features like processor (features which you are sure) then make and make modules_install, easy

iotc247 05-28-2004 07:46 PM

Yeah i suggest compiling the kernel yourself.. But first try to do this.. Cd to the directory you have the file in like this

cd /path/to/directory

Then when your in that directory do

sh NVIDIA-Linux-x86-1.0-5336-pkg1.run

If that doesnt work then compile your own kernel..

brenton 05-28-2004 08:45 PM

I think your missing the 2.6.6 kernel headers. Atm you should have the kernel-headers-2.4.22-i386-1.tgz package installed, but they won't work with 2.6. I don't think you'll need to compile the kernel. Just remove the 2.4 package and copy:

The folders:
/usr/src/linux-2.6.6/include/asm-generic
/usr/src/linux-2.6.6/include/asm-i386
/usr/src/linux-2.6.6/include/linux

And the symlink
/usr/src/linux-2.6.6/include/asm -> /usr/include/asm-i386

Over to /usr/src/include.

So you'll be able to compile programs against the 2.6 kernel, but not against the 2.4 kernel anymore.

Sadist 06-06-2004 04:34 PM

Kernel
 
cd /usr/src/linux-2.6.6
make mrproper
make menuconfig (console) or make xconfig (X, you need tcl\tk installed)
load altenative config file (/boot/config-2.6.6) from running kernel
and fix what you need
at last read the manual how to compile 2.6.6 kernel and compile ;]


All times are GMT -5. The time now is 11:50 PM.