LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-12-2005, 12:20 PM   #1
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Rep: Reputation: 30
compile error for kernel 2.6.11.7 on slack 10.1 nvidia trouble


its the first time i compile a new kernel.

long story short. i browsed through the kernel options, i took my time.

basically, the kernel loads fine. some fatal erros... mostly modules, i don't really care about those.

when it comes to my nvidia. which i remembered to apply in the kernel.

i install the drivers again on this kernel, but i get an error, and i can't install it.

its a nobrainer here, either it will work some time in the future, or am doing a big mistake.

i followed the guide from this site on kernel 2.6.10
http://www.linuxquestions.org/questi...icle&artid=408

i did NOT do the optional steps. was that it???

i obviosly did not use pat's 2.6.10 config file...

well, if anybody has had a similar problem, it be good to know. for the time being, im gonna use good ol kernel 2.4.29 i guess...
 
Old 04-12-2005, 12:53 PM   #2
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
I suspect you enabled the kernel's nvidia driver in the kernel config -- you want to either leave this out, or compile it as a module <M> not <*>.

The nvidia driver can't 'overpower' the kernel's; meaning you can't have both drivers loaded at once. If you compile the kernel's version in, you won't be able to install nvidia's proprietary binary.

--Shade

PS - those fatal errors at boot are because Slackware's boot scripts are referring to modules to load which no longer exist since the recompile -- you can comment out the references to them in /etc/rc.d/rc.modules
 
Old 04-12-2005, 02:40 PM   #3
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,374

Rep: Reputation: 164Reputation: 164
Quote:
Originally posted by Shade

PS - those fatal errors at boot are because Slackware's boot scripts are referring to modules to load which no longer exist since the recompile -- you can comment out the references to them in /etc/rc.d/rc.modules
I wouldn't pay attention to those fatals. However, I would not comment them out either - you may need them if you boot the old kernel. I would leave it as is unless you are ready to delete the old kernel.
 
Old 04-12-2005, 06:49 PM   #4
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Original Poster
Rep: Reputation: 30
guys, you are of great help, my nvidia drivers work like a charm... but i had some trouble

i forgot to load ALSA. i just put N on it! dammn...

i want to know if i can reconfigure the kernel from where i left it, or do i need to start all over again...

although, i wouldn't mind doing it, i never knew configuring a kernel would be so much fun, my computer feels faster... a 2.6 kernel is way better than 2.4

any suggestions so i don't do it all over again, its still time consuming.
 
Old 04-12-2005, 07:48 PM   #5
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Original Poster
Rep: Reputation: 30
actually i recompiled everything, but i can't get alsa to work as a module...

if i run alsaconf it states that it cannot find my pci card....
i wonder if thats another bad mistake with the kernel config...

im tired, i just recompiled like 3 times.

if anyone has any good ideas, please answer, i don't like a silent computer without music...
 
Old 04-12-2005, 08:35 PM   #6
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,374

Rep: Reputation: 164Reputation: 164
When you compile the kernel, alsa will be fine as a module. What you are probably lacking is the driver for your soundcard. This can be a module also, but you have to find it and select it.

When you enter your build tree, just run menuconfig or xconfig (whatever you prefer), make your new selections, save and exit. Just type make. It will only build your new stuff. This is assuming you did not do a "make clean" after the last compile.

Delete the kernel that does not have sound, along with that System Map, and the module directory. Do not just let it overwrite the old stuff. You won't have to change lilo if you use the same naming scheme, but re-run lilo anyway when you are done.

The 2.6 kernel makes a recompile a lot easier.
 
Old 04-12-2005, 10:13 PM   #7
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Original Poster
Rep: Reputation: 30
one more question, do i delete the old kernel image and system.map, before or after i run make???
 
Old 04-13-2005, 04:14 AM   #8
zoropio
LQ Newbie
 
Registered: Feb 2004
Location: Sydney
Distribution: FC4
Posts: 29

Rep: Reputation: 15
kernel compile error for nvidia

I tried to recompile the new 2.6.11-4.14 fedora 3 kernel for nvidia and it fail. what a surprised, nvidia produces such solid drivers as well as providing magnificent support.


now that i got that out of me, here is a copy of tail of the log file:

