Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.11-nitro0: Module Rodeo Until Dawn
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5 ... 12, 13, 14  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
a13x
Apprentice
Apprentice


Joined: 05 Jan 2005
Posts: 215

PostPosted: Thu Mar 03, 2005 2:06 pm    Post subject: Reply with quote

I got it working. I removed the NVIDIA driver support and built it as usual: emerge nvidia-kernel.

I'm testing it right now. So far it works alright.
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Thu Mar 03, 2005 3:19 pm    Post subject: Reply with quote

Well, seems like the mess i did in vmscan.c (I just commented out the stuff that kept me from compiling 8) ) wasn't that bad... the kernel seems to work...
So thanks for your work, IT was especially nice! Also, I have agpgart compiled in-kernel instead of as a module, but everything is fine...
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
discomfitor
l33t
l33t


Joined: 21 Feb 2003
Posts: 927
Location: None

PostPosted: Thu Mar 03, 2005 4:20 pm    Post subject: Reply with quote

I'm back! For an little while, that is. Then it's back to drug/sleep land for many hours. So let's see if I can do this all in one post:

Those with the amd64 issues: try copying the files over from an earlier kernel that works.

Those who aren't on gcc 3.4 yet: I think I'm going to try removing those flags for the next release.

People with nvidia issues: I'm looking at your config files (because that's most likely the cause).

thecrazyperson_ws: There won't be a new nitro (except the experimental version of this one) out for several days unless something critical happens. We might update the patch for this one to fix some compile bugs though.

John5788: As long as IT works for you, it is safe to unmerge nvidia kernel. You will, however, still need to keep nvidia-glx. We aren't THAT good. ...yet. And we will be keeping both the ati and nvidia drivers as up-to-date as possible, especially since we both use them.

robin79: I'm working on the sk98lin thing. I'll post again when it's fixed.

And now back to sleep for a while. Hopefully that will help...
_________________
There is no substitute for experience.
Imperfection indicates a lack of effort.
Back to top
View user's profile Send private message
freelight
Apprentice
Apprentice


Joined: 12 Jun 2004
Posts: 295
Location: NYC, NY, USA

PostPosted: Thu Mar 03, 2005 4:32 pm    Post subject: Reply with quote

Tiger683 wrote:
Ati users having problems with DRI:
Make sure you have the fglrx libraries (provided in ati package and/or ebuild stuff) FOR THE DRIVER 8.10.19!!!!!! This the driver
we use here ;)

Um, well I had the 8.10.19 driver emerged and working with the pervious kernel, and I did an "opengl-update ati" - if I'm missing something please let me know.
Still unable to get DRI working, apparently because /dev/dri/card0 isn't there.
Back to top
View user's profile Send private message
qnx
l33t
l33t


Joined: 25 Jun 2002
Posts: 638
Location: Göteborg, Sweden

PostPosted: Thu Mar 03, 2005 4:46 pm    Post subject: Reply with quote

uman wrote:
For some reason it doesn't want to compile thhe nvidia kernel.
It gives me errors about "no such option":
Quote:
cc1: error: unrecognized option `-Wdeclaration-after-statement'
cc1: error: unrecognized option `-fno-unit-at-a-time'
make[2]: *** [drivers/accel3d/nvidia/nv.o] Error 1
make[1]: *** [drivers/accel3d/nvidia] Error 2
make: *** [drivers] Error 2


Same here. But, as others already suggested, disabled the accelerated drivers in kernel and emerged nvidia-kernel, normally.

Now running, works flawlessly! Thanks guys!

And oh, my CFLAGS...
Code:
emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.2, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.11-nitro0-nett i686)
=================================================================
System uname: 2.6.11-nitro0-nett i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 20 2005, 17:06:18)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe"

_________________
Registred Linux user #191143!
Abit NF7-S rev. 2.00 (BIOS v. 2.7)
AMD AthlonXP 2500+ (Barton)
PATA Seagate ST3120022A
SATA Seagate ST3200822AS & Silicon Image 3112 chipset
Gentoo Linux :)
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Thu Mar 03, 2005 5:02 pm    Post subject: Reply with quote

Wrong answer ;)

remove both CFLAGS from accelerated nvidia driver, THEN build the kernel with accelerated driver enabled....

cheers

T
_________________
Retired gentoo user
Back to top
View user's profile Send private message
qnx
l33t
l33t


Joined: 25 Jun 2002
Posts: 638
Location: Göteborg, Sweden

PostPosted: Thu Mar 03, 2005 6:21 pm    Post subject: Reply with quote

Tiger683 wrote:
Wrong answer ;)

remove both CFLAGS from accelerated nvidia driver, THEN build the kernel with accelerated driver enabled....

cheers

T


Well, maybe I'm dumb, but what do you mean by that? If I just unset the CFLAGS temporary, while make && make modules_install, I won't optimize my kernel at all, right? And I do want to -O2 it, etc. So how do I only disable it for the nvidia driver (in kernel)? :roll:
Regards!
_________________
Registred Linux user #191143!
Abit NF7-S rev. 2.00 (BIOS v. 2.7)
AMD AthlonXP 2500+ (Barton)
PATA Seagate ST3120022A
SATA Seagate ST3200822AS & Silicon Image 3112 chipset
Gentoo Linux :)
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Thu Mar 03, 2005 6:29 pm    Post subject: Reply with quote

qnx wrote:
Tiger683 wrote:
Wrong answer ;)

remove both CFLAGS from accelerated nvidia driver, THEN build the kernel with accelerated driver enabled....

cheers

T


Well, maybe I'm dumb, but what do you mean by that? If I just unset the CFLAGS temporary, while make && make modules_install, I won't optimize my kernel at all, right? And I do want to -O2 it, etc. So how do I only disable it for the nvidia driver (in kernel)? :roll:
Regards!


Yes how can I do that? I can't even compile the kernel with no CFLAGS... nice try darckness... but hmm not so nice to compile....

I always get:
CC [M] drivers/accel3d/nvidia/nv.o
cc1: error: unrecognized option `-Wdeclaration-after-statement'
cc1: error: unrecognized option `-fno-unit-at-a-time'
make[2]: *** [drivers/accel3d/nvidia/nv.o] Fehler 1
make[1]: *** [drivers/accel3d/nvidia] Fehler 2
_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Thu Mar 03, 2005 6:42 pm    Post subject: Reply with quote

ok. maybe i overestimated you guys ;)

Here is what you do:

1)go to drivers/accel3d/nvidia IN the source tree.
2) open the file Makefile
3) in there you will see a block of code looking like this:
Code:

CFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common -ffreestanding \
-fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 \
-fno-unit-at-a-time -mregparm=3 -Iinclude/asm-i386/mach-default \
-Wdeclaration-after-statement -I$(src) -Wall -Wimplicit -Wreturn-type \
-Wswitch -Wformat -Wchar-subscripts \
-Wparentheses -Wno-multichar  -Werror -O \
-MD $(DEFINES) $(INCLUDES) -Wno-cast-qual \
-Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ \
-DMODULE  -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  \
-DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 \
-DNV_PATCHLEVEL=6629  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86 \
-UDEBUG -U_DEBUG -DNDEBUG -DNV_REMAP_PFN_RANGE_PRESENT \
-DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT \
-DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT


4) find in this code the flags that are causing trouble, from what i saw in the posts it was the flags

-fno-unit-at-a-time and -Wdeclaration-after-statement

So, the resulting block looks like:
Code:

CFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common -ffreestanding \
-fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 \
-mregparm=3 -Iinclude/asm-i386/mach-default \
-I$(src) -Wall -Wimplicit -Wreturn-type \
-Wswitch -Wformat -Wchar-subscripts \
-Wparentheses -Wno-multichar  -Werror -O \
-MD $(DEFINES) $(INCLUDES) -Wno-cast-qual \
-Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ \
-DMODULE  -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  \
-DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 \
-DNV_PATCHLEVEL=6629  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86 \
-UDEBUG -U_DEBUG -DNDEBUG -DNV_REMAP_PFN_RANGE_PRESENT \
-DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT \
-DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT


Now save the Makefile you just edited.

Heh, now i know how my teachers felt back when i was at school ;)

Cheers

T
_________________
Retired gentoo user
Back to top
View user's profile Send private message
qnx
l33t
l33t


Joined: 25 Jun 2002
Posts: 638
Location: Göteborg, Sweden

PostPosted: Thu Mar 03, 2005 6:51 pm    Post subject: Reply with quote

Thanks, I knew it was there, somewhere - just couldn't locate it precisly :wink:

Anyway.. Looks like something you've put when doing this - must mention: great - patch, since it's under nvidia driver. So, I guess you're gonna remove the failing CFLAGS for the next edition of the patch?

