View previous topic :: View next topic |
Author |
Message |
MagnusBerg Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1009421754417027ead1565.jpg)
Joined: 07 Oct 2003 Posts: 370 Location: Burgsvik, Gotland, Sweden
|
Posted: Wed Dec 01, 2004 11:47 pm Post subject: [SOLVED] Nvidia-kernel and 2.6.9-r6 is fucked up |
|
|
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 ![Smile :-)](images/smiles/icon_smile.gif)
Last edited by MagnusBerg on Thu Dec 02, 2004 12:19 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Kagerato Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 01 Dec 2004 Posts: 81
|
Posted: Thu Dec 02, 2004 12:00 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
dsd Developer
![Developer Developer](/images/ranks/rank-dev.gif)
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Thu Dec 02, 2004 12:06 am Post subject: |
|
|
please run emerge sync again and let us know if that helps _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MagnusBerg Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1009421754417027ead1565.jpg)
Joined: 07 Oct 2003 Posts: 370 Location: Burgsvik, Gotland, Sweden
|
Posted: Thu Dec 02, 2004 12:20 am Post subject: |
|
|
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. ![Smile :-)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NumaSan Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/69385357441bf99cb4396b.png)
Joined: 22 Aug 2003 Posts: 100 Location: Copenhagen
|
Posted: Thu Dec 02, 2004 6:17 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
dsd Developer
![Developer Developer](/images/ranks/rank-dev.gif)
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Thu Dec 02, 2004 8:02 pm Post subject: |
|
|
because we made a fix to the linux module eclass _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|