Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia Kernel 1.0.6111 Fix for mm-sources thread
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
DaMouse
Apprentice
Apprentice


Joined: 18 Jul 2003
Posts: 233

PostPosted: Tue Aug 31, 2004 9:07 pm    Post subject: Nvidia Kernel 1.0.6111 Fix for mm-sources thread Reply with quote

Overlay: http://ck.dbdfleet.net/nvidia-kernel-1.0.6111-r1.tar.bz2

Problem was pci_find_class switched to pci_get_class, re-emerge nvidia-kernel (mine is badged as -r1 as there is only the first revision available at time of writing)

-DaMouse
_________________
I am the dark lord DaMouse I eat souls and wear the dressing gown of evil.


Last edited by DaMouse on Tue Sep 21, 2004 3:42 pm; edited 3 times in total
Back to top
View user's profile Send private message
Rainmaker
Veteran
Veteran


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Wed Sep 01, 2004 12:00 am    Post subject: Reply with quote

/me hails damouse. Thanks. Gonna try it now.

*edit: YES!!! finally, the nvidia drivers on mm again! Works even faster now then on nitro-6. Especially the hard-disk-activity problem I've been having.. Thank you!
_________________
If you can't dazzle them with brilliance, baffle them with bullshit.
Back to top
View user's profile Send private message
Ateo
Advocate
Advocate


Joined: 02 Jun 2003
Posts: 2021
Location: Republic of California

PostPosted: Wed Sep 01, 2004 5:14 am    Post subject: Reply with quote

Thanks for the patch!
Back to top
View user's profile Send private message
bulletman
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2002
Posts: 126

PostPosted: Wed Sep 01, 2004 5:53 am    Post subject: Reply with quote

Thanks much! (Types from X ...)

Stephen
_________________
Stephen

If your desktop gets out of control easily,
you probably have too much stuff on it that
doesn't need to be there.
Donna Smallin, "Unclutter Your Home"
Back to top
View user's profile Send private message
marsclic
n00b
n00b


Joined: 02 Mar 2003
Posts: 74

PostPosted: Wed Sep 01, 2004 7:05 am    Post subject: nvidia ebuild patch Reply with quote

Yes! :D Many many thanks for the patch DaMouse!
Back to top
View user's profile Send private message
Bithammer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 100
Location: Mainhatten

PostPosted: Fri Sep 03, 2004 3:10 pm    Post subject: Reply with quote

how to apply this patch ?
Back to top
View user's profile Send private message
Bithammer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 100
Location: Mainhatten

PostPosted: Fri Sep 03, 2004 9:19 pm    Post subject: Reply with quote

Please i know i am a n00b plese tell me how to fix the damm nvidia thing.

I am trying to get gentoo to run over a week now, and i need the 2.6.9-rc1 kernel to have acpi for my mobo, but i need this fix, tell me how to apply it please ;-)

Edit
Ok, i llike the search function of this forum, but some information needs to be more obvious i think. The description i used is this one to install the patch :
Edit

Quote:

By the way why do you take a 2.4.20 kernel and try to patch it with gentoo's patches for 2.4.22-r5 ? the emerge gentoo-sources applies all the patches by itself.

Ok, let's suppose you have a good reason and would really like to have a 2.4.20 with the latest gentoo-sources-patches.

Well, you may find that a bit strange, but here it is: I don't know how to patch a kernel, but I know how to modify an ebuild ... so here is how to make an ebuild for your own kernel's flavor
uncomment the line PORTDIR_OVERLAY=/usr/local/portage in your /etc/make.conf
then create the /usr/local/portage/sys-kernel/my-sources/ directory
and copy one of the ebuild so that you don't have to type everything from scratch:
cp /usr/portage/sys-kernel/gentoo-sources/gentoo-sources-2.4.22-r5.ebuild /usr/local/portage/sys-kernel/my-sources/my-sources-2.4.20.ebuild

then edit the lines lines of this my-sources-2.4.20.ebuild that contain gentoo-sources-${PVR}.patch.bz2 to replace them by gentoo-sources-2.4.22-r5.patch.bz2

that is to say:
UNIPATCH_LIST="${DISTDIR}/gentoo-sources-2.4.22-r5.patch.bz2"
and SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2
http://dev.gentoo.org/~iggy/gentoo-sources-2.4.22-r5.patch.bz2"

then you just have to emerge my-sources, it will fetch the kernel, the patches, apply everything and put it in the right directory
Back to top
View user's profile Send private message
Bithammer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 100
Location: Mainhatten

PostPosted: Fri Sep 03, 2004 10:19 pm    Post subject: Reply with quote

the nvidia kernel works now without reporting any error, But the Nvidia glx extensions wont load for the x server, he just stops, eg. displays the nvida logo and exits with the message could not load the glx extensions ...

AGP mode is falling back to 2x i see in dmesg, i use the 865 chipset driver.

Evrything in dmesg seems to be fine now, no error reporting, and if i cat the nvidia settings at proc he states my ti4600 which runs perfectly ok on my win XP partition even with agp 4x....

