Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Nvidia Kernel 1.0.6111 Fix for mm-sources thread

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
140 posts
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next
Author
Message
DaMouse
Apprentice
Apprentice
User avatar
Posts: 233
Joined: Fri Jul 18, 2003 8:52 pm

Nvidia Kernel 1.0.6111 Fix for mm-sources thread

  • Quote

Post by DaMouse » Tue Aug 31, 2004 9:07 pm

Overlay: http://ck.dbdfleet.net/nvidia-kernel-1. ... 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
Last edited by DaMouse on Tue Sep 21, 2004 3:42 pm, edited 3 times in total.
I am the dark lord DaMouse I eat souls and wear the dressing gown of evil.
Top
Rainmaker
Veteran
Veteran
User avatar
Posts: 1650
Joined: Thu Feb 12, 2004 2:04 am
Location: /home/NL/ehv/

  • Quote

Post by Rainmaker » Wed Sep 01, 2004 12:00 am

/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.
Top
Ateo
Advocate
Advocate
Posts: 2022
Joined: Mon Jun 02, 2003 11:47 pm
Location: Vegas Baby!

  • Quote

Post by Ateo » Wed Sep 01, 2004 5:14 am

Thanks for the patch!
Top
bulletman
Tux's lil' helper
Tux's lil' helper
Posts: 126
Joined: Thu Jul 04, 2002 4:21 pm

  • Quote

Post by bulletman » Wed Sep 01, 2004 5:53 am

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"
Top
marsclic
n00b
n00b
User avatar
Posts: 74
Joined: Sun Mar 02, 2003 8:12 am

nvidia ebuild patch

  • Quote

Post by marsclic » Wed Sep 01, 2004 7:05 am

Yes! :D Many many thanks for the patch DaMouse!
Top
Bithammer
Tux's lil' helper
Tux's lil' helper
Posts: 100
Joined: Mon Aug 30, 2004 8:34 pm
Location: Mainhatten

  • Quote

Post by Bithammer » Fri Sep 03, 2004 3:10 pm

how to apply this patch ?
Top
Bithammer
Tux's lil' helper
Tux's lil' helper
Posts: 100
Joined: Mon Aug 30, 2004 8:34 pm
Location: Mainhatten

  • Quote

Post by Bithammer » Fri Sep 03, 2004 9:19 pm

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
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-sour ... .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
Top
Bithammer
Tux's lil' helper
Tux's lil' helper
Posts: 100
Joined: Mon Aug 30, 2004 8:34 pm
Location: Mainhatten

  • Quote

Post by Bithammer » Fri Sep 03, 2004 10:19 pm

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 ;-)
Top
stahlsau
Guru
Guru
User avatar
Posts: 584
Joined: Fri Jan 09, 2004 8:16 am
Location: WildWestwoods

  • Quote

Post by stahlsau » Fri Sep 10, 2004 9:59 am

thx very much for that ebuild!
Top
provicemo
Apprentice
Apprentice
User avatar
Posts: 201
Joined: Fri Dec 12, 2003 8:57 pm
Location: Detroit, MI
Contact:
Contact provicemo
Website

  • Quote

Post by provicemo » Sun Sep 12, 2004 12:57 am

Thank you very much
Top
cyfred
Retired Dev
Retired Dev
Posts: 596
Joined: Fri Aug 23, 2002 3:34 pm

  • Quote

Post by cyfred » Wed Sep 15, 2004 2:24 am

As I've commented on http://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 http://bugs.gentoo.org/attachment.cgi?i ... ction=view
Top
logics
n00b
n00b
User avatar
Posts: 6
Joined: Wed May 05, 2004 12:52 am

Overlays...

  • Quote

Post by logics » Thu Sep 16, 2004 5:10 pm

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: Select all

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

Code: Select all

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: Select all

if [ ! -d /etc/portage ]; then mkdir /etc/portage; fi
echo "media-video/nvidia-kernel ~x86" >> /etc/portage/package.keywords
emerge away...

Code: Select all

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/
Top
DaMouse
Apprentice
Apprentice
User avatar
Posts: 233
Joined: Fri Jul 18, 2003 8:52 pm

  • Quote

Post by DaMouse » Thu Sep 16, 2004 6:25 pm

cyfred wrote:As I've commented on http://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 http://bugs.gentoo.org/attachment.cgi?i ... ction=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.
Top
AstralStorm
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 80
Joined: Thu Nov 06, 2003 8:21 pm
Location: /dev/null

  • Quote

Post by AstralStorm » Thu Sep 16, 2004 8:34 pm

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?
Top
DaMouse
Apprentice
Apprentice
User avatar
Posts: 233
Joined: Fri Jul 18, 2003 8:52 pm

  • Quote

Post by DaMouse » Thu Sep 16, 2004 9:11 pm

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

-DaMouse
I am the dark lord DaMouse I eat souls and wear the dressing gown of evil.
Top
DaMouse
Apprentice
Apprentice
User avatar
Posts: 233
Joined: Fri Jul 18, 2003 8:52 pm

  • Quote

Post by DaMouse » Thu Sep 16, 2004 9:19 pm

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-po ... ia-kernel/
I am the dark lord DaMouse I eat souls and wear the dressing gown of evil.
Top
AstralStorm
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 80
Joined: Thu Nov 06, 2003 8:21 pm
Location: /dev/null

  • Quote

Post by AstralStorm » Fri Sep 17, 2004 4:59 am

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.)
Top
DaMouse
Apprentice
Apprentice
User avatar
Posts: 233
Joined: Fri Jul 18, 2003 8:52 pm

  • Quote

Post by DaMouse » Fri Sep 17, 2004 6:21 am

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.
Top
Ateo
Advocate
Advocate
Posts: 2022
Joined: Mon Jun 02, 2003 11:47 pm
Location: Vegas Baby!

  • Quote

Post by Ateo » Fri Sep 17, 2004 6:47 am

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

Is that cd writer bug still lingering? Or is it just me?
Top
nbensa
l33t
l33t
User avatar
Posts: 799
Joined: Wed Jul 10, 2002 11:09 am
Location: Buenos Aires, Argentina

  • Quote

Post by nbensa » Fri Sep 17, 2004 6:52 am

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
Top
DaMouse
Apprentice
Apprentice
User avatar
Posts: 233
Joined: Fri Jul 18, 2003 8:52 pm

  • Quote

Post by DaMouse » Fri Sep 17, 2004 6:55 am

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.
Top
AstralStorm
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 80
Joined: Thu Nov 06, 2003 8:21 pm
Location: /dev/null

  • Quote

Post by AstralStorm » Fri Sep 17, 2004 5:25 pm

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.
Top
DaMouse
Apprentice
Apprentice
User avatar
Posts: 233
Joined: Fri Jul 18, 2003 8:52 pm

  • Quote

Post by DaMouse » Fri Sep 17, 2004 5:26 pm

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.
Top
AstralStorm
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 80
Joined: Thu Nov 06, 2003 8:21 pm
Location: /dev/null

  • Quote

Post by AstralStorm » Fri Sep 17, 2004 5:49 pm

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
Top
DaMouse
Apprentice
Apprentice
User avatar
Posts: 233
Joined: Fri Jul 18, 2003 8:52 pm

  • Quote

Post by DaMouse » Fri Sep 17, 2004 5:51 pm

You got a bugzilla entry to linky? :)

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

140 posts
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic