LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-26-2004, 12:19 PM   #1
Louis_Carole
Member
 
Registered: Feb 2004
Location: Oxford, OH
Distribution: LFS 5.1.1, Slackware 9.1
Posts: 94

Rep: Reputation: 15
Where is Slackware Kernel Source?


Dear All,

I installed Slackware 9.1 from a single CD image. I am currently poking around with my nVIDIA GeForce 4 graphics card to get the greatest resolutions available to my system, and I think I've come to the point at which I have to recompile my kernel to get any further. When I ran NVIDIA-Linux-x86-1.0-5336-pkg1.run, it wasn't able to find my kernel source code. Where is, or where can I get, this source code? Thanks.

- Ben
 
Old 03-26-2004, 12:47 PM   #2
MadRabbit
LQ Newbie
 
Registered: Mar 2003
Location: Canada
Distribution: Slackware 8.x, 9.x
Posts: 26

Rep: Reputation: 15
On my Slack 9.1 it was on Disc 1 in
/slackware/k/kernel-source-2.4.22-noarch-3.tgz

You could also download it from www.kernel.org

J
 
Old 03-26-2004, 12:55 PM   #3
MrSmee
Member
 
Registered: Sep 2003
Location: Plano, TX
Distribution: Slack
Posts: 84

Rep: Reputation: 15
Slackware Kernel Source

The kernel source is located on CD1 in the /slackware/k/ directory
I've recently done the same install you are attempting so I'll go through it the Smee Way (all this stuff needs to be done as root btw)

Code:
mount /mnt/cdrom
cd /mnt/cdrom/slackware/k
./install-packages
Just accept the defaults here, there is only one package in that directory

Code:
cd /
umount /mnt/cdrom
I do this bit just because it's a habit for me to unmount the CDROM once I'm done with it

now change to the directory where you've got the NVIDIA installer located

Code:
sh NVIDIA-I-Can'tRememberthenameofthepackage.run
once again, accepting the defaults as they are
when the install is complete

Code:
jed /etc/X11/XF86Config
and change whatever driver is being loaded (probably either vesa or nv) to nvidia

Now, save the XF86Config, log in as a regular user and

Code:
startx
you should get a pretty little NVIDIA splash screen and X will start as advertised

Luck
Smee
 
Old 03-26-2004, 06:35 PM   #4
Louis_Carole
Member
 
Registered: Feb 2004
Location: Oxford, OH
Distribution: LFS 5.1.1, Slackware 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
Dear All,

I had no "k" package directory on my slackware CD. I downloaded 2.6.4 source from www.kernel.org and ended up putting the untarred mass under /usr/local/src. Is that a good place to put it?

I configured and compiled and made and installed (and frowned a lot) and at last got /usr/local/src/linux-2.6.4/arch/i386/boot/bzImage. It works as a kernel. But it does not solve the nVIDIA problem. That problem speaks volumes, as below:

---NVIDIA-I.LOG---
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Mar 26 20:55:53 2004

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel source path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you like the installer to attempt to download a kernel interface for your kernel from the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.6.4/build'
-> Performing cc_version_check with CC="cc".
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o os-agp.o os-interface.o os-registry.o nv.o os-agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.4/build'...
CC scripts/empty.o
MKELF scripts/elfconfig.h
HOSTCC scripts/file2alias.o
HOSTCC scripts/modpost.o
HOSTCC scripts/sumversion.o
HOSTLD scripts/modpost
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
CC arch/i386/kernel/asm-offsets.s
CHK include/asm-i386/asm_offsets.h
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz360/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv_compiler.h
CC [M] /tmp/selfgz360/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.o
/tmp/selfgz360/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1185: warning:
initialization from incompatible pointer type
CC [M] /tmp/selfgz360/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.o
CC [M] /tmp/selfgz360/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-interface.o
CC [M] /tmp/selfgz360/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-registry.o
LD [M] /tmp/selfgz360/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nvidia.o
Building modules, stage 2.
MODPOST
CC drivers/net/dummy.mod.o
LD [M] drivers/net/dummy.ko
CC /tmp/selfgz360/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nvidia.mod.o
LD [M] /tmp/selfgz360/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nvidia.ko
-> done.
-> Kernel module compilation complete.
ERROR: Unable to load the kernel module 'nvidia.ko'. This is most likely
because the kernel module was built using the wrong kernel source files.
Please make sure you have installed the kernel source files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel source
files are installed, you may specify the kernel source path with the
'--kernel-source-path' commandline option.
-> Kernel module load error: insmod: QM_MODULES: Function not implemented
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

If this means anything to anyone, let me know.
 
Old 03-26-2004, 07:12 PM   #5
thewizard20
Member
 
Registered: Sep 2003
Location: ny
Distribution: slackware 9.1
Posts: 73

Rep: Reputation: 15
do you have module-init-tools installed
 
Old 03-26-2004, 10:19 PM   #6
Louis_Carole
Member
 
Registered: Feb 2004
Location: Oxford, OH
Distribution: LFS 5.1.1, Slackware 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
Dear All,

I feel like this is hand-holding... I apologize and will gladly take any advise as to what documentation I should read before proceding... but I'm willing to bulldoze through it, too.

I downloaded module-init-tools-3.0-i486-1.tgz, then gzip -d and tar -xf'd. I ended up with several directories pretending to be sbin, bin, usr, and etc, along with an install directory with a file named doinst.sh and another something-desc. What do I do now?

Thank you for your patience.

- Ben
 
Old 03-27-2004, 08:53 AM   #7
thewizard20
Member
 
Registered: Sep 2003
Location: ny
Distribution: slackware 9.1
Posts: 73

Rep: Reputation: 15
you dont need to extract the file you just need to run installpkg module-init-tools-3.1-i486-1.tgz
 
Old 03-27-2004, 02:43 PM   #8
Louis_Carole
Member
 
Registered: Feb 2004
Location: Oxford, OH
Distribution: LFS 5.1.1, Slackware 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
Dear thewizard20,

Kahplah! Thank you kindly.

- Ben
 
Old 03-27-2004, 05:07 PM   #9
thewizard20
Member
 
Registered: Sep 2003
Location: ny
Distribution: slackware 9.1
Posts: 73

Rep: Reputation: 15
does the nvidia driver install know for you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
slackware kernel source install (kernel 2.6.6) ? LinuxOG Slackware 22 06-06-2004 05:34 PM
Slackware 9.0 kernel source acom99 Slackware 17 09-26-2003 01:09 PM
slackware 9.0 kernel source sharrej Slackware 9 08-07-2003 05:55 PM
Slackware 9.0 Kernel Source and Compile PrimaryDataLoop Slackware 7 05-19-2003 10:32 PM
Can't compile source code in Slackware 9.0 kernel 2.4.20) GrandTheft Slackware 2 04-29-2003 11:52 AM


All times are GMT -5. The time now is 04:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration