Click to See Complete Forum and Search --> : Successfully running 2.5.75 w/Nvidia--patched


ghostwalker
07-10-2003, 10:50 PM
My hardware is as follows:
ASUS P4S533-VM
Memory 768GB

Host bridge: Silicon Integrated Systems [SiS] SiS651 Host (rev
01)
PCI bridge: Silicon Integrated Systems [SiS] SiS 530 Virtual
PCI-to-PCI bridge (AGP)
ISA bridge: Silicon Integrated Systems [SiS] SiS962 [MuTIOL Media
IO] (rev 04)
IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE]
Multimedia audio controller: Silicon Integrated Systems [SiS]
SiS7012 PCI Audio Accelerator (rev a0)
USB Controller: Silicon Integrated Systems [SiS] SiS7001 USB
Controller (rev 0f)
USB Controller: Silicon Integrated Systems [SiS] SiS7001 USB
Controller (rev 0f)
USB Controller: Silicon Integrated Systems [SiS] SiS7001 USB
Controller (rev 0f)
USB Controller: Silicon Integrated Systems [SiS] SiS7002 USB 2.0
Ethernet controller: Silicon Integrated Systems [SiS] SiS900
10/100 Ethernet (rev 91)
VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX
440 AGP 8x] (rev a2)

I am going to test until next iteration release or if I see a patch that is really important. It only took me 35 minutes to get this up and running....

ghostwalker
07-10-2003, 10:51 PM
Still working on alsa configuration. I forgot with my exuberance about getting this up and running so easy.

ghostwalker
07-10-2003, 11:39 PM
Alsa is fixed...

My firewall is up....

Nvidia is working...seem snappier?

Will continue testing...

je_fro
07-11-2003, 02:29 AM
Could you attach your .config?
How do you load the modules with this kernel?

Thanks!

ghostwalker
07-11-2003, 02:35 AM
My config is specific to my hardware ie. Mother board and video card. That is why I include a lspci dump.

Here is my .config

ghostwalker
07-11-2003, 02:38 AM
For modules follow the following link:

http://linux-sxs.org/administration/25xconf.html

ghostwalker
07-11-2003, 02:40 AM
I made a backup of insmod rmmod lsmod, etc to be on the save side. ie, insmod.old lsmod.old, etc.

je_fro
07-11-2003, 07:34 AM
I'll be checking it out.....

Have you, by chance, loaded NVidia drivers with this kernel?

ghostwalker
07-11-2003, 05:07 PM
Yes with the following patch:

http://www.minion.de/

je_fro
07-11-2003, 10:34 PM
I can't find any decent docs pertaining to how to patch linux-2.5.74.
I've put NVIDIA_kernel-1.0-4363-2.5.diff in /usr/src and cd to linux (symlink) and do:

gentoo linux # patch -p0 < ../NVIDIA_kernel-1.0-4363-2.5.diff

Then I get:

patching file NVIDIA_kernel-1.0-4363/Makefile
patching file NVIDIA_kernel-1.0-4363/Makefile.kbuild
patching file NVIDIA_kernel-1.0-4363/Makefile.nvidia
can't find file to patch at input line 597
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruN NVIDIA_kernel-1.0-4363/conftest.sh NVIDIA_kernel-1.0-4363-2.5/conftest.sh
|--- NVIDIA_kernel-1.0-4363/conftest.sh 2003-04-20 03:57:19.000000000 +0200
|+++ NVIDIA_kernel-1.0-4363-2.5/conftest.sh 2003-06-02 00:10:13.000000000 +0200
--------------------------
File to patch:


I don't know what to do? Did this happen to you?

I also reversed the patch and try:

gentoo linux # patch -p1 < ../NVIDIA_kernel-1.0-4363-2.5.diff

But I still get this:

patching file Makefile
Reversed (or previously applied) patch detected! Assume -R? [n]

I answered yes several times but it won't go away!


Now I try something else...

gentoo linux # patch -p1 < ../NVIDIA_kernel-1.0-4363-2.5.diff
patching file Makefile
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n] y
Hunk #1 FAILED at 1.
File Makefile is not empty after patch, as expected
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
patching file Makefile.kbuild
patching file Makefile.nvidia
can't find file to patch at input line 597
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruN NVIDIA_kernel-1.0-4363/conftest.sh NVIDIA_kernel-1.0-4363-2.5/conftest.sh
|--- NVIDIA_kernel-1.0-4363/conftest.sh 2003-04-20 03:57:19.000000000 +0200
|+++ NVIDIA_kernel-1.0-4363-2.5/conftest.sh 2003-06-02 00:10:13.000000000 +0200
--------------------------
File to patch:


Any guidance would be greatly appreciated, as I can't find any documentation on this....



<EDIT>
A-HA!!!!
Might be getting somewhere......

https://listman.redhat.com/archives/shrike-list/2003-June/msg00082.html

