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 |
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............ |
Quote:
greets:) |
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. ;)
|
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 |
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 any suggestions ? greets :) |
can anybody help me ?
|
./Your_NVIDIA_INSTALLER --kernel-name=2.6.6
|
Quote:
that dosnt help. same error. :( greets |
what is the output in your
ls /lib/modules/ ? |
Quote:
Code:
ogu@night:~$ ls /lib/modules/ |
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) |
Quote:
Code:
ogu@night:~$ uname -r |
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 |
Quote:
Quote:
Quote:
i think i need to compile the kernel or have you more ideas? big thx!:) |
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 |
Quote:
there is no version.h :confused: greets |
You replied before I edit the previous post ;) Then what is the value for UTS_RELEASE in
/usr/src/linux/include/linux/version.h ? |
Quote:
greets |
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 |
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.. |
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. |
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. |