nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   General Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=27)
-   -   nVidia Drivers - Installing from Source on RH9 (http://www.nvnews.net/vbulletin/showthread.php?t=11502)

Kennedy 05-09-03 10:47 AM

nVidia Drivers - Installing from Source on RH9
 
I have the MSI K7N2G M/B with the nForce2 chipset.



I have managed to install Red Hat 9 (kernal 2.4.20-8) with no problems except that the Network isn't working and I think the hard disk is running slow.

I have seen posts on making and installing a new kernal to address the ATA100 problem but I am stuck on installing the nVidia drivers.

I have downloaded the source rpm
NVIDIA_nforce-1.0-0248.src.rpm

Put this in my home directory and tried to do the rebuild as instructed in the release notes.

After SU and password I am typing

rpm --rebuild NVIDIA_nforce-1.0-0248.src.rpm

This gives me the response

--rebuild: unknown option.

I have set up a couple of linux systems in the past but never had problems with drivers. So in this I am still just newbie.

Am I doing something fundamentally wrong?

Kennedy

Birdie 05-09-03 11:45 AM

use rpmbuild --rebuild xxxx.src.rpm, if it doesn't work you'll need to install some rpm's, don't know the exact name, sorry.

by the way there is a newer nforce RPM that the one you have.

here

Kennedy 05-10-03 04:52 AM

Thanks Birdie

I won't get to try this until Monday but I will let you know how it goes.

Kennedy

Kennedy 05-13-03 04:57 AM

OK so its Tuesday - things happen.

I tried this and it almost worked.

Problem seems to be with the audio drivers right near the end.

I'm not a 'C' person so a good chunk of this whistles past without landing.

Looking at other posts, this seems to be a common problem with RH9.

If there is anybody who has successfully done a src rebuild on RH9 then please let me know the secret.

Kennedy


[root@dbs kennedy]# rpmbuild --rebuild NVIDIA_nforce-1.0-0256.src.rpm

Installing NVIDIA_nforce-1.0-0256.src.rpm
warning: user buildmeister does not exist - using root
warning: user buildmeister does not exist - using root
warning: user buildmeister does not exist - using root
warning: user buildmeister does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.55610
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ echo '---- Copying Sources ----'
---- Copying Sources ----
+ cd /usr/src/redhat/BUILD
+ rm -rf nforce
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/nvnet.tgz
+ tar -xvvf -
drwxr-xr-x buildmeister/adm 0 2003-04-02 19:19:32 nforce/
drwxr-xr-x buildmeister/adm 0 2003-04-02 19:21:41 nforce/nvnet/
-r--r--r-- buildmeister/adm 16904 2003-04-02 19:21:41 nforce/nvnet/adapter.h
-r--r--r-- buildmeister/adm 794 2003-04-02 19:21:41 nforce/nvnet/basetype.h
-r--r--r-- buildmeister/adm 6752 2003-04-02 19:21:41 nforce/nvnet/nvnet.h
-r--r--r-- buildmeister/adm 4437 2003-04-02 19:21:41 nforce/nvnet/os.h
-r--r--r-- buildmeister/adm 4749 2003-04-02 19:21:41 nforce/nvnet/phy.h
-r--r--r-- buildmeister/adm 37870 2003-04-02 19:21:41 nforce/nvnet/nvnet.c
-rw-r--r-- buildmeister/adm 21488 2003-04-02 19:21:41 nforce/nvnet/nvnetlib.o
-r--r--r-- buildmeister/adm 3088 2003-04-02 19:21:41 nforce/nvnet/Makefile
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ cd /usr/src/redhat/BUILD
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/nvaudio.tgz
+ tar -xvvf -
drwxr-xr-x buildmeister/adm 0 2003-04-02 19:21:41 nforce/
drwxr-xr-x buildmeister/adm 0 2003-04-02 19:21:41 nforce/nvaudio/
-r--r--r-- buildmeister/adm 2205 2003-04-02 19:21:41 nforce/nvaudio/Makefile
-r--r--r-- buildmeister/adm 57766 2003-04-02 19:21:41 nforce/nvaudio/nvcrush.c
-r--r--r-- buildmeister/adm 6925 2003-04-02 19:21:41 nforce/nvaudio/nvhw.c
-r--r--r-- buildmeister/adm 30753 2003-04-02 19:21:41 nforce/nvaudio/nvmain.c
-r--r--r-- buildmeister/adm 8314 2003-04-02 19:21:41 nforce/nvaudio/nvrec.c
-r--r--r-- buildmeister/adm 26224 2003-04-02 19:21:41 nforce/nvaudio/nvspdif.c
-r--r--r-- buildmeister/adm 10967 2003-04-02 19:21:41 nforce/nvaudio/nvwavout.c
-r--r--r-- buildmeister/adm 4546 2003-04-02 19:21:41 nforce/nvaudio/chaninfo.h
-r--r--r-- buildmeister/adm 2877 2003-04-02 19:21:41 nforce/nvaudio/nvhw.h
-r--r--r-- buildmeister/adm 1080 2003-04-02 19:21:41 nforce/nvaudio/nvioctl.h
-r--r--r-- buildmeister/adm 1392 2003-04-02 19:21:41 nforce/nvaudio/nvrec.h
-r--r--r-- buildmeister/adm 1618 2003-04-02 19:21:41 nforce/nvaudio/nvspdif.h
-r--r--r-- buildmeister/adm 1405 2003-04-02 19:21:41 nforce/nvaudio/nvwavout.h
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ cd /usr/src/redhat/BUILD
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/nvmaster.tgz
+ tar -xvvf -
drwxr-xr-x buildmeister/adm 0 2003-04-02 19:21:41 nforce/
-r--r--r-- buildmeister/adm 1084 2003-04-02 19:21:41 nforce/Makefile
-r--r--r-- buildmeister/adm 5404 2003-04-02 19:21:41 nforce/NVLicense.txt
-r--r--r-- buildmeister/adm 18007 2003-04-02 19:21:41 nforce/GNULicense.txt
-r--r--r-- buildmeister/adm 21779 2003-04-02 19:21:41 nforce/ReleaseNotes.html
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.44772
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd nforce
+ LANG=C
+ export LANG
+ echo '---- Building Drivers ----'
---- Building Drivers ----
+ make
make -C nvnet
make[1]: Entering directory `/usr/src/redhat/BUILD/nforce/nvnet'
cc -c -Wall -DLINUX -DMODULE -DEXPORT_SYMTAB -D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -I/lib/modules/2.4.20-8/build/include -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h nvnet.c
ld -r -o temp.o nvnet.o nvnetlib.o
objcopy --strip-symbol="gcc2_compiled." temp.o
cp temp.o nvnet.o
rm temp.o
make[1]: Leaving directory `/usr/src/redhat/BUILD/nforce/nvnet'
make -C nvaudio
make[1]: Entering directory `/usr/src/redhat/BUILD/nforce/nvaudio'
make nvaudio.o
make[2]: Entering directory `/usr/src/redhat/BUILD/nforce/nvaudio'
cc -D__KERNEL__ -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h -c -o nvhw.o nvhw.c
cc -D__KERNEL__ -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h -c -o nvrec.o nvrec.c
cc -D__KERNEL__ -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h -c -o nvwavout.o nvwavout.c
cc -D__KERNEL__ -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h -c -o nvspdif.o nvspdif.c
cc -D__KERNEL__ -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h -c -o nvcrush.o nvcrush.c

************* errors seem to start here ************

nvcrush.c: In function `Nvaudio_mmapwrite':
nvcrush.c:426: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
nvcrush.c:426: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nvcrush.c:426: too few arguments to function `remap_page_range_R2baf18f2'
nvcrush.c: In function `Nvaudio_mmap':
nvcrush.c:465: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
nvcrush.c:465: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nvcrush.c:465: too few arguments to function `remap_page_range_R2baf18f2'
make[2]: *** [nvcrush.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/nforce/nvaudio'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/nforce/nvaudio'
make: *** [nvaudio_make] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.44772 (%build)


RPM build errors:
user buildmeister does not exist - using root
user buildmeister does not exist - using root
user buildmeister does not exist - using root
user buildmeister does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.44772 (%build)

Eci 05-13-03 09:57 AM

I have same mobo with lan but MDK 9.1.
Errors were same. I found somewhere in mandrakes newsgroups that you must first install MDK's kernel source and after that nforce drivers. With MDK that works. I don't know if it is necessary with RH, but you can try it.

Eci

Kennedy 05-13-03 10:34 AM

Thanks Eci

I think I have sorted it, at least temporarily.

I went back to the previous version drivers 0248.

I got a few strange messages but it seems to have done the trick.

The sound seems to be working although I don't have the kit for a 5.1 setup.

The network seems to be on.

Regards

Kennedy

bromod 05-20-03 11:54 PM

I have this fixed, see my thread:http://www.nvnews.net/vbulletin/show...threadid=11630

titled: error: remap_page_range_R2baf18f2



bump

Kennedy 05-21-03 03:28 AM

Thanks Bromod

That seems to work fine.

Regards

Kennedy


All times are GMT -5. The time now is 10:50 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.