summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastian Wissler2009-06-26 11:52:02 +0200
committerBastian Wissler2009-06-26 11:52:02 +0200
commit75d3739b46fc754ecccfdc8f5281157dd0cadd8d (patch)
tree82e3d9f742c202f426a3032d6ca11bf533177e7b
parent* Added installation checks (diff)
downloadcore-75d3739b46fc754ecccfdc8f5281157dd0cadd8d.tar.gz
core-75d3739b46fc754ecccfdc8f5281157dd0cadd8d.tar.xz
core-75d3739b46fc754ecccfdc8f5281157dd0cadd8d.zip
xserver plugin:
* nvidia rpms are all of a sudden not in linked module format -> note that you have to try to install the xserver-plugin more often than once sometimes (ftp rejects or some network problem?!?). * corrected a misspelled error message git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2984 95ad53e4-c205-0410-b2fa-d234c58c8868
-rw-r--r--os-plugins/plugins/xserver/OpenSLX/Distro/Suse.pm13
1 files changed, 12 insertions, 1 deletions
diff --git a/os-plugins/plugins/xserver/OpenSLX/Distro/Suse.pm b/os-plugins/plugins/xserver/OpenSLX/Distro/Suse.pm
index e15e5355..89532e4f 100644
--- a/os-plugins/plugins/xserver/OpenSLX/Distro/Suse.pm
+++ b/os-plugins/plugins/xserver/OpenSLX/Distro/Suse.pm
@@ -100,6 +100,17 @@ sub installNvidia
{
mkdir("$repopath/nvidia/modules/");
}
+
+
+ # since kernel 2.6.25.20-0.1 there has to be a call to ld
+ # ld -r -m elf_i386 -o ../modules/nvidia.ko lib/modules/2.6.25.20-0.4-pae/updates/{nv-kernel,nv-linux}.o
+
+
+ if ( -f "$tmpdir/lib/modules/$kver-$ksuffix/updates/nv-kernel.o" ) {
+ # we have to build our kernel module here
+ system("ld -r -m elf_i386 -o $tmpdir/lib/modules/$kver-$ksuffix/updates/nvidia.ko $tmpdir/lib/modules/$kver-$ksuffix/updates/{nv-kernel,nv-linux}.o");
+ }
+
copyFile("$tmpdir/lib/modules/$kver-$ksuffix/updates/nvidia.ko",
"$repopath/nvidia/modules");
@@ -115,7 +126,7 @@ sub installNvidia
if($rpm == 0)
{
- print "Could not download x11-video-nvidia-$nv_version*.rpm!\n";
+ print "Could not download x11-video-nvidiaG01-$nv_version*.rpm!\n";
print "Exiting nvidia driver installation!\n";
return;
}