Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

HOWTO: Radeon 9500 (and newer) with DRI

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
337 posts
  • Page 14 of 14
    • Jump to page:
  • Previous
  • 1
  • …
  • 10
  • 11
  • 12
  • 13
  • 14
Author
Message
Slippery Jim
Guru
Guru
User avatar
Posts: 300
Joined: Sat Jan 08, 2005 9:25 pm

  • Quote

Post by Slippery Jim » Fri Sep 07, 2007 7:44 pm

lordcris wrote:
licor wrote:
any update on this? I'm getting this same error on the current cvs.. :S

nope.
you should temporally switch to the stable version ...
or scratch the itch yourself...
Top
mikb
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 135
Joined: Wed Dec 14, 2005 10:52 pm
Location: Sydney Australia
Contact:
Contact mikb
Website

  • Quote

Post by mikb » Wed Sep 12, 2007 8:05 pm

Slippery Jim wrote:
lordcris wrote:
licor wrote:
any update on this? I'm getting this same error on the current cvs.. :S

nope.
you should temporally switch to the stable version ...
or scratch the itch yourself...
Scratching the itch is a non-trivial amount of work, but for those who'd like to try, there is a "pci-rework" branch in the git repository on freedesktop.org. At the moment only the ati driver has been reworked, the radeon, r128 and theatre drivers are commented out of the config.

There is a PCI Rework howto at http://wiki.x.org/wiki/PciReworkHowto. It's based on what was done to the Intel driver, but it explains a lot (but by no means all) of what needs to be done.

I don't have a working cut of the code at the moment, but I do have a work around.

There is a "no-pci-rework" branch in the git repository for xorg-server. I made a local overlay by copying the r300-driver overlay of xorg-server into my local overlay tree, and got this working in two steps:
  • Create the following patch file in the ./files directory of the overlay as

    Code: Select all

    xorg-server-1.3.99.999-fix-xorgcfg-pixman.patch
    :

    Code: Select all

    --- hw/xfree86/utils/xorgcfg/Makefile.am.orig   2007-09-02 19:54:30.000000000 +0000
    +++ hw/xfree86/utils/xorgcfg/Makefile.am        2007-09-02 20:01:46.000000000 +0000
    @@ -29,7 +29,7 @@
     if BUILD_XORGCFG
     bin_PROGRAMS = xorgcfg
    
    -INCLUDES = $(XORG_INCS) -I$(top_srcdir)/hw/xfree86/parser
    +INCLUDES = $(XORG_INCS) -I$(top_srcdir)/hw/xfree86/parser -I$(includedir)/pixman-1
    
     OPTIONSPATH=$(libdir)/X11
    
    
  • Apply the following patch to xorg-server-1.3.99.999.ebuild:

    Code: Select all

    --- layman/r300-driver/x11-base/xorg-server/xorg-server-1.3.99.999.ebuild    2007-06-21 23:21:40.000000000 +1000
    +++ overlay/x11-base/xorg-server/xorg-server-1.3.99.999.ebuild       2007-09-12 11:52:53.000000000 +1000
    @@ -275,7 +275,9 @@
     pkg_setup() {
            use minimal || ensure_a_server_is_building
    
    -       PATCHES="${FILESDIR}/${P}-fix-sysconfdir-references.patch"
    +       PATCHES="${FILESDIR}/${P}-fix-sysconfdir-references.patch
    +           ${FILESDIR}/${P}-fix-xorgcfg-pixman.patch
    +           "
    
            # Patches required for compiz to work with AIGLX,
            # but they slow EXA down.
    @@ -567,8 +569,8 @@
     xorg_src_unpack() {
            local EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver"
            local EGIT_PROJECT="xorg-server"
    -       local EGIT_BRANCH="master"
    -       local EGIT_TREE="master"
    +       local EGIT_BRANCH="no-pci-rework"
    +       local EGIT_TREE=${EGIT_BRANCH}
            git_src_unpack
     }
    
    
    remake the manifest, and emerge xorg-server.
Seems to be working for me - I have X, and glxinfo reports direct rendering is working.
With sufficient thrust, pigs fly just fine (RFC 1925, apparently talking about Gentoo)
Top
Shamus397
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sun Apr 03, 2005 2:01 pm
Location: Ur-th

  • Quote

Post by Shamus397 » Mon Sep 17, 2007 10:13 pm

It seems that the r300-driver overlay has been abandoned, but at least what's in portage seems to work now. :)

I unmerged all the stuff from the overlay and re-emerged all the packages from the regular portage tree and amazingly enough, it worked (where it == 3D acceleration ;)). So I guess this thread is no longer needed--at least for R300 based cards. I'm using the 1.4 xorg-server in portage on ~x86. 8)

