nforce patch kernel errors
I have a Gigabyte 7n400pro 2 nforce2 with redhat 9.
I need to get the nforce agpgart drivers on before attempting to get the ati radeon drivers.
I downloaded the nforce-rh9-2.4.20-8.src.rpm, an exact match for my kernel version (2.4.20-8), yet when doing an rpm --rebuild nforce-rh9-2.4.20-8.src.rpm, I get some nvidia files installed under /usr/src/redhat plus a few errors about buildmeister not found, using root. I get no rpm built.
Therefore I went back to source. make and make install ok. Build s a few modules, but it's the .diff file that is my problem. I copied the linux-2.4.20.diff file to my /usr/src/linux directory and ran patch -p1 < linux-2.4.20.diff.
All HUNKS succeeded except for the last one in the includes/ directory. So I manually copied the failed lines into the .h file myself.
Then I started the usual procedure to set the options inthe kernel and recompile. At the make bzImage stage I get this error:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-19.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-19.9/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=agpgart_be -DEXPORT_SYMTAB -c agpgart_be.c
agpgart_be.c: In function `nvidia_generic_setup':
agpgart_be.c:4347: structure has no member named `num_of_masks'
make[3]: *** [agpgart_be.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20-19.9/drivers/char/agp'
make[2]: *** [_modsubdir_agp] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-19.9/drivers/char'
make[1]: *** [_modsubdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-19.9/drivers'
make: *** [_mod_drivers] Error 2
Does anyone have any ideas here? I am going to give in soon and just install kernel 2.4.26 but I would like to do this for educational purposes.
|