Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Nvidia-kernel and 2.6.9-r6 is fucked up
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MagnusBerg
Guru
Guru


Joined: 07 Oct 2003
Posts: 370
Location: Burgsvik, Gotland, Sweden

PostPosted: Wed Dec 01, 2004 11:47 pm    Post subject: [SOLVED] Nvidia-kernel and 2.6.9-r6 is fucked up Reply with quote

Then I compile nvidia-kernel-1.0.6111-r3 with gentoo-dev-source-2.6.9-r6 portage complains that /usr/src/linux-2.6.9-gentoo-r6/arch/x86/Makefile isn't there. This is absoloutly true. But this file isn't in the gentoo-dev-source-2.6.9-r4 source-tree ether. But with r4 there is no complains and the nvidia module works OK. With r6 it compiles and then I can't find the module. Can anybody help me???

The compiling starts with this messages:
(For the few of you who don't understand Swedish here comes a lesson:
"Filen eller katalogen finns inte" = "The file or the directory can't be found"
"Ingen regel för att skapa målet" = "No rule to create the target"
"Stannar" = "Stop")
Code:
emerge nvidia-kernel
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.6111-r3 to /
x86
>>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-6111-pkg1.run
x86
 * Determining the location of the kernel source code
Makefile:500: /usr/src/linux-2.6.9-gentoo-r6/arch/x86/Makefile: Filen eller kata
logen finns inte
make: *** Ingen regel för att skapa målet "/usr/src/linux-2.6.9-gentoo-r6/arch/x
86/Makefile".  Stannar.
Makefile:500: /usr/src/linux-2.6.9-gentoo-r6/arch/x86/Makefile: Filen eller kata
logen finns inte
make: *** Ingen regel för att skapa målet "/usr/src/linux-2.6.9-gentoo-r6/arch/x
86/Makefile".  Stannar.
Makefile:500: /usr/src/linux-2.6.9-gentoo-r6/arch/x86/Makefile: Filen eller kata
logen finns inte
make: *** Ingen regel för att skapa målet "/usr/src/linux-2.6.9-gentoo-r6/arch/x
86/Makefile".  Stannar.
Makefile:500: /usr/src/linux-2.6.9-gentoo-r6/arch/x86/Makefile: Filen eller kata
logen finns inte
make: *** Ingen regel för att skapa målet "/usr/src/linux-2.6.9-gentoo-r6/arch/x
86/Makefile".  Stannar.
Makefile:500: /usr/src/linux-2.6.9-gentoo-r6/arch/x86/Makefile: Filen eller kata
logen finns inte
make: *** Ingen regel för att skapa målet "/usr/src/linux-2.6.9-gentoo-r6/arch/x
86/Makefile".  Stannar.
 * Found kernel source directory:
 *     /usr/src/linux
 * with sources for kernel version:
 *     ..
 * Checking for suitable kernel configuration options
 * Using KV_OBJ=o
 * Checking for MTRR support...                                           [ ok ]
x86
>>> Unpacking source...
/usr/lib/portage/bin/ebuild.sh: line 73: [: too many arguments
Creating directory NVIDIA-Linux-x86-1.0-6111-pkg1
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-6111.........
................................................................................
................................................................................
.................................
/usr/lib/portage/bin/ebuild.sh: line 32: [: too many arguments
>>> Source unpacked.


x86
 * Preparing nvidia module


And ends with this:
Code:
>>> Install nvidia-kernel-1.0.6111-r3 into /var/tmp/portage/nvidia-kernel-1.0.6111-r3/image/ category media-video
 * Installing nvidia module
man:
>>> Completed installing into /var/tmp/portage/nvidia-kernel-1.0.6111-r3/image/

>>> Merging media-video/nvidia-kernel-1.0.6111-r3 to /
x86
--- /etc/
--- /etc/modules.d/
>>> /etc/modules.d/nvidia
--- /lib/
--- /lib/video/
>>> /lib/video/nvidia.o
--- /lib/modules/
--- /usr/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/nvidia-kernel-1.0.6111-r3/
>>> /usr/share/doc/nvidia-kernel-1.0.6111-r3/README.gz
--- /sbin/
>>> /sbin/NVmakedevices.sh
>>> Safely unmerging already-installed instance...
x86
--- !mtime obj /usr/share/doc/nvidia-kernel-1.0.6111-r3/README.gz
--- !mtime obj /sbin/NVmakedevices.sh
--- !mtime obj /lib/video/nvidia.o
--- cfgpro obj /etc/modules.d/nvidia
--- cfgpro dir /etc/modules.d
--- !empty dir /usr/share/doc/nvidia-kernel-1.0.6111-r3
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr
--- !empty dir /sbin
--- !empty dir /lib/video
--- !empty dir /lib/modules
--- !empty dir /lib
--- !empty dir /etc
x86
>>> original instance of package unmerged safely.
x86
            * Updating module dependencies for .....                                 [ ok ]
 * Updating modules.conf...                                               [ ok ]
 * If you would like to load this module automatically upon boot
 * please type the following as root:
 *     # echo "nvidia" >> /etc/modules.autoload.d/kernel-.

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
>>> media-video/nvidia-kernel-1.0.6111-r3 merged.
x86

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.


100 message more and I become Guru :-)


Last edited by MagnusBerg on Thu Dec 02, 2004 12:19 am; edited 1 time in total
Back to top
View user's profile Send private message
Kagerato
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2004
Posts: 81

PostPosted: Thu Dec 02, 2004 12:00 am    Post subject: Reply with quote

I'm running a 2.6.9-r6 gentoo-dev-sources kernel with the 1.0.6111-r3 nvidia binary driver and did not experience any problem compiling either.

This line doesn't compute with me:

Quote:

>>> /lib/video/nvidia.o


From my experience, 2.6 kernels build only modules with *.ko extensions. Additionally, my nvidia.ko is located in /lib/modules/2.6.9-gentoo-r6/video .

Does your /usr/src/linux symlink point to the kernel sources that built the kernel the module will run under?

If the kernel has been built and installed already, you might want to try building nvidia-kernel while running that kernel.

Additionally, make sure the kernel sources have been recently built (in other words, that proper binaries are intact). 'make clean' or 'make mrproper' will prevent the nvidia kernel module from building [correctly, if at all].
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Thu Dec 02, 2004 12:06 am    Post subject: Reply with quote

please run emerge sync again and let us know if that helps
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
MagnusBerg
Guru
Guru


Joined: 07 Oct 2003
Posts: 370
Location: Burgsvik, Gotland, Sweden

PostPosted: Thu Dec 02, 2004 12:20 am    Post subject: Reply with quote

dsd wrote:
please run emerge sync again and let us know if that helps


It solved the problem.

Thank you both for your real fast ansvers. :-)
Back to top
View user's profile Send private message
NumaSan
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2003
Posts: 100
Location: Copenhagen

PostPosted: Thu Dec 02, 2004 6:17 pm    Post subject: Reply with quote

dsd wrote:
please run emerge sync again and let us know if that helps

Thanks, I had the same problem and it helped me too.

Now I'm just curious: How come that "emerge sync" helps?
_________________
--- checking for native Win32 platform... no
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Thu Dec 02, 2004 8:02 pm    Post subject: Reply with quote

because we made a fix to the linux module eclass
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum