View previous topic :: View next topic |
Author |
Message |
salivian Tux's lil' helper


Joined: 15 Sep 2002 Posts: 91
|
Posted: Tue Feb 08, 2005 7:50 am Post subject: |
|
|
yeah. the opengl-update thingy is still problematic
to resolve that:
cp /usr/lib/libGL.so.1.2 /usr/lib/opengl/xorg-x11/lib/
cp /usr/lib/modules/extensions/libglx.so /usr/lib/opengl/xorg-x11/extensions/ |
|
Back to top |
|
 |
mlybarger Guru


Joined: 04 Sep 2002 Posts: 463
|
Posted: Wed Feb 09, 2005 4:33 am Post subject: |
|
|
AIgor: i tried your suggestion, and got some error about noXFree86DRIExtension symbol. the server came up but no dri. btw, i'm not exactly using the Savage driver, i'm using the via. i have a via S3 UniChrome] Integrated Video card on my lappy. using the binary via driver gives worse perf in glxgears than using vesa driver. i've had this lappy for about a year almost and have used vesa on it because i couldn't get via driver ever to work.
now, i'm ready to give it a go. |
|
Back to top |
|
 |
AIgor n00b


Joined: 27 Apr 2004 Posts: 60 Location: Perugia - Italy
|
Posted: Thu Feb 10, 2005 10:44 am Post subject: |
|
|
Uhm... Look if libraries were installed in right places, and give me more informations about errors in your logs. |
|
Back to top |
|
 |
salivian Tux's lil' helper


Joined: 15 Sep 2002 Posts: 91
|
Posted: Fri Feb 11, 2005 7:17 am Post subject: |
|
|
noXFree86DRIExtension is related to your /usr/X11R6/bin/Xorg binary in my experience.
You need at least the ~x86, if not CVS, Xserver or Xorg binary, try nm your Xorg and look for that symbol. |
|
Back to top |
|
 |
masterinferno Apprentice


Joined: 28 Jul 2004 Posts: 236 Location: France
|
Posted: Fri Feb 11, 2005 10:00 am Post subject: |
|
|
Hi !
I've got a desperate problem with my Shuttle SK41G (ProSavageDDR integrated to the main board)
Code: | VGA compatible controller: S3 Inc. VT8375 [ProSavage8 KM266/KL266] |
(I followed the method with CVS, it gave me symbol errors...)
So I tried with binaries, and now there is a big glitch in the display:
When I launch GDM, the text in a GTK box disappears when the cursor goes over it.
And when I launch my session, X seems to be crashed: the cursor is broken, and the display is getting mad... I've got the latest ~x86 xorg-x11, and my xorg.conf seems to be good. (GLX, DRI are activated, so as the 0666 section)
Please help me thanks
Little question: My kernel is configured with only AGP support [*] since the compiled drm and savage modules will do the 3D and the display. The modules made with install.sh script are in the /usr/lib/modules/..... Do I have to load them in /etc/modules.autoload.d/kernel-2.6 ? _________________ "La vérité, c'est comme la peau du saucisson: desfois, c'est dur à avaler." |
|
Back to top |
|
 |
salivian Tux's lil' helper


Joined: 15 Sep 2002 Posts: 91
|
Posted: Sat Feb 12, 2005 2:11 am Post subject: |
|
|
In my experience .... No.
I even compile everything as modules (agp savage etc ), the xserver should make a access request to your pci bus then the kernel should load the modules properly.
for you CVS symbol problem.
did you have dlloader in USE and did a make install after the server is built ?
CVS builds .so's by default. |
|
Back to top |
|
 |
masterinferno Apprentice


Joined: 28 Jul 2004 Posts: 236 Location: France
|
Posted: Sat Feb 12, 2005 9:41 am Post subject: |
|
|
Yes, the first time I tried, I emerged with +dlloader and +opengl but I gave up with this method..
I remember, when I tried this method, I reboot a first time..No glitches ! but glxinfo said me "no opengl"... (in spite of the 0666 section)
So I put the modules in /etc/modules.autoload.d/kernel-2.6, I reboot, and then it began to crash my display.
So I removed the modules from this file, and it changed nothing (crash+glitches)..
And then I tried with the binaries, without dlloader...which is my actual x.org (with vesa driver )
No, I didn't remember I made a "make install" after the server built..you mean the dri cvs ?(my x.org is not from cvs, it's a ~x86)
I'm going to make a last try with this..and if it gives me bad results, I think I will give up..
Thank you a lot !  _________________ "La vérité, c'est comme la peau du saucisson: desfois, c'est dur à avaler." |
|
Back to top |
|
 |
salivian Tux's lil' helper


Joined: 15 Sep 2002 Posts: 91
|
Posted: Sat Feb 12, 2005 11:17 am Post subject: |
|
|
There are 3 thing that you need from CVS
1. xc (which is really xorg, but dri folks provided a minimal build config)
2. Mesa (provides DRI driver)
3. drm (Modules)
disregard you have the latest ~x86(6.8.2) or not, you still need to bulid things from CVS (including xc) according to http://dri.freedesktop.org/wiki/Building.
The current 6.8.2 comes with a Savage 3D DRI modules but without a Savage DDX 2D DRI aware driver. So that driver must be bulit from CVS as well.
The symbol error should be related to the version of /usr/bin/Xorg. there is an Xorg in extras/ in the binary snapshot server. |
|
Back to top |
|
 |
Gullible Jones n00b

Joined: 22 Jan 2005 Posts: 41 Location: Dog Solitude
|
Posted: Sat Feb 12, 2005 10:36 pm Post subject: |
|
|
Ummm... aren't Mesa and x11-drm (both with Savage support) in Portage right now? |
|
Back to top |
|
 |
salivian Tux's lil' helper


Joined: 15 Sep 2002 Posts: 91
|
Posted: Sun Feb 13, 2005 6:42 pm Post subject: |
|
|
To my knowledge ... No...
Xorg 6.8.2 comes with a DRI unaware 2D driver and a DRI module ( ie useless...)...
so all 2D and (Mesa) DRI drivers need to be bulit from CVS. |
|
Back to top |
|
 |
Gullible Jones n00b

Joined: 22 Jan 2005 Posts: 41 Location: Dog Solitude
|
Posted: Sun Feb 13, 2005 7:47 pm Post subject: |
|
|
Mesa
x11-drm
The only problem would be the 2D drivers, you would have to build those from CVS AFAIK. |
|
Back to top |
|
 |
RoadRunner Bodhisattva


Joined: 12 Jun 2002 Posts: 490 Location: Coimbra, Portugal
|
Posted: Sun Feb 13, 2005 8:08 pm Post subject: |
|
|
http://www.gentoo.org/doc/en/dri-howto.xml#doc_chap5
I believe salivian is correct, since I tried the mesa and x11-drm packages with ~x86 and no dri on my savage MX. Don't know about the hard masked versions though. |
|
Back to top |
|
 |
Gullible Jones n00b

Joined: 22 Jan 2005 Posts: 41 Location: Dog Solitude
|
Posted: Sun Feb 13, 2005 9:41 pm Post subject: |
|
|
Yep... You're right.
(Hmm... Why are the current version of DRM and the only available Mesa ebuild hard masked? ) |
|
Back to top |
|
 |
RoadRunner Bodhisattva


Joined: 12 Jun 2002 Posts: 490 Location: Coimbra, Portugal
|
Posted: Mon Feb 14, 2005 12:02 am Post subject: |
|
|
That's easy to reply =)
Check /usr/portage/profiles/package.mask:
Code: |
# <battousai@gentoo.org> (06 Jan 2005)
# Needs testing before release.
=x11-base/x11-drm-20050104
|
Code: |
# Only use the mesa and mesa-glu provided with x11-base/xfree,
# as the external ones gives problems in most cases with DRI/DRM.
# Nvidia users do not use it anyhow, and tdfx users report that
# it works fine with the mesa included with xfree. If you do
# unmask these, make sure that you know what you are doing, and
# know that if anything breaks, then you get to keep the pieces.
#
# azarah (26 May 2002)
>=media-libs/mesa-3.0
>=media-libs/mesa-glu-3.0
>=media-libs/sgi-oss-glu-1.0
|
|
|
Back to top |
|
 |
firephoto Veteran


Joined: 29 Oct 2003 Posts: 1604 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Thu Feb 17, 2005 11:21 pm Post subject: |
|
|
Ok I'm trying to get better performance with X on my thinkpad 20 so I need dri-drm I suppose and the instructions here seem to be chaning as the weeks pass so I need a little help.
I have xorg-x11-6.8.2. emerged and x11-drm-20050104 but as I've come to the conclusion my system is still using the Xorg dri and drm. I'm re-emerging xorg-x11 with the "insecure-drivers" option now since I saw that mentioned above and it mentions savage in the use.desc but I'm pretty sure I need more.
Code: |
x11-base/xorg-x11-6.8.2 -3dfx -3dnow +bitmap-fonts -cjk -debug -dlloader -dmx -doc +font-server -hardened +insecure-drivers* -ipv6 -minimal +mmx +nls +opengl +pam -sdk +sse -static +truetype-fonts +type1-fonts (-uclibc) +xprint +xv
|
I downloaded the latest binaries that AIgor mentioned and I DON'T have the dlloader use flag set so I'm planning on trying that method like he described at the end of the last page of this thread. Any issues I'll have doing that? Anything else to do?
I have "CONFIG_DRM=y" in my kernel, is this needed still? The instructions were kind of old where I read this was needed. |
|
Back to top |
|
 |
firephoto Veteran


Joined: 29 Oct 2003 Posts: 1604 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Sat Feb 19, 2005 3:52 am Post subject: |
|
|
I got it working finally.
I removed x11-drm, followed the gentoo guide for that, went to the dri cvs guide and followed that for a binary install from a snapshot. Installed the Xorg and the modules binary packages (once I had a lesson in where xorg gets emerged to now), installed the "common" package, installed the "savage" package. I'm not sure if I need to really install them like I did or just copy the modules to their proper homes but I used the install.sh script with both and it worked. When I first tried it the system locked up and was stuck, magic-sysrq was no help so I powered off and started back up searching for clues. Made sure the proper modules were loading (I have a savage.ko in 2 places) and the proper ones were loading. Did some more lookin and grep'n and finally just tried it and it worked. Agp was set to 1x at first but I got the set in my xorg.conf to 2x now. Way better than before, no more cpu load from moving the pointer around.
I'm getting this with a default glxgears window.
Code: |
1845 frames in 5.0 seconds = 369.000 FPS
|
This is on an IBM Thinkpad T20, S3 Inc. 86C270-294 Savage/IX-MV (rev 17).
Will it be possible in the future to build the 3D dri-drm drivers with the xorg-x11 ebuild in the future? If not maybe an ebuild that could fetch, build, install the necessary parts for the savage drivers from the latest binary snapshots.
Also yesterday the errors I was getting when I was getting errors and not lockups or superslow mode were version mismatch ones so apparently part of 6.8.2 isn't compatible with the cvs parts? |
|
Back to top |
|
 |
Beleaguered n00b

Joined: 06 Jan 2003 Posts: 19
|
Posted: Mon Feb 21, 2005 7:34 am Post subject: |
|
|
Do the cvs builds of xorg-x11 and xorg-drm from fluidportage work? I'd still need a meas from cvs, right? |
|
Back to top |
|
 |
salivian Tux's lil' helper


Joined: 15 Sep 2002 Posts: 91
|
Posted: Wed Feb 23, 2005 6:15 am Post subject: |
|
|
One question is "Do you want a complete CVS of X?"
Current DRI-cvs building instructions just bulid a minimal Xserver with updated 2D drivers and OpenGL libs , no fonts and special extensions.
I think the DRI folks just don't want to touch (DRI unnecessary) X components that are stable. |
|
Back to top |
|
 |
firephoto Veteran


Joined: 29 Oct 2003 Posts: 1604 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Thu Mar 03, 2005 3:31 am Post subject: [SOLVED] |
|
|
I can't get the savage.ko module to load after updating my kernel to 2.6.11-ck1. I get these errors.
Code: |
kobject_register failed for drm (-17)
[<c02540cb>] kobject_register+0x5b/0x70
[<c012fa01>] mod_sysfs_setup+0x51/0xc0
[<c0130d92>] load_module+0x962/0xa70
[<c0130f08>] sys_init_module+0x68/0x240
[<c0103139>] sysenter_past_esp+0x52/0x75
savage: Unknown symbol drm_get_resource_len
savage: Unknown symbol drm_get_dev
savage: Unknown symbol drm_get_resource_start
savage: Unknown symbol drm_cleanup_pci
savage: Unknown symbol drm_initmap
|
*edit
I had CONFIG_DRM=y in my kernel, removing it allows the savage module to load again.
edit*
Last edited by firephoto on Wed Mar 09, 2005 7:12 pm; edited 1 time in total |
|
Back to top |
|
 |
odocoileus n00b

Joined: 27 Dec 2004 Posts: 45
|
Posted: Sun Mar 06, 2005 7:49 pm Post subject: |
|
|
Ok, I read these five pages, and I have no clue, can someone break it down for me? Please? Someone linked to http://www.gentoo.org/doc/en/dri-howto.xml#configure_xorg and I followed it, but it didn't work. After reading more, I am under the impression that I need more current versions? If so do I need to remove just the xorg-drm, or X altogether? Do I just follow the instructions on http://dri.freedesktop.org/wiki/Building? And finally, I didn't see anyone mention the savage drivers under i2c hardware in the kernel config, should I use that or not? And if so, which one...One lists the supported chip as '...8365...aka savage4' (the numbers match my lspci) the other one says it supports savage4... how confusing is that? |
|
Back to top |
|
 |
odocoileus n00b

Joined: 27 Dec 2004 Posts: 45
|
Posted: Tue Mar 08, 2005 1:13 am Post subject: |
|
|
AIgor wrote: | I recommend to compile cvs tree to obtain direct rendering, as reported in the previus post... BTW if you want to use binaries:
1- In any case you should compile the latest ~86 release of xorg-x11 (without dlloader use option) if you want to install last binaries.
2- Download last "common" and "savage" packages (same release) from:
http://dri.freedesktop.org/snapshots/
in the same directory.
3- Unpacked the packages and change in dripkg directory
4- Launch install.sh script and confirm all the questions
5- After reboot look if you have the right version (2.0.0) of the savage driver with the command "LIBGL_DEBUG=verbose glxinfo | grep savage"
@salivian: is opengl-update still bother for the install script of cvs, or you can leave out the manual installation? Can you compile cvs with -fPIC option?
@all: this thread is becaming difficult to read. Perhaps someone has time for rewrite and maintain a new howto....  |
OK, you say not to use USE="dlloader"? So, starting with a botched attempt following the instructions at http://dri.freedesktop.org/wiki/Building, do I 'emerge xorg-x11-6.8.2-r1'? then return to http://dri.freedesktop.org/wiki/Building and start from the top again there? Since I have already done this a couple times now, is there anything I should remove first? Or will it be fine just reinstalling? |
|
Back to top |
|
 |
firephoto Veteran