Also, I just wanted to say a great big THANK YOU to all of the people who supported and contributed to the overlay. We'd all have been stuck without decent free 3D acceleration on radeon without your dedication and support. :D
Top
Phlogiston
Veteran
Veteran
User avatar
Posts: 1925
Joined: Tue Jan 27, 2004 12:05 pm
Location: Europe, Swizerland

  • Quote

Post by Phlogiston » Mon Sep 17, 2007 10:38 pm

Anyone here has a working dualhead configuration when using the opensource driver?
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Top
Slippery Jim
Guru
Guru
User avatar
Posts: 300
Joined: Sat Jan 08, 2005 9:25 pm

  • Quote

Post by Slippery Jim » Fri Oct 19, 2007 4:13 pm

Shamus397 wrote:It seems that the r300-driver overlay has been abandoned, but at least what's in portage seems to work now. :)

I unmerged all the stuff from the overlay and re-emerged all the packages from the regular portage tree and amazingly enough, it worked (where it == 3D acceleration ;)). So I guess this thread is no longer needed--at least for R300 based cards. I'm using the 1.4 xorg-server in portage on ~x86. 8)

Also, I just wanted to say a great big THANK YOU to all of the people who supported and contributed to the overlay. We'd all have been stuck without decent free 3D acceleration on radeon without your dedication and support. :D
If you still want to test on the bleeding edge, you can install the x11 overlay to get most of the good stuff that was in primozic's r300 overlay. There were compilation issues last week, but I submitted some patches to the overlay ebuilds, and everything listed below emerges cleanly now. Note that you can't compile xf86-video-ati-6* against xorg-server-9999, due to API changes. This affects downgrading to stable too, because portage tries to downgrade xf86-video-ati before downgrading xorg-server, and therefore tries to build xf86-video-ati-6* against the installed xorg-server, which fails. Manually downgrade xorg-server first to work around this, if you're having trouble.

Code: Select all

layman -a x11
Here's the relevant sections of my /etc/portage files, to pull in the git versions:

package.keywords:

Code: Select all

# Mesa DRI stuff: #
#~~~~~~~~~~~~~~~~~#
x11-libs/libdrm ~amd64
x11-base/x11-drm ~amd64
media-libs/mesa ~amd64
x11-apps/mesa-progs ~amd64
x11-misc/driconf ~amd64

# xorg 1.4 stuff: #
# Add to package.mask:
# =x11-base/xorg-server-9999
# =x11-proto/inputproto-9999
#
#~~~~~~~~~~~~~~~~~#
x11-proto/renderproto ~amd64
x11-libs/pixman ~amd64
x11-libs/libXrender ~amd64
x11-libs/libXtst ~amd64
x11-libs/libXaw ~amd64
x11-libs/libXpm ~amd64
x11-libs/libX11 ~amd64
x11-libs/xtrans ~amd64
x11-libs/libXfont ~amd64
x11-libs/libXi ~amd64
x11-apps/xinit ~amd64
x11-drivers/xf86-input-keyboard ~amd64
x11-base/xorg-server ~amd64

#x11-misc/xkeyboard-config ~amd64

### X11 overlay stuff: ###
# Remove from package.mask:
# =x11-base/xorg-server-9999
# =x11-proto/inputproto-9999
#
# Uncomment these as necessary:
#~~~~~~~~~~~~~~~~~~~~~~~~#
x11-proto/inputproto ~amd64
x11-proto/xf86dgaproto ~amd64
x11-libs/libpciaccess ~amd64

x11-drivers/xf86-video-ati ~amd64
package.mask:

Code: Select all

# comment out for overlay (-9999) versions:
=x11-base/xorg-server-9999
=x11-proto/inputproto-9999
=x11-libs/pixman-9999
package.unmask:

Code: Select all

### uncomment the one you want, and comment out the others:
#=x11-drivers/xf86-video-ati-6.6*
#=x11-drivers/xf86-video-ati-6.7*
=x11-drivers/xf86-video-ati-9999*
Top
blazi
n00b
n00b
Posts: 3
Joined: Sat Jan 12, 2008 8:26 pm

  • Quote

Post by blazi » Sun Jan 13, 2008 2:05 am

