Jump to content

2005LE and Nvidia problems [solved]


Dakota
 Share

Recommended Posts

I have a nvidia build problem, hopefully someone can help. I followed all the steps in the nVidia documentation all to see a make error. Take a look at my log file and please help!

 

 

 

 

 

Using: nvidia-installer ncurses user interface

-> License accepted.

-> No precompiled kernel interface was found to match your kernel; would you li

ke the installer to attempt to download a kernel interface for your kernel f

rom the NVIDIA ftp site

-> No matching precompiled kernel interface was found on the NVIDIA ftp site;

this means that the installer will need to compile a kernel interface for

your kernel.

-> Kernel source path: '/lib/modules/2.6.11-6mdk/source'

-> Performing CC test with CC="cc".

-> Performing rivafb check.

-> Performing rivafb module check.

WARNING: Your kernel was configured to include rivafb support as

a loadable kernel module.

 

The rivafb driver conflicts with the NVIDIA driver; the

NVIDIA kernel module will still be built and installed,

but be aware that the NVIDIA driver will not be able to

function properly if the rivafb module is loaded!

-> Cleaning kernel module build directory.

executing: 'cd ./usr/src/nv; make clean'...

rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.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 *~

rm -f -rf .tmp_versions

-> Building kernel module:

executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.11-6mdk/sou

rce SYSOUT=/lib/modules/2.6.11-6mdk/build'...

Your kernel was configured to include rivafb support as

a loadable kernel module.

 

The rivafb driver conflicts with the NVIDIA driver; the

NVIDIA kernel module will still be built and installed,

but be aware that the NVIDIA driver will not be able to

function properly if the rivafb module is loaded!

 

*** Failed rivafb module sanity check, but continuing! ***

 

 

NVIDIA: calling KBUILD...

make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.11-6mdk/build KBUILD_VERBOSE=1 -C

/lib/modules/2.6.11-6mdk/source SUBDIRS=/root/tmp/selfgz8469/NVIDIA-Linux-x8

6-1.0-6629-pkg1/usr/src/nv modules

make -C /lib/modules/2.6.11-6mdk/build \

KBUILD_SRC=/usr/src/linux-2.6.11-6mdk KBUILD_VERBOSE=1 \

KBUILD_CHECK= KBUILD_EXTMOD="/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-

pkg1/usr/src/nv" \

-f /usr/src/linux-2.6.11-6mdk/Makefile modules

mkdir -p /root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/.tmp

_versions

make -f /usr/src/linux-2.6.11-6mdk/scripts/Makefile.build obj=/root/tmp/self

gz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv

echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /root/tmp/selfgz846

9/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv_compiler.h

cc -Wp,-MD,/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/

.nv.o.d -nostdinc -isystem /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/includ

e -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.11-6mdk/include -I

/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv -Wall -Wstric

t-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding

-O2 -fno-omit-frame-pointer -pipe -mpreferred-stack-boundary=2 -fno-unit-at-

a-time -march=i686 -I/usr/src/linux-2.6.11-6mdk/include/asm-i386/mach-defaul

t -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -I/root/tmp

/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv -Wall -Wimplicit -Wret

urn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -

Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_

KERNEL_NAMES -D__KERNEL__ -DMODULE -

DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_V

ERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6629 -DNV_UNIX -DNV_LINUX -DNV

_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_REMAP_PFN_RANGE_PRESENT

-DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIM

PLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DMODULE -DKBUILD_BASENAME=nv

-DKBUILD_MODNAME=nvidia -c -o /root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629

-pkg1/usr/src/nv/nv.o /root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/us

r/src/nv/nv.c

In file included from include/linux/dmapool.h:14,

from include/linux/pci.h:863,

from /root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/us

r/src/nv/nv-linux.h:75,

from /root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/us

r/src/nv/nv.c:14:

include/asm/io.h: In function `check_signature':

include/asm/io.h:242: warning: wrong type argument to increment

/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In func

tion `nvidia_init_module':

/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:930: war

ning: `pm_register' is deprecated (declared at include/linux/pm.h:106)

/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In func

tion `nvidia_exit_module':

/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:1051: wa

rning: `pm_unregister' is deprecated (declared at include/linux/pm.h:111)

/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In func

tion `_get_phys_address':

/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2509: er

ror: request for member `pgd' in something not a structure or union

/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In func

tion `nv_agp_init':

/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2992: wa