Joined: 29 Oct 2003 Posts: 1604 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Wed Mar 09, 2005 7:36 pm Post subject: |
|
|
I got the drm and savage module working with 2.6.11, I had CONFIG_DRM=y selected in my kernel.
odocoileus:
I just have the latest xorg-x11 from portage installed then I use the drm instructions and install the the drm enabled xorg X server over the emerged one and then build the drm and savage modules.
http://dri.freedesktop.org/wiki/Building is the way to do it, you can use the snapshots though if you don't want to build all the parts. I used the files from
http://dri.freedesktop.org/snapshots/extras/ instead of building those.
I wish there was an ebuild that wrapped all the necessary things together so it would be just a simple "emerge savage-drm" and you'd get the proper X server, mesa, drm, and savage parts. I guess when xorg gets split into pieces it won't be such an issue and maybe an ebuild will work better then. |
|
Back to top |
|
 |
dom_ n00b

Joined: 30 Apr 2004 Posts: 50
|
Posted: Wed Mar 09, 2005 10:05 pm Post subject: |
|
|
edit : i am using an omnibook xe3gc with S3 Inc. 86C270-294 Savage/IX-MV rev 19
I did not succeed having dri with xorg-x11 6.8.2-r1 and x11-drm 20050104 nor with latest cvs of dri.
But the snapshot from http://dri.freedesktop.org/snapshots/savage-20050225-linux.i386.tar.bz2 did it.
glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
So dri is working with this snapshot, the xorg-x11 and gentoo-dev-source from portage.
I just have questions for the use flags to build xorg. What are dlloader, dmx for ?
Second question is about the doc flag, what the extra doc contains ?
and the last one is for USE_INPUT_DEVICES flag, are this flags used in the build process as i
will need his wacom functionnality ?
here is my uses :
equery uses xorg-x11
[ Searching for packages matching xorg-x11... ]
[ Colour Code : set unset ]
[ Legend : Left column (U) - USE flags from make.conf ]
[ : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for x11-base/xorg-x11-6.8.2-r1 ]
U I
- - 3dfx : Adds support for 3dfx video cards to XFree86. See: voodoo3
- - 3dnow : Adds support for 3dnow multimedia processor instructions
+ + bitmap-fonts : <unknown>
- - cjk : Adds support for Multi-byte character languages (Chinese, Japanese, Korean)
- - debug : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too
- - dlloader : <unknown>
- - dmx : <unknown>
- - doc : Adds extra documentation (API, Javadoc, etc)
+ + font-server : <unknown>
- - hardened : activate default security enhancements for toolchain (gcc, glibc, binutils)
- - insecure-drivers : <unknown>
+ + ipv6 : Adds support for IP version 6
- - minimal : Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)
+ + mmx : Adds support for optimizations for Pentium MMX and Athlon class processors
+ + nls : <unknown>
+ + opengl : Adds support for OpenGL
+ + pam : <unknown>
- + sdk : <unknown>
+ + sse : fast floating point optimization for PentiumIII+ class chips
- - static : !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically
+ + truetype-fonts : <unknown>
+ + type1-fonts : <unknown>
- - uclibc : Enable uclibc specific patches and build or link uclibc
- - xprint : Support for xprint, http://www.mozilla.org/projects/xprint/
+ + xv : Adds in optional support for the Xvideo extension (an X API for video playback)
- - debug : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too
@+
dom |
|
Back to top |
|
 |
salivian Tux's lil' helper


Joined: 15 Sep 2002 Posts: 91
|
Posted: Thu Mar 10, 2005 10:34 pm Post subject: |
|
|
I guess the experience is similar.
the current DRI,xc ... 10-Mar-2005 does not work....
2005-02-18 works fine for me
add -D 2005-02-18 to cvs command will set the time tag. |
|
Back to top |
|
 |
AIgor n00b


Joined: 27 Apr 2004 Posts: 60 Location: Perugia - Italy
|
Posted: Fri Mar 11, 2005 10:13 am Post subject: |
|
|
Uhm... The current cvs version (installed on 9-mar-2005) works for me... also the new option DmaMode... I should write here the installation steps, but now I must work . Wait me... |
|
Back to top |
|
 |
|