compile error for kernel 2.6.11.7 on slack 10.1 nvidia trouble
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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
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!
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?
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.