Is there some option to set the agp mode at the kernel boot ? Ok silly questing i search the forums, and if i dont find anything i edit this post ;-)
Back to top
View user's profile Send private message
stahlsau
Guru
Guru


Joined: 09 Jan 2004
Posts: 584
Location: WildWestwoods

PostPosted: Fri Sep 10, 2004 9:59 am    Post subject: Reply with quote

thx very much for that ebuild!
Back to top
View user's profile Send private message
provicemo
Apprentice
Apprentice


Joined: 12 Dec 2003
Posts: 201
Location: Detroit, MI

PostPosted: Sun Sep 12, 2004 12:57 am    Post subject: Reply with quote

Thank you very much
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Wed Sep 15, 2004 2:24 am    Post subject: Reply with quote

As I've commented on https://bugs.gentoo.org/show_bug.cgi?id=62474

This fix is to rudimentary for the portage tree -- We need something that is going to be backward compatible. Ive made up a patch and attached it to the above bug, it would be nice if some people can test it out in both 2.6.9 and 2.6.<9 kernels

It works here and if it works for others ill put it in the tree (which I'd like to have happen before 2.6.9 is released)

Direct link to attachment https://bugs.gentoo.org/attachment.cgi?id=39625&action=view
Back to top
View user's profile Send private message
logics
n00b
n00b


Joined: 05 May 2004
Posts: 6

PostPosted: Thu Sep 16, 2004 5:10 pm    Post subject: Overlays... Reply with quote

For those curious on how to create an overlay, here are the steps you can take to get this into your tree.

(NOTE: I don't have an nvidia to test these steps... so if I mistyped a step or it doesn't work, post the problem and we should be able to get it fixed)

Create the overlay:
Code:
DIR=/usr/portage/overlay
mkdir $DIR
echo "PORTDIR_OVERLAY=$DIR" >> /etc/make.conf

Add the nvidia overlay:
Code:
cd $DIR
wget -O - http://ck.dbdfleet.net/nvidia-kernel-1.0.6111.tar.bz2 | tar xjv

Set up the keyword mask for this package so you can use it (its masked ~x86)
Code:
if [ ! -d /etc/portage ]; then mkdir /etc/portage; fi
echo "media-video/nvidia-kernel ~x86" >> /etc/portage/package.keywords

emerge away...
Code:
emerge -up nvidia-kernel
# Verify that it is going to install 1.0.6111-r1
emerge -u nvidia-kernel


And away you go... good luck.

James
_________________
ipw2100 & ipw2200 developer / ipw3945 developer & maintainer
irc.freenode.net #ipw2100 - http://ipw3945.sf.net - http://bughost.org/repos/
Back to top
View user's profile Send private message
DaMouse
Apprentice
Apprentice


Joined: 18 Jul 2003
Posts: 233

PostPosted: Thu Sep 16, 2004 6:25 pm    Post subject: Reply with quote

cyfred wrote:
As I've commented on https://bugs.gentoo.org/show_bug.cgi?id=62474

This fix is to rudimentary for the portage tree -- We need something that is going to be backward compatible. Ive made up a patch and attached it to the above bug, it would be nice if some people can test it out in both 2.6.9 and 2.6.<9 kernels

It works here and if it works for others ill put it in the tree (which I'd like to have happen before 2.6.9 is released)

Direct link to attachment https://bugs.gentoo.org/attachment.cgi?id=39625&action=view


Seems clean enough, not sure if you can do an #ifdef FUNC at all..

-DaMouse
_________________
I am the dark lord DaMouse I eat souls and wear the dressing gown of evil.
Back to top
View user's profile Send private message
AstralStorm
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 80
Location: /dev/null

PostPosted: Thu Sep 16, 2004 8:34 pm    Post subject: Reply with quote

With kernel 2.6.9-rc2-mm1 I get this:
nvidia: Unknown symbol __VMALLOC_RESERVE

Using GCC 3.4.2, I'll try the kernel with GCC 3.3.4 too.

Does anybody has a workaround for that?
Back to top
View user's profile Send private message
DaMouse
Apprentice
Apprentice


Joined: 18 Jul 2003
Posts: 233

PostPosted: Thu Sep 16, 2004 9:11 pm    Post subject: Reply with quote

Yeah.. i got it covered, two secs :)

-DaMouse
_________________
I am the dark lord DaMouse I eat souls and wear the dressing gown of evil.
Back to top
View user's profile Send private message
DaMouse
Apprentice
Apprentice


Joined: 18 Jul 2003
Posts: 233

PostPosted: Thu Sep 16, 2004 9:19 pm    Post subject: Reply with quote

can i have some testers please :) I changed my pci_find_class patch for the one in bugzilla

-DaMouse

http://svn.esuna.co.uk/esuna/damouse-portage/media-video/nvidia-kernel/
_________________
I am the dark lord DaMouse I eat souls and wear the dressing gown of evil.
Back to top
View user's profile Send private message
AstralStorm
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 80
Location: /dev/null