rning: `inter_module_put' is deprecated (declared at include/linux/module.h:

578)

make[4]: *** [/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv

/nv.o] Error 1

make[3]: *** [_module_/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/us

r/src/nv] Error 2

make[2]: *** [modules] 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.

Edited by Dakota
Link to comment
Share on other sites

Are the Mandriva kernel sources installed? Is there a /usr/src/linux in your tree?

 

Yes, Kernel-source is installed. I've tried everything I can think of and searched all over the boards. I found a few people with the same problems on linuxquestions.org but there is no solution.

Link to comment
Share on other sites

Are you compiling outside of x? Please describe your steps. Don't tell me what the manual says, tell me what you are actually doing.

Link to comment
Share on other sites

Are you compiling outside of x? Please describe your steps. Don't tell me what the manual says, tell me what you are actually doing.

 

These are the steps I am taking.

 

1. Modify XF86Config Change "nv" to "nvidia" Comment out " Load Dri" and or Glcore Make sure Load glx

2. change init to 3

3. Reboot

4. Login at command prompt at root

5. sh <drivername>

Edited by Dakota
Link to comment
Share on other sites

I had the same problem with 6629. For bypassing it it was necessary to edit a line in the nv.c file, unfortunately I can't reecall which one right now. Why don't you try a newer NVIDIA driver? This issue has been resolved...

 

 

Thank you so much, I thought 6629 was the latest driver. I did try the newer 7174 driver and got the Unable to load the kernel module 'nvidia.ko' error.

 

Where do I go from here?

[root@localhost ~]# rpm -qa | grep kernel

kernel-2.6.11.6mdk-1-1mdk

kernel-source-2.6-2.6.11-6mdk

Link to comment
Share on other sites

Ok succesfully compiled! Nvidia.ko error What to do?

 

NVIDIA: left KBUILD.

-> 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: error inserting './usr/src/nv/nvidia.ko':

-1 Invalid module format

-> Kernel messages:

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=107 DF PROTO=UDP SPT=631 DPT=631

LEN=116

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=108 DF PROTO=UDP SPT=631 DPT=631

LEN=116

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=109 DF PROTO=UDP SPT=631 DPT=631

LEN=116

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=110 DF PROTO=UDP SPT=631 DPT=631

LEN=116

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=111 DF PROTO=UDP SPT=631 DPT=631

LEN=116

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=112 DF PROTO=UDP SPT=631 DPT=631

LEN=116

nvidia: version magic '2.6.11-6mdkcustom 686 gcc-3.4' should be '2.6.11-6mdk

686 gcc-3.4'

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=113 DF PROTO=UDP SPT=631 DPT=631

LEN=116

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=114 DF PROTO=UDP SPT=631 DPT=631

LEN=116

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=115 DF PROTO=UDP SPT=631 DPT=631

LEN=116

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=116 DF PROTO=UDP SPT=631 DPT=631

LEN=116

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=117 DF PROTO=UDP SPT=631 DPT=631

LEN=116

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=118 DF PROTO=UDP SPT=631 DPT=631

LEN=116

Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=192.168.1.255

LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=119 DF PROTO=UDP SPT=631 DPT=631

LEN=116

nvidia: version magic '2.6.11-6mdkcustom 686 gcc-3.4' should be '2.6.11-6mdk

686 gcc-3.4'

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.

Link to comment
Share on other sites

It is really curious. I reinstalled to check it out and could not duplicate the error, using the latest Nvidia and the same kernel with kernel sources. I'm glad you found a solution!

Link to comment
Share on other sites

Can I ask why you used such an old driver in the first instance and secondly why you changed the install routine from what is suggested ???

The install routine suggests that you do the actual driver install first, then use VI or VIM to change the nv to nvidia and as I remember makes no mention of changing anything else at that stage. I have done literally many dozens of nvidia driver installs on now 5 different machines and never had a problem from even the first one I did, because I stick strictly to the advised routine and did not take it upon myself to do it differently. Lets make quite clear, I am not a computer expert but I have learned to follow laid out routines. In fact the nvidia site gives the same recommended procedure so they should know.

Get the latest Nvidia driver and follow the recommended routine even if in theory, small changes should not make a difference.

Then you should have success. Cheers. John.

Link to comment
Share on other sites

I see you don't use a stock kernel... what have you added in your custom one?

 

Nothing, all I have done is

 

1. Install Mandriva LE2005

2. Run Mandrake Update

3. Setup Printer

4. Try to Install Nvidia Drivers

 

I did find a post with a small amount of information about mdkcustom https://mandrivausers.org/index.php?act=ST&f=26&t=25178

 

And I found this file:///usr/src/linux/.config = Linux kernel version: 2.6.11-6mdkcustom

file:///usr/src/linux-2.6.11-6mdk/.config = # Linux kernel version: 2.6.11-6mdkcustom

 

.STUMPED.

 

:help:

Edited by Dakota
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...