Another questions: if you've copied that file (with CFLAGS) from the nvidia tarball (or ebuild, whatever...), how can it fail with those CFLAGS when compiled into kernel, but not when it's emerged afterwards?

One more, :D
Any technical differences? Performance?

Cheers![/i][/list]
_________________
Registred Linux user #191143!
Abit NF7-S rev. 2.00 (BIOS v. 2.7)
AMD AthlonXP 2500+ (Barton)
PATA Seagate ST3120022A
SATA Seagate ST3200822AS & Silicon Image 3112 chipset
Gentoo Linux :)
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Thu Mar 03, 2005 7:17 pm    Post subject: Reply with quote

Well, i sure think darckness knew what he was doing and he runs this module AND this kernel the whole time, so i guess its ok.
I have an ati card [EDIT] so i can only say for sure for ati users[/EDIT] however i can also insert the module for nvidia w/o probs ;)
cheers

T
_________________
Retired gentoo user
Back to top
View user's profile Send private message
Robin79
l33t
l33t


Joined: 18 Oct 2003
Posts: 632
Location: /home/valdemarsvik

PostPosted: Thu Mar 03, 2005 7:53 pm    Post subject: Reply with quote

i cant use latest nitro it seems something with ndiswrapper hardlocks it cause i tried to patch for my networkcard and it hardlocked :( have to w8 for the included one... for s98lin or w8 for sysconnect to realese one...
_________________
Gentoo 2005.0
ASUS P5AD2 Deluxe MB
Intel P4 3.2GHz
PCI-E Nvidia Geforce PCX 5750
--------------------

Registered Linux User Nr # 319050 http://counter.li.org
Back to top
View user's profile Send private message
Gandalf the White
Guru
Guru


Joined: 17 Dec 2003
Posts: 320
Location: Verdun, Canada

PostPosted: Thu Mar 03, 2005 7:55 pm    Post subject: Reply with quote

Great kernel, I removed the GCC 3.4.3 makefiles flags in order to compile nvidia, but it is also segfaulting for me on boot. Otherwise, awesome, awesome kernel, my system has never started up this quickly, is lightning fast.
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Thu Mar 03, 2005 8:07 pm    Post subject: Reply with quote

For everyone, who's driver is hardlocking after compilation with the kernel:
try changing the CFLAGS in the mentioned Makefile to the following:
Code:

CFLAGS := -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar \
-Werror -O -fno-common -mno-red-zone -MD $(DEFINES) $(INCLUDES) -Wno-cast-qual -Wno-error \
-D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  \
-DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6629  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86 \   
-UDEBUG -U_DEBUG -DNDEBUG -DNV_MAP_REGISTERS_EARLY -DNV_BUILD_NV_PAT_SUPPORT -DNV_REMAP_PFN_RANGE_PRESENT \
-DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT


cheers,

T
_________________
Retired gentoo user
Back to top
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Thu Mar 03, 2005 8:16 pm    Post subject: Reply with quote

Tiger683 wrote:
ok. maybe i overestimated you guys ;)

You sweet talker you...
Back to top
View user's profile Send private message
Robin79
l33t
l33t


Joined: 18 Oct 2003
Posts: 632
Location: /home/valdemarsvik

PostPosted: Thu Mar 03, 2005 8:18 pm    Post subject: Reply with quote

i dont use the compiled in nvidia-drivers or did you mean all drivers?
_________________
Gentoo 2005.0
ASUS P5AD2 Deluxe MB
Intel P4 3.2GHz
PCI-E Nvidia Geforce PCX 5750
--------------------

Registered Linux User Nr # 319050 http://counter.li.org
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Thu Mar 03, 2005 8:31 pm    Post subject: Reply with quote

hmm, compiled in?
ok, ok, i know you mean the included ones....
and: it would be nice though if we could get some feedback about it,
this way you would help the other users if you'd only try and say if it works....
my pupose here now (besides of struggling with these 200 patches for the experimental ;) )
IS to help..... :D

cheers

T
_________________
Retired gentoo user
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Thu Mar 03, 2005 8:34 pm    Post subject: Reply with quote

I tried to remove the two offending CFLAGS out of the nvidia makefile and it built fine. But upon loading the module on boot I get a segfault.

The odd part is that I was able to boot with my old kernel fine after that without rebuilding nvidia-kernel and nvidia-glx, so I don't think the nitro kernel installed the nvidia drivers properly.
Back to top
View user's profile Send private message
Robin79
l33t
l33t


Joined: 18 Oct 2003
Posts: 632
Location: /home/valdemarsvik