I have a problem when im compilind dri module. Look:
darkstar linux-core # DRM_MODULES="radeon" make
make -C /lib/modules/2.6.22-gentoo-r5/source SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.22-gentoo-r5'
CC [M] /usr/src/r300/drm/linux-core/drm_stub.o
/usr/src/r300/drm/linux-core/drm_stub.c:51: error: size of array 'type name' is negative
/usr/src/r300/drm/linux-core/drm_stub.c: In function 'drm_get_dev':
/usr/src/r300/drm/linux-core/drm_stub.c:220: warning: ignoring return value of 'pci_request_regions', declared with attribute warn_unused_result
/usr/src/r300/drm/linux-core/drm_stub.c:223: warning: ignoring return value of 'pci_enable_device', declared with attribute warn_unused_result
make[2]: *** [/usr/src/r300/drm/linux-core/drm_stub.o] Błąd 1
make[1]: *** [_module_/usr/src/r300/drm/linux-core] Błąd 2
make[1]: Leaving directory `/usr/src/linux-2.6.22-gentoo-r5'
make: *** [modules] Błąd 2
Top
LAj
Apprentice
Apprentice
User avatar
Posts: 294
Joined: Sat May 22, 2004 6:55 pm
Location: Avellino[Italy]

  • Quote

Post by LAj » Tue Jan 22, 2008 11:27 pm

I'm sorry, but emerging from X11 overlay, can't get out of this:

Code: Select all

x86_64-pc-linux-gnu-gcc -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/kerberos/include -I../../include -I../../include -I../../Xext -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr -I../../fb -I/usr/include/freetype2 -DXPRINT -DPRINT_ONLY_SERVER -D_XP_PRINT_SERVER_ -DXPRINTDIR=\"/usr/lib64/X11/xserver\" -DXPRASTERDDX -DXPPCLDDX -DXPMONOPCLDDX -DXPPSDDX -DXFree86Server -march=athlon64 -O2-pipe -Wl,-z -Wl,lazy -Wl,-z -Wl,lazy -o Xprt Xprt-attributes.o Xprt-AttrValid.o Xprt-ddxInit.o Xprt-Init.o Xprt-mediaSizes.o Xprt-Oid.o Xprt-spooler.o Xprt-Util.o Xprt-miinitext-wrapper.o Xprt-dpmsstubs-wrapper.o Xprt-fbcmap_mi.o  -L/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999 ../../dbe/.libs/libdbe.a ../../XTrap/.libs/libxtrap.a ../../record/.libs/librecord.a ../../composite/.libs/libcomposite.a ../../randr/.libs/librandr.a ../../xfixes/.libs/libxfixes.a ../../damageext/.libs/libdamageext.a ../../Xi/.libs/libXi.a ../../GL/glx/.libs/libglx.a ../../GL/mesa/.libs/libGLcore.a ../../miext/damage/.libs/libdamage.a ps/.libs/libps.a raster/.libs/libraster.a pcl/.libs/libpcl.a pcl-mono/.libs/libpcl.a ../../fb/.libs/libfb.a ../../render/.libs/librender.a ../../dix/.libs/libdix.a ../../config/libconfig.a ../../mi/.libs/libmi.a ../../Xext/.libs/libXext.a ../../xkb/.libs/libxkb.a ../../xkb/.libs/libxkbstubs.a ../../os/.libs/libos.a /usr/lib64/libX11.so /usr/lib64/libxcb-xlib.so /usr/lib64/libxcb.so -ldl /usr/lib64/libXfont.so /usr/lib64/libfreetype.so /usr/lib64/libXau.so /usr/lib64/libfontenc.so -lz /usr/lib64/libpixman-1.so /usr/lib64/libhal.so /usr/lib64/libdbus-1.so /usr/lib64/libXdmcp.so -lcrypto -lm -lrt
ps/.libs/libps.a(PsInit.o): In function `InitializePsDriver':
PsInit.c:(.text+0xd36): undefined reference to `GlxWrapInitVisuals'
collect2: ld returned 1 exit status
make[3]: *** [Xprt] Error 1
make[3]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/hw/xprint'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/hw/xprint'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/hw'
make: *** [all-recursive] Error 1
My USEFLAG and make.conf are:

Code: Select all

CFLAGS="-march=athlon64 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j3"

FEATURES="collision-protect"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

GENTOO_MIRRORS="http://mirror.ing.unibo.it/gentoo/ http://ftp.caliu.info/gentoo/ "

USE="3dnow 3dnowext a52 aac acl acpi apache2 bash-completion bluetooth bzip2 cdparanoia cups divx4linux dts exif flac gdbm glitz glx gphoto2 gpm gps gtk2 icqimlib jabber java javascript joystick junit ieee1394 libwww lirc lm_sensors matroska mmx mmxext mono mplayer msn multiuser nsplugin nptl nptlonly ocaml pcre perl php python ruby scanner speex sse sse2 usb v4l vim-syntax x264 xcb xcomposite xml2 xmlrpc xpm xprint xscreensever xvid xaw3d -arts -emboss -esd -evo -oss"
VIDEO_CARDS="radeon"
ALSA_CARDS="cs46xx hda-intel"
INPUT_DEVICES="evdev keyboard mouse joystick"
LINGUAS="it"
PORTDIR_OVERLAY=""
source /usr/portage/local/layman/make.conf
LIRC_DEVICE="serial"
APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajpproxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias"
all the stuff above in /etc/portage/package.{keywords|mask|unmask}
and:

Code: Select all

# emerge -pv xorg-server
[ebuild     U ]    x11-base/xorg-server-9999 [1.4.0.90-r2] USE="dri hal ipv6 sdl xorg xprint (-3dfx) -debug -dmx -kdrive -minimal (-nptl)" INPUT_DEVICES="evdev joystick keyboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="radeon -fbdev -i810 -mach64 -mga -nv -r128 -rendition -savage -tdfx -vesa -vmware (-xgi) (-amd%) (-apm%) (-ark%) (-chips%) (-cirrus%) (-cyrix%) (-dummy%) (-epson%) (-fglrx%) (-glint%) (-i128%) (-i740%) (-impact%) (-imstt%) (-neomagic%) (-newport%) (-nsc%) (-nvidia%) (-s3%) (-s3virge%) (-siliconmotion%) (-sis%) (-sisusb%) (-sunbw2%) (-suncg14%) (-suncg3%) (-suncg6%) (-sunffb%) (-sunleo%) (-suntcx%) (-tga%) (-trident%) (-tseng%) (-v4l%) (-vermilion%) (-vga%) (-via%) (-voodoo%)" 0 kB [0=>1]

Total: 2 packages (2 upgrades), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/layman/x11
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Top
LAj
Apprentice
Apprentice
User avatar
Posts: 294
Joined: Sat May 22, 2004 6:55 pm
Location: Avellino[Italy]

Finally compiled ...but doesn't work yet!

  • Quote

Post by LAj » Sun Jan 27, 2008 9:24 am

Hi,
I've merged out the xorg-server-9999 removing the 'xprint' use flag!!

Now that everything looks to be in order:

Code: Select all

laj@NeXT ~ $ glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
I don't know how to use LIBGL_DEBUG=verbose!

$ less /var/log/Xorg.0.log:

Code: Select all

(II) RADEON(0): [DRI] installation complete
(II) RADEON(0): [drm] removed 1 reserved context for kernel
(II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0x1efff000 at 0x2af6c443e000
(II) RADEON(0): [drm] Closed DRM master.
(WW) RADEON(0): Direct rendering disabled
and messages from kernel:

Code: Select all

$ dmesg | tail
[drm] Initialized drm 1.1.0 20060810
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 18 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:03:00.0 to 64
[drm] Initialized radeon 1.28.0 20060524 on minor 0
[drm] Setting GART location based on new memory map
[drm:radeon_do_init_cp] *ERROR* Cannot use PCI Express without GART in FB memory
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Top
LAj
Apprentice
Apprentice
User avatar
Posts: 294
Joined: Sat May 22, 2004 6:55 pm
Location: Avellino[Italy]

  • Quote

Post by LAj » Fri Feb 15, 2008 4:21 pm

It look like this problem is never been posted since now on the net.

Considering I'm trying open-source dri from ati-drivers after unsuccessful work I've only to change the device!

Posting a bug...

:roll:
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Top
Phlogiston
Veteran
Veteran
User avatar
Posts: 1925
Joined: Tue Jan 27, 2004 12:05 pm
Location: Europe, Swizerland

  • Quote

Post by Phlogiston » Wed Mar 05, 2008 11:05 pm

any updates on this? How do you guys build the latest driver?
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Top
lordcris
Apprentice
Apprentice
User avatar
Posts: 248
Joined: Tue Jul 09, 2002 9:36 pm

  • Quote

Post by lordcris » Wed Mar 05, 2008 11:30 pm

Phlogiston wrote:any updates on this? How do you guys build the latest driver?

i'm using the ones in the official kernel.
they work pretty well.
Top
LAj
Apprentice
Apprentice
User avatar
Posts: 294
Joined: Sat May 22, 2004 6:55 pm
Location: Avellino[Italy]

  • Quote

Post by LAj » Mon Apr 07, 2008 7:57 pm

I'm trying it!
Stay tuned :lol:

Edit: yes it works
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Top
Post Reply

337 posts
  • Page 14 of 14
    • Jump to page:
  • Previous
  • 1
  • …
  • 10
  • 11
  • 12
  • 13
  • 14

Return to “Unsupported Software”

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