Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
r500 + KMS + GEM = :D
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Thu Nov 06, 2008 11:23 pm    Post subject: Reply with quote

rmh3093 wrote:
Hopeless wrote:
I'm having trouble installing mesa, at first it failed during configure about dri2proto not being present, so I emerge it and it complains about the installed version being less than 1.99.1, so I grab the git ebuild from the overlay, install that, and mesa passes the configure stage.

Then it fails on this;
Code:
dri2.c: In function 'DRI2Connect':
dri2.c:117: error: 'xDRI2ConnectReq' has no member named 'screen'
dri2.c:124: error: 'xDRI2ConnectReply' has no member named 'busIdLength'
dri2.c:134: error: 'xDRI2ConnectReply' has no member named 'busIdLength'
dri2.c:142: error: 'xDRI2ConnectReply' has no member named 'busIdLength'
dri2.c:145: error: 'xDRI2ConnectReply' has no member named 'busIdLength'
dri2.c:150: error: 'xDRI2ConnectReply' has no member named 'busIdLength'
dri2.c:151: error: 'xDRI2ConnectReply' has no member named 'busIdLength'
dri2.c: In function 'DRI2AuthConnection':
dri2.c:162: error: 'xDRI2AuthConnectionReq' undeclared (first use in this function)
dri2.c:162: error: (Each undeclared identifier is reported only once
dri2.c:162: error: for each function it appears in.)
dri2.c:162: error: 'req' undeclared (first use in this function)
dri2.c:163: error: 'xDRI2AuthConnectionReply' undeclared (first use in this function)
dri2.c:163: error: expected ';' before 'rep'
dri2.c:168: error: 'sz_xDRI2AuthConnectionReq' undeclared (first use in this function)
dri2.c:168: error: expected expression before ')' token
dri2.c:168: error: 'X_DRI2AuthConnection' undeclared (first use in this function)
dri2.c:173: error: 'rep' undeclared (first use in this function)

<snip>
Any ideas?

Am I the only one to encounter this?


sorry, I made a mistake with the mesa ebuild, it should depend on dri2proto-1.99.1, edit the dri2proto ebuild and uncomment EGIT_BRANCH="dri2proto-1.99.1" the fix the digest and ebuild it
I had already done exactly that, it's how I got mesa to pass the configure stage, but now I come up against the compilation error above...
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Fri Nov 07, 2008 4:18 am    Post subject: Reply with quote

Hopeless wrote:
rmh3093 wrote:
Hopeless wrote:
I'm having trouble installing mesa, at first it failed during configure about dri2proto not being present, so I emerge it and it complains about the installed version being less than 1.99.1, so I grab the git ebuild from the overlay, install that, and mesa passes the configure stage.

Then it fails on this;
Code:
dri2.c: In function 'DRI2Connect':
dri2.c:117: error: 'xDRI2ConnectReq' has no member named 'screen'
dri2.c:124: error: 'xDRI2ConnectReply' has no member named 'busIdLength'
dri2.c:134: error: 'xDRI2ConnectReply' has no member named 'busIdLength'
dri2.c:142: error: 'xDRI2ConnectReply' has no member named 'busIdLength'
dri2.c:145: error: 'xDRI2ConnectReply' has no member named 'busIdLength'
dri2.c:150: error: 'xDRI2ConnectReply' has no member named 'busIdLength'
dri2.c:151: error: 'xDRI2ConnectReply' has no member named 'busIdLength'
dri2.c: In function 'DRI2AuthConnection':
dri2.c:162: error: 'xDRI2AuthConnectionReq' undeclared (first use in this function)
dri2.c:162: error: (Each undeclared identifier is reported only once
dri2.c:162: error: for each function it appears in.)
dri2.c:162: error: 'req' undeclared (first use in this function)
dri2.c:163: error: 'xDRI2AuthConnectionReply' undeclared (first use in this function)
dri2.c:163: error: expected ';' before 'rep'
dri2.c:168: error: 'sz_xDRI2AuthConnectionReq' undeclared (first use in this function)
dri2.c:168: error: expected expression before ')' token
dri2.c:168: error: 'X_DRI2AuthConnection' undeclared (first use in this function)
dri2.c:173: error: 'rep' undeclared (first use in this function)