PostPosted: Fri Sep 17, 2004 4:59 am    Post subject: Reply with quote

Won't that vmalloc-reserve patch cause 'Symbol redefined' warnings with kernels other than 2.6.9-rc2?
What about a configure test like the other one?

I'll say if it works when I restart. Compiling OOXimian for some hours.
EDIT: OK, finished. Restarting... (due to gcc 3.4 vs 3.3) Wish me luck. ;-)

(BTW, kexec is great. :-) I've created /etc/init.d/kexec and modded /etc/init.d/reboot.sh. Now I only need to add an ebuild and have some testers. Works great here.)
Back to top
View user's profile Send private message
DaMouse
Apprentice
Apprentice


Joined: 18 Jul 2003
Posts: 233

PostPosted: Fri Sep 17, 2004 6:21 am    Post subject: Reply with quote

AstralStorm wrote:
Won't that vmalloc-reserve patch cause 'Symbol redefined' warnings with kernels other than 2.6.9-rc2?
What about a configure test like the other one?

I'll say if it works when I restart. Compiling OOXimian for some hours.
EDIT: OK, finished. Restarting... (due to gcc 3.4 vs 3.3) Wish me luck. ;-)

(BTW, kexec is great. :-) I've created /etc/init.d/kexec and modded /etc/init.d/reboot.sh. Now I only need to add an ebuild and have some testers. Works great here.)


I'm hoping and praying that nvidia wont break others with the vmalloc patch.

-DaMouse
_________________
I am the dark lord DaMouse I eat souls and wear the dressing gown of evil.
Back to top
View user's profile Send private message
Ateo
Advocate
Advocate


Joined: 02 Jun 2003
Posts: 2021
Location: Republic of California

PostPosted: Fri Sep 17, 2004 6:47 am    Post subject: Reply with quote

Worked fine for me against => 2.6.9-rc2-mm1.

Is that cd writer bug still lingering? Or is it just me?
Back to top
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Fri Sep 17, 2004 6:52 am    Post subject: Reply with quote

AstralStorm wrote:
(BTW, kexec is great. :-) I've created /etc/init.d/kexec and modded /etc/init.d/reboot.sh. Now I only need to add an ebuild and have some testers. Works great here.)


How do you use kexec? Can you post your scripts?

Thanks!!
Norberto
Back to top
View user's profile Send private message
DaMouse
Apprentice
Apprentice


Joined: 18 Jul 2003
Posts: 233

PostPosted: Fri Sep 17, 2004 6:55 am    Post subject: Reply with quote

Ateo wrote:
Worked fine for me against => 2.6.9-rc2-mm1.

Is that cd writer bug still lingering? Or is it just me?


I think its still there :) hopefully some program can fix it for us.

-DaMouse
_________________
I am the dark lord DaMouse I eat souls and wear the dressing gown of evil.
Back to top
View user's profile Send private message
AstralStorm
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 80
Location: /dev/null

PostPosted: Fri Sep 17, 2004 5:25 pm    Post subject: Reply with quote

Your patch works fine here too.

Kexec-tools ebuild is available here: link
It will speed up your restart time and allow you to easily boot different kernel images.
Add it like this: rc-update add kexec default

Don't forget to check the config file in /etc/conf.d/kexec
By default, this kexec script sets itself to boot your current kernel from /boot/vmlinuz-`uname -r` (to suit make install), you can of course override it in config file or on command line:
KNAME="mygentookernel" KPARAM="elevator=none" /etc/init.d/kexec restart
To disable kexec, you don't stop it, but instead:
KNAME="-" /etc/init.d/kexec restart

If you have a kernel image named -, please tell me. :roll:


Last edited by AstralStorm on Fri Sep 17, 2004 5:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
DaMouse
Apprentice
Apprentice


Joined: 18 Jul 2003
Posts: 233

PostPosted: Fri Sep 17, 2004 5:26 pm    Post subject: Reply with quote

kexec is cool but for the average user without it patched in or without it enabled.. i find a reboot is just as painless..

-DaMouse
_________________
I am the dark lord DaMouse I eat souls and wear the dressing gown of evil.
Back to top
View user's profile Send private message
AstralStorm
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 80
Location: /dev/null

PostPosted: Fri Sep 17, 2004 5:49 pm    Post subject: Reply with quote

The script doesn't interfere with normal rebooting in any way if there's no kexec
and as such could probably be added to portage.
Maybe kexec will be included in 2.6.9, who knows.

More comments at the Bug 50313
Back to top
View user's profile Send private message
DaMouse
Apprentice
Apprentice


Joined: 18 Jul 2003
Posts: 233

PostPosted: Fri Sep 17, 2004 5:51 pm    Post subject: Reply with quote

You got a bugzilla entry to linky? :)

-DaMouse
_________________
I am the dark lord DaMouse I eat souls and wear the dressing gown of evil.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2, 3, 4, 5, 6  Next
Page 1 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum