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've upgraded the kernel to 2.6.27.7 and tried installing the latest nVidia driver. The installation fails right at the end, on a kernel error:
Code:
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU
installed in this system is not supported by this NVIDIA Linux graphics
driver release.
Please see the log entries 'Kernel module load error' and 'Kernel
messages' at the end of the file '/var/log/nvidia-installer.log' for
more information.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
-1 Invalid module format
-> Kernel messages:
usb 1-1.3: New USB device found, idVendor=05e3, idProduct=0608
usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 1-1.3: Product: USB2.0 Hub
Adding 2096440k swap on /dev/hda6. Priority:-1 extents:1 across:2096440k
fuse init (API version 7.9)
EXT3 FS on hda2, internal journal
lp0: using parport0 (interrupt-driven).
lp0: console ready
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Intel ISA PCIC probe: not found.
Databook TCIC-2 PCMCIA probe: not found.
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
eth0: no IPv6 routers present
atkbd.c: Unknown key pressed (translated set 2, code 0x88 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e008 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0x88 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e008 <keycode>' to make it known.
input: ImPS/2 Generic Wheel Mouse as
/devices/platform/i8042/serio1/input/input5
psmouse.c: Wheel Mouse at isa0060/serio1/input0 lost synchronization,
throwing 2 bytes away.
nvidia: version magic '2.6.27.7-smp SMP mod_unload 686 ' should be '2.6.27.7
mod_unload 486 '
That last line about the "version magic" is what worries me. WTF is version magic, how do I fix it?
(the version magic error is also in dmesg output)
It looks to me like the nvidia installer thinks I am running the SMP kernel, which I'm not. Any ideas on how get the installer to look at the correct kernel?
If you decide to use one of the non-SMP kernels, you will need to follow the
instructions in /extra/linux-2.6.27.7-nosmp-sdk/README.TXT to modify your
kernel sources for non-SMP usage. Note that this only applies if you are
using the Slackware-provided non-SMP kernel - if you build a custom kernel,
the symlinks at /lib/modules/$(uname -r)/{build,source} will point to the
correct kernel source so long as you don't (re)move it.
And from /extra/linux-2.6.27.7-nosmp-sdk/README.TXT
Quote:
By default, the kernel in Slackware supports SMP. With as common as
multicore CPUs and SMP boards have become, this seems like the
obvious choice. The kernels are probably better for single CPU
machines, too, if they will run them.
If you have to use one of the non SMP kernels (huge.s or generic.s),
then you will need to reconfigure your kernel sources to build any
additional kernel modules. In order to compile outside kernel
modules and such, you *may* need to install non-SMP kernel-headers
(we're not entirely sure about this), and either build the kernel once
without SMP (which might take a while), or apply a patch to freshly
installed kernel sources to convert them from smp to non-SMP
(this is fast).
To switch your unmodified Slackware kernel sources from SMP to non-SMP,
run the following script in this directory:
./patch-to-non-smp.sh
If you'd rather apply these patches by hand, feel free.
At this point if you are running huge.s or generic.s, you should have
no problems building kernel modules. This has been tested here with the
latest nVidia X.Org drivers.
Thank you allend. Thank you very much.
I downloaded the kernel-headers, executed the script, installed the kernel-headers and I compiled again the driver...but succesfully now!!
Because I live in Spain. If not, you would be invited to a tons of beers! :-)
@davidehm
I appreciate your thanks, but feel that it would be much better directed to Pat V. and to ppr:kut who maintains the nVidia Slackbuild scripts.
Also, welcome to LQ. Now that you know how to ask a question, hopefully other problems may take less than a month to resolve.
PS- Please do not apologise for your English. It is very much better than my Spanish!
I'm having a similar problem building an NVidia driver for my 2.6.27.7 non-smp kernel in slack 12.2. I have run the linux-2.6.27.7-nosmp-sdk patch to no avail. I just upgraded this machine to Slack 12.2 and it will not boot the smp kernel, failing to mount hda2. In Slack 12.1 I ran the smp generic kernel without problem and built the NVidia driver without problem. My hardware is old, Athlon 1800+, MSI MB, PATA disc. Here is an excript from the nvidialog file in /var/log:
........................................................................................
make -C /lib/modules/2.6.27.7/build \
KBUILD_SRC=/usr/src/linux-2.6.27.7 \
KBUILD_EXTMOD="/tmp/selfgz4316/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv"
-f /usr/src/linux-2.6.27.7/Makefile \
modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
."; \
echo; \
/bin/false)
mkdir -p
.............................................................................................
I tried running "make oldconfig && make prepare" on my source tree but it had no effect on driver compilation, producing identical error log message. I have not yet built a custom kernel. Any ideas?
Davidehm, I'm using the non-SMP kernel because my desktop will not boot the SMP one. It did in 12.1 but not 12.2, The boot sequence stops when the boot partition mount is first attempted complaining that the /dev/hda2 does not exist. This happens with either the huge or the generic SMP kernels. Both the huge and the generic non-SMP kernel will boot, the latter with an initrd for reiserfs support. I ran the nosmp-sdk patch but the NVidia driver will not build. I was able to compile a kernel module for my Wacom Graphire tablet without issue so I think the kernel source is OK. I'm not a programmer, so I don't really know how to go about troubleshooting this further except maybe to get a new motherboard,Proc, etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.