PostPosted: Thu Mar 03, 2005 8:38 pm    Post subject: Reply with quote

yes i could try em but my comp hardlocks when putting up the wlan card dont know what to do :P but bfore it locks it is very respnsive :)
_________________
Gentoo 2005.0
ASUS P5AD2 Deluxe MB
Intel P4 3.2GHz
PCI-E Nvidia Geforce PCX 5750
--------------------

Registered Linux User Nr # 319050 http://counter.li.org
Back to top
View user's profile Send private message
uman
Apprentice
Apprentice


Joined: 20 Dec 2004
Posts: 223

PostPosted: Thu Mar 03, 2005 8:43 pm    Post subject: Reply with quote

are you guys going to release a 2.6.11-nitro1 that fixes the nvidia CFLAGS problems? I got it working fine after I upgraded to GCC 3.4, but I think that it would be a good idea for someone who doesn't know about this solution.

~Brennan
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Thu Mar 03, 2005 8:43 pm    Post subject: Reply with quote

@mikegpitt: i hope you read my previous post. try the second option for trimmed CFLAGS i posted, and i hope you were
using the version 6629 of nvidia previously, otherwise you have to update the glx libraries for the version

@Robin79: Hey, i just appreciate every feedback i can get, i only have two boxes, both with similar configs!
For wlan: ill include some more updates in the experimental, also some very new pcmcia updates, i think many ppl use
notebooks here.... ;)

cheese,

T

PS: hmm, now i really have to get working on the e, since darckness is pretty sick and has to use some very strong medicine,
im alone here most of the time...... o.0

EDIT:
@uman: the stable will probably just get updated without a version bump, gotta wait for darckness to do the changes anyway, experimental will
include it all the time, ill also remove the regparm flag, but got to wait for darckness to upload it too when its ready,
i dont think its a good idea, although darckness runs it fine with original CFLAGS, his computer is pretty understanding i think ;).. ati also working here....
_________________
Retired gentoo user


Last edited by Tiger683 on Thu Mar 03, 2005 8:50 pm; edited 2 times in total
Back to top
View user's profile Send private message
Robin79
l33t
l33t


Joined: 18 Oct 2003
Posts: 632
Location: /home/valdemarsvik

PostPosted: Thu Mar 03, 2005 8:48 pm    Post subject: Reply with quote

i have to use ndiswrapper i think atleast... i think that is what hardlocks it...
_________________
Gentoo 2005.0
ASUS P5AD2 Deluxe MB
Intel P4 3.2GHz
PCI-E Nvidia Geforce PCX 5750
--------------------

Registered Linux User Nr # 319050 http://counter.li.org
Back to top
View user's profile Send private message
WladyX
Guru
Guru


Joined: 25 Nov 2004
Posts: 503
Location: Romania

PostPosted: Thu Mar 03, 2005 9:11 pm    Post subject: Reply with quote

Hi, i use reiser4 on my /, the kernel boots but when it gets to remounting file system in read-write it freezes, anyway here is my config. Thanks. :)
_________________
We are not alone.
Back to top
View user's profile Send private message
Tiger683
Veteran
Veteran


Joined: 08 Jan 2005
Posts: 1347
Location: Heffner's House

PostPosted: Thu Mar 03, 2005 9:30 pm    Post subject: Reply with quote

@wladyX: Hi.

i have a good reason to doubt that you use the 2.6.11-nitro0.

i saw this in your config:

# CONFIG_4KSTACKS is not set

as nitro uses varstacks patch, it does not contain this option in .config.

it has a varstacks section:
# CONFIG_VAR_STACKS_4 is not set
CONFIG_VAR_STACKS_8=y
# CONFIG_VAR_STACKS_16 is not set
# CONFIG_VAR_STACKS_32 is not set
etc.

cheers,

T
_________________
Retired gentoo user
Back to top
View user's profile Send private message
WladyX
Guru
Guru


Joined: 25 Nov 2004
Posts: 503
Location: Romania

PostPosted: Thu Mar 03, 2005 9:34 pm    Post subject: Reply with quote

First thank for the quick reply, second: steps i took: emerged nitro, make menuconfig, make, make modules install, make install. And it crashed. While booting with a rescue cd, i saw that /boot/vmlinuz was a symlink to the nitro kernel. So maybe when i made make menuconfig i didn't specify the stacks, i'll try again :roll:
_________________
We are not alone.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5 ... 12, 13, 14  Next
Page 4 of 14

 
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