bwkaz
07-12-2003, 09:00 AM
je_fro -- that patch is to be applied to the nVidia driver sources, not the kernel. ;)

You'll have to back out any changes that have been successfully applied to your kernel tree, too -- anything that was changed was only changed because it matched something in the nVidia driver source by chance.

je_fro
07-12-2003, 01:46 PM
I thought I'd leave the above post alone fot a little comedy....:p
Though I felt like an idiot and wanted to delete it right away!!! :D
The patch went right on, but startx fails right after: Loading OpenGL.
I'll get it figured out today, though.

I cant exactly say why I thought it was for the kernel...maybe because all the docs are the same in using the kernel for an example and ...hmmm....what does that patch say inside......I'm going home to see. Maybe there were instructions in there.....................I didn't even look!

je_fro
07-12-2003, 05:43 PM
So I got xfree working, but I guess I missed something in the kernel because ZAxisMapping isn't working. (no scrolling mouse)

Any idea how to load modules? I have an nforce2 chipset and onboard ethernet. It needs a module called nvnet. I compile it and try make install, but it won't go. Something's new in the module setup in 2.5.xx and I can't figure it out. Keeping on trying............................

bwkaz
07-12-2003, 05:53 PM
Ahh yes, nvnet. ;)

nvnet probably has the same problem that the "nvidia.o" module has. It's probably written for 2.4 kernels, not 2.5 ones. I don't know offhand of any site like minion.de for the nForce drivers, though, which is kind of crappy.

I would hazard a guess that to load modules you use modprobe again, just like before. But seeing as there's a new modutils package (what's it called now, something like module-init-tools or something?), modprobe might be gone. If that's the case, then I don't know... <dumb question> you do have the new modules package installed, right? </dumb question>

The ZAxisMapping thing might not be the kernel, necessarily. Do you have a Buttons "5" setting? I seem to remember some distros not needing it, but I know that a standard X installation does, so it might be worth a shot if you don't have it. If you do, then, hmm... what's in the X log?

je_fro
07-12-2003, 06:30 PM
Check it out!

http://marc.theaimsgroup.com/?l=linux-kernel&m=105751580625364&w=2


I figure it's just like the last one....
I'll skip applying it to the kernel this time and see what happens. ;)

je_fro
07-12-2003, 07:02 PM
Since I don't know any C I guess I'll have to keep on looking....
I get this from my 2.5.74 kernel trying to modprobe nvnet:

gentoo nforce # patch -p1 < ../nforce-1.0-0248-2.4.diff
patching file nvnet/Makefile
patching file nvnet/nvnet.c
patching file nvnet/nvnet.h
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 103 with fuzz 2.
gentoo nforce # cd nvnet/
gentoo nvnet # make clean
rm -f nvnet.ko nvnet.o *.mod.c *.mod.o
gentoo nvnet # make
gcc -c -DLINUX -DMODULE -DEXPORT_SYMTAB -DKBUILD_MODNAME=nvnet -D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM -fno-strict-aliasing -fno-common -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -I/lib/modules/2.5.74/build/include -I/lib/modules/2.5.74/build/include/asm/mach-default nvnet.c
/lib/modules/2.5.74/build/scripts/modpost nvnet.o
gcc -c -DLINUX -DMODULE -DEXPORT_SYMTAB -DKBUILD_MODNAME=nvnet -D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM -fno-strict-aliasing -fno-common -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -I/lib/modules/2.5.74/build/include -I/lib/modules/2.5.74/build/include/asm/mach-default nvnet.mod.c
ld -r -o temp.o nvnet.o nvnet.mod.o nvnetlib.o
cp temp.o nvnet.ko
rm temp.o
gentoo nvnet # make install
mkdir -p //lib/modules/2.5.74/kernel/drivers/net
install -b -m 644 nvnet.ko //lib/modules/2.5.74/kernel/drivers/net
gentoo nvnet # modprobe nvnet
FATAL: Error inserting nvnet (/lib/modules/2.5.74/kernel/drivers/net/nvnet.o): Invalid module format
gentoo nvnet # insmod nvnet
Can't open 'nvnet': No such file or directory
gentoo nvnet # insmod /lib/modules/2.5.74/kernel/drivers/net/nvnet.
nvnet.ko nvnet.o
gentoo nvnet # insmod /lib/modules/2.5.74/kernel/drivers/net/nvnet.o
Error inserting '/lib/modules/2.5.74/kernel/drivers/net/nvnet.o': -1 Invalid module format

bwkaz
07-12-2003, 10:25 PM
Hmm... try insmod'ing the .ko version rather than the .o version maybe?

je_fro
07-12-2003, 11:53 PM
I tried just nvnet, then specified /lib/modules....../nvnet.o
No Love.

bwkaz
07-13-2003, 04:28 PM
Yeah, but if you tried "nvnet" and it picked up "nvnet.o", then you tried the same file twice.

Try explicitly loading the .ko version one, since that's definitely the one that got built. Or, blow away the .o one.