<snip>
Any ideas?

Am I the only one to encounter this?


sorry, I made a mistake with the mesa ebuild, it should depend on dri2proto-1.99.1, edit the dri2proto ebuild and uncomment EGIT_BRANCH="dri2proto-1.99.1" the fix the digest and ebuild it
I had already done exactly that, it's how I got mesa to pass the configure stage, but now I come up against the compilation error above...


did u rebuild the digest after you edited the ebuild? it looks like its pulling dri2proto from portage
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
fat_chris
n00b
n00b


Joined: 16 Jan 2008
Posts: 10

PostPosted: Fri Nov 07, 2008 3:43 pm    Post subject: Reply with quote

I had problems with dri2proto too.
Code:
EGIT_BRANCH="dri2proto-1.99.1"

didn't seem to do much as there is no "dri2proto-1.99.1" branch, only tag, so I did
Code:
EGIT_TREE="dri2proto-1.99.1"

and it worked.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Fri Nov 07, 2008 5:37 pm    Post subject: Reply with quote

fat_chris wrote:
I had problems with dri2proto too.
Code:
EGIT_BRANCH="dri2proto-1.99.1"

didn't seem to do much as there is no "dri2proto-1.99.1" branch, only tag, so I did
Code:
EGIT_TREE="dri2proto-1.99.1"

and it worked.
I can confirm this, it's what finally got mesa to compile for me.

Thanks!
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Rion
Guru
Guru


Joined: 12 Oct 2006
Posts: 377
Location: Ekaterinburg, Russia

PostPosted: Fri Nov 07, 2008 6:35 pm    Post subject: Reply with quote

1) where can i get ebuilds? from x11 overlay?
2) can anyone post config of grub with modeset and etc?..
_________________
~amd64
rion-overlay
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Sat Nov 08, 2008 4:33 am    Post subject: Reply with quote

Rion wrote:
1) where can i get ebuilds? from x11 overlay?
2) can anyone post config of grub with modeset and etc?..
The instructions are in the first post of this thread, however zen-sources.org seems to just point to some drupal site now...

Here's a tarball of the four ebuilds required to make things easier;
hamiltonshells.ca/~hopeless/r300-kms.tar.bz2

You'll need the following in package.keywords;
Code:
media-libs/mesa **
x11-libs/libdrm **
x11-proto/dri2proto **
x11-drivers/xf86-video-ati


You'll also need to pull the kernel from zen-sources via git like so;
Code:
git clone git://zen-sources.org/zen/kernel/zen.git


This still works, as I just did it a little while ago myself.

You shouldn't need anything in grub to get it working, as long as your monitor supports edid.

As for kernel configuration, you should enable the following;
Code:
CONFIG_I2C=y
CONFIG_I2C_ALGOBIT=y

CONFIG_DRM=y
CONFIG_DRM_RADEON=y
CONFIG_DRM_RADEON_KMS=y

CONFIG_FB=y
CONFIG_FRAMEBUFFER_CONSOLE=y

You need to enable I2C_ALGOBIT before the radeon drm driver is even an option, and the framebuffer stuff isn't strictly required, but it sure is pretty. ;)

As for Xorg, I ran into a little trouble with that myself upon startx;
Code:
(II) Loading /usr/lib/xorg/modules/drivers//radeon_drv.so
dlopen: /usr/lib/xorg/modules/drivers//radeon_drv.so: undefined symbol: RT_SetConnector
(EE) Failed to load /usr/lib/xorg/modules/drivers//radeon_drv.so
Anyone have any ideas?

Anyways, many thanks to rmh3093 (and fat_chris) for getting me this far.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
samonli
n00b
n00b


Joined: 06 Nov 2004
Posts: 29

PostPosted: Sat Nov 08, 2008 3:22 pm    Post subject: Reply with quote

how to set radeon.modset=1 in grub.conf?

i had add the follow in the grub.conf

Code:

kernel /boot/vmlinuz-2.6.28-rc3-zen1 root=/dev/sda9 radeon.modset=1


and found this warning when booting
Code:

[    0.000000] Kernel command line: root=/dev/sda9 radeon.modset=1
[    0.000000] Unknown boot option `radeon.modset=1': ignoring


how to do...?

thanks very much and sorry for my bad english
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Sat Nov 08, 2008 5:27 pm    Post subject: Reply with quote

samonli wrote:
how to set radeon.modset=1 in grub.conf?

i had add the follow in the grub.conf

Code:

kernel /boot/vmlinuz-2.6.28-rc3-zen1 root=/dev/sda9 radeon.modset=1


and found this warning when booting
Code:

[    0.000000] Kernel command line: root=/dev/sda9 radeon.modset=1
[    0.000000] Unknown boot option `radeon.modset=1': ignoring


how to do...?

thanks very much and sorry for my bad english
It's "modeset", two 'e's, however I didn't actually need it, it just worked...

Did you enable "CONFIG_DRM_RADEON_KMS=y", as I believe this switches it on by default?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
samonli
n00b
n00b


Joined: 06 Nov 2004
Posts: 29

PostPosted: Sat Nov 08, 2008 6:21 pm    Post subject: Reply with quote

Hopeless wrote:
samonli wrote:
how to set radeon.modset=1 in grub.conf?

i had add the follow in the grub.conf

Code:

kernel /boot/vmlinuz-2.6.28-rc3-zen1 root=/dev/sda9 radeon.modset=1


and found this warning when booting
Code:

[    0.000000] Kernel command line: root=/dev/sda9 radeon.modset=1
[    0.000000] Unknown boot option `radeon.modset=1': ignoring


how to do...?

thanks very much and sorry for my bad english
It's "modeset", two 'e's, however I didn't actually need it, it just worked...

Did you enable "CONFIG_DRM_RADEON_KMS=y", as I believe this switches it on by default?


:( my mistake. sloved this warning.

another problem:
my video card is Radeon Mobilty HD3400 serias,the kernel config about radeon
Code:

CONFIG_DRM_RADEON=y
CONFIG_DRM_RADEON_KMS=y
CONFIG_FB_RADEON=y
CONFIG_FB_RADEON_I2C=y
CONFIG_FB_RADEON_BACKLIGHT=y
# CONFIG_FB_RADEON_DEBUG is not set


direct rendering failed

xorg log
Code:

(WW) RADEON(0): Direct rendering for RN50/RS600/R600 forced on -- This is NOT officially supported at the hardware level and may cause instability or lockups
drmOpenDevice: node name is /dev/dri/card0
[drm] failed to load kernel module "radeon"
(EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[dri] Disabling DRI.


does it not support my video card now?

thanks
Back to top
View user's profile Send private message
fat_chris
n00b
n00b


Joined: 16 Jan 2008
Posts: 10

PostPosted: Sun Nov 09, 2008 12:09 pm    Post subject: Reply with quote

I don't think it supports r600 and above.
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Mon Nov 17, 2008 2:41 pm    Post subject: Reply with quote

Hopeless wrote:
Here's a tarball of the four ebuilds required to make things easier;
hamiltonshells.ca/~hopeless/r300-kms.tar.bz2
I am using these ebuilds to install dri2proto, but am getting a similar error as Hopeless described above:
Code:
dri2.c: In function 'DRI2Connect':
dri2.c:117: error: 'xDRI2ConnectReq' has no member named 'window'
dri2.c:118: error: 'xDRI2ConnectReq' has no member named 'driverType'
dri2.c:118: error: 'DRI2DriverDRI' undeclared (first use in this function)
dri2.c:118: error: (Each undeclared identifier is reported only once
dri2.c:118: error: for each function it appears in.)
dri2.c:125: error: 'xDRI2ConnectReply' has no member named 'de...

Any clues? By the way I want to install dri2proto-1.99.1 to to install mesa with gallium-0.2 branch for nouveau support.

EDIT:Error is not exactly the same as the one described by Hopeless

EDIT2: Never mind, I actually needed dri2proto head, so I commented out EGIT_TREE in the ebuild and it worked
Back to top
View user's profile Send private message
Need4Speed
Guru
Guru


Joined: 06 Jun 2004
Posts: 497

PostPosted: Sat Dec 20, 2008 9:59 pm    Post subject: Reply with quote

Anyone know if this still works with the latest zen kernel? Am I still supposed to use the modesetting branch? It looks pretty old, but it doesn't seem like the files have been merged to master.. What about mesa, libdrm, dri2proto, and xf86-video-ati? Should I get them from airlied's git or the main git? Would it be easier to just patch a vanilla kernel myself?
_________________
2.6.34-rc3 on x86_64 w/ paludis
WM: ratpoison
Term: urxvt, zsh
Browser: uzbl
Email: mutt, offlineimap
IRC: weechat
News: newsbeuter
PDF: apvlv
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


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

PostPosted: Sun Feb 01, 2009 2:17 pm    Post subject: Reply with quote

Need4Speed wrote:
Anyone know if this still works with the latest zen kernel? Am I still supposed to use the modesetting branch? It looks pretty old, but it doesn't seem like the files have been merged to master.. What about mesa, libdrm, dri2proto, and xf86-video-ati? Should I get them from airlied's git or the main git? Would it be easier to just patch a vanilla kernel myself?


I'm having exactly the same questions. Are those ebuilds in THE overlay still up to date?
_________________
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
Palatis
n00b
n00b


Joined: 07 Oct 2006
Posts: 23
Location: Taipei/Taiwan

PostPosted: Mon Feb 02, 2009 6:11 am    Post subject: Reply with quote

Phlogiston wrote:
Need4Speed wrote:
Anyone know if this still works with the latest zen kernel? Am I still supposed to use the modesetting branch? It looks pretty old, but it doesn't seem like the files have been merged to master.. What about mesa, libdrm, dri2proto, and xf86-video-ati? Should I get them from airlied's git or the main git? Would it be easier to just patch a vanilla kernel myself?


I'm having exactly the same questions. Are those ebuilds in THE overlay still up to date?

they should always be up-to-date because they're svn/git ebuilds.
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


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

PostPosted: Mon Feb 02, 2009 6:59 am    Post subject: Reply with quote

Palatis wrote:
Phlogiston wrote:
Need4Speed wrote:
Anyone know if this still works with the latest zen kernel? Am I still supposed to use the modesetting branch? It looks pretty old, but it doesn't seem like the files have been merged to master.. What about mesa, libdrm, dri2proto, and xf86-video-ati? Should I get them from airlied's git or the main git? Would it be easier to just patch a vanilla kernel myself?


I'm having exactly the same questions. Are those ebuilds in THE overlay still up to date?

they should always be up-to-date because they're svn/git ebuilds.


Thats not true generally. If you need to pull specific branches for example, what if they get merged into master?


Furthermore it seems the ebuilds have been dropped anyway.
_________________
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
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Mon Feb 02, 2009 10:05 am    Post subject: Reply with quote

just a "me too" - kernel patches are available from rawhide but i have no idea about the rest.
Any input would be much appreciated !

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Mon Feb 02, 2009 9:21 pm    Post subject: Reply with quote

There hasnt been any new work on r500 kms for a long time... Airlied's time has been split between working on intel gem/kms and combining most of the r100-r500 code so that memory managment only has to be written once instead of 5 times... I would just wait a little bit, I bet the new kms code will show up in late .29-rc's... i thought radeon kms was targeted for .29
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
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
Page 2 of 2

 
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