/tmp/selfgz4319/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
`_get_phys_address':
/tmp/selfgz4319/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2509: error:
request for member `pgd' in something not a structure or union
/tmp/selfgz4319/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
`nv_agp_init':
/tmp/selfgz4319/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2992: warning
: `inter_module_put' is deprecated (declared at include/linux/module.h:581)
make[3]: *** [/tmp/selfgz4319/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.o
] Error 1
make[2]: *** [_module_/tmp/selfgz4319/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
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
 
Old 04-13-2005, 04:20 AM   #9
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
You should try a newer version of the driver, latest is 7174: http://download.nvidia.com/XFree86/L...-7174-pkg1.run (read the license before :P http://www.nvidia.com/object/nv_swlicense.html)
 
Old 04-13-2005, 05:59 AM   #10
kule
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 87

Rep: Reputation: 16
Quote:
Originally posted by salviadud
one more question, do i delete the old kernel image and system.map, before or after i run make???
From where... the /usr/src/linux-2.6.XX dir or from the /boot dir? If from the first you should never delete them, because before you start to configure your kernel you must start 'make mrproper', to clean everything up. And, for the /boot dir I leave them for a while, I just rename them like this:
'vmlinuz-2.6.10-b1' is my first build of the kernel,
'vmlinuz-2.6.10-b2' is my second build etc.


Quote:
Originally posted by salviadud
i forgot to load ALSA. i just put N on it! dammn...
Why to use ALSA from the kernel at all, because the version in the kernel is older then the one on ALSA-project. I never compile ALSA in the kernel. I download the latest version of ALSA driver, lib, oss and utills. Compile them in that order and then run alsaconf to detect my card, after that alsamixer to setup volumes, all done!

Last edited by kule; 04-13-2005 at 06:01 AM.
 
Old 04-13-2005, 07:18 AM   #11
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Original Poster
Rep: Reputation: 30
im in real doubt here...
im running slackware 2.4 and 2.6

i had alsa on 2.4 loaded as a module but from a fresh slackware install...

so, if i were to just uninstall the package, and install it again, will that work?
or should i uninstall the alsa package and download it directly from alsa, then compile it from source on my new kernel?
 
Old 04-13-2005, 07:29 AM   #12
kule
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 87

Rep: Reputation: 16
Quote:
Originally posted by salviadud
im in real doubt here...
so, if i were to just uninstall the package, and install it again, will that work?
or should i uninstall the alsa package and download it directly from alsa, then compile it from source on my new kernel?
Uninstall all alsa packages, download directly from alsa and then compile
 
Old 04-13-2005, 03:51 PM   #13
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Original Poster
Rep: Reputation: 30
i get this freakin error when i do a make install on the alsa drivers.... is there an easier way??? how did you guys install alsa on a 2.6 kernel?

cp: cannot stat `snd-hwdep.ko': No such file or directory
cp: cannot stat `snd-page-alloc.ko': No such file or directory
cp: cannot stat `snd-pcm.ko': No such file or directory
cp: cannot stat `snd-rawmidi.ko': No such file or directory
cp: cannot stat `snd-rtctimer.ko': No such file or directory
cp: cannot stat `snd-timer.ko': No such file or directory
cp: cannot stat `snd.ko': No such file or directory
 
Old 04-14-2005, 04:49 AM   #14
kule
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 87

Rep: Reputation: 16
Which version did you download? 1.08?

I didn't have any problems with alsa compiling. Did you do make install as a root?
 
Old 04-14-2005, 09:25 PM   #15
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Original Poster
Rep: Reputation: 30
yes, i did install as root

but... maybe im not doing it in the right order, the alsa wiki is down . anyways, in which order do i do it? the libraries first? the drivers first? in what dir should i do it? i extracted the files to the /opt directory.

also, i think i might of screwed up the kernel because when it came to the sound settings, i just put a big N there... i didn't want the kernel to load the modules. but, im guessing i turned off the soundcore. would that be it? another recompile (i´ve had like 5, im used to it...)

any help would be appreciated, im not that experienced in linux.
 
  


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
Kernel compile trouble tek1024 Linux - General 5 09-26-2004 05:12 PM
NVIDIA Driver Error after Kernel Compile lasindi Linux - General 2 04-26-2004 06:55 PM
slack 9 with NVidia drivers; cannot compile opengl programs gunter Slackware 5 07-12-2003 11:35 AM
slack 9.0 kernel compile mustafa Slackware 1 04-20-2003 06:50 PM
slack 9.0. Where do I compile the kernel? Schizo265 Slackware 3 03-28-2003 07:09 AM


All times are GMT -5. The time now is 07:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration