Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to install old ati-drivers on new kernels?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Wed Dec 27, 2006 4:01 pm    Post subject: How to install old ati-drivers on new kernels? Reply with quote

My problem is that I have an old ati chipset (radeon mobility 9000 firegl). So I'm stuck to the old ati driver 8.28.8. I tried using the open source driver but the problem is that I have a monitor using the resolution 1680x1050 which seems not to be supported by the open source driver! Here is what I get when I try to install the ati-driver on my newly installed 2.6.19-beyond2 kernel:

Code:

 * Building the DRM module...
make: Entering directory `/usr/src/linux-2.6.19-beyond2'
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/module
s/fglrx/build_mod/firegl_public.o
/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/modules/fglrx/bu
ild_mod/firegl_public.c:89:26: error: linux/config.h: No such file or directory
/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/modules/fglrx/bu
ild_mod/firegl_public.c:447: warning: initialization from incompatible pointer t
ype
/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/modules/fglrx/bu
ild_mod/firegl_public.c: In function 'firegl_stub_open':
/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/modules/fglrx/bu
ild_mod/firegl_public.c:570: warning: assignment discards qualifiers from pointe
r target type
/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/modules/fglrx/bu
ild_mod/firegl_public.c: In function '__ke_request_irq':
/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/modules/fglrx/bu
ild_mod/firegl_public.c:2492: warning: passing argument 2 of 'request_irq' from
incompatible pointer type
make[1]: *** [/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/mo
dules/fglrx/build_mod/firegl_public.o] Error 1
make: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/l
ib/modules/fglrx/build_mod] Error 2
make: Leaving directory `/usr/src/linux-2.6.19-beyond2'
 * DRM module not built
>>> Source compiled.
>>> Test phase [not enabled]: x11-drivers/ati-drivers-8.28.8

>>> Install ati-drivers-8.28.8 into /var/tmp/portage/x11-drivers/ati-drivers-8.2
8.8/image/ category x11-drivers
 * Installing fglrx module
install: cannot stat `fglrx.ko': No such file or directory

!!! ERROR: x11-drivers/ati-drivers-8.28.8 failed.
Call stack:
  ebuild.sh, line 1580:   Called dyn_install
  ebuild.sh, line 1030:   Called src_install
  ati-drivers-8.28.8.ebuild, line 204:   Called linux-mod_src_install
  linux-mod.eclass, line 540:   Called die

!!! doins fglrx.ko failed
!!! If you need support, post the topmost build error, and the call stack if rel
evant.


Before upgrading the kernel I used 2.6.18-no2. I could install the driver adding these to lines to /usr/src/linux/include/linux/version.h:

Code:

#define UTS_RELEASE "2.6.18-no2"
#define VM_SHM 0x00000000


Adding these lines to my new kernel (changing 2.6.28-no2 to 2.6.29-beyond2) doesn't work.

Any ideas how I could install the old ati-driver?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Dec 27, 2006 7:20 pm    Post subject: Reply with quote

kernel modules and kernel need to match. You can't use old modules with new kernels usually. The radeon driver should support the resolution you want afaik. Try using xac to generate a config file for xorg.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Wed Dec 27, 2006 8:06 pm    Post subject: Reply with quote

Well I tried xac to generate a new xorg.conf. Unfortunatly xac doesn't work:

Code:

Traceback (most recent call last):
  File "/usr/sbin/xac", line 87, in ?
    output = c.get_config()
  File "/usr/lib/xac/config.py", line 56, in get_config
    self.cards = self.arch.get_video_cards(self.safe)
  File "/usr/lib/xac/arch.py", line 99, in get_video_cards
    edids = self.get_edid()
  File "/usr/lib/xac/arch.py", line 205, in get_edid
    found_edid_path = found_edid_path + [root + "/" + f]
UnboundLocalError: local variable 'found_edid_path' referenced before assignment


So I tried with xorgconfig. And I get a message telling me that my resolution (1680x1050) is out of range. More informations about this in an older post a wrote https://forums.gentoo.org/viewtopic-t-518221-highlight-.html.
Back to top
View user's profile Send private message
raylpc
Guru
Guru


Joined: 07 Aug 2003
Posts: 310
Location: Toronto, Canada

PostPosted: Fri Dec 29, 2006 4:25 am    Post subject: Reply with quote

I can confirm that the radeon driver doesn't have good support for 1680x1050. Hopefully, the upcoming xorg 7.2 has done some work in the radeon driver. Who is the maintainer btw? Just want to know if there's any activity at all.
Back to top
View user's profile Send private message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Fri Dec 29, 2006 12:15 pm    Post subject: Reply with quote

I have no idea who the maintainer is! But it would be good to make them aware of the problem! There are more and more screen using this resolution!
Back to top
View user's profile Send private message
killertux
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2003
Posts: 119

PostPosted: Mon Jan 01, 2007 5:04 pm    Post subject: patch is available Reply with quote

there is patch for this issue included with the bug report:
https://bugs.gentoo.org/show_bug.cgi?id=156790

But it will bug and does not work unless you have acpi use flag... tested working in Stock kernel 2.6.19.1 with GCC 3.4.6r1 and acpi USE flag active played
UT2004 Demo and no problems.

In future when kernel 2.6.20 comes out it's likely broken again and another patch is needed... also it will likely never work with Xorg 7.2 and newer so you will be stuck in Xorg 7.1.x forever.
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


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

PostPosted: Mon Jan 01, 2007 5:06 pm    Post subject: Re: How to install old ati-drivers on new kernels? Reply with quote

NewB wrote:
My problem is that I have an old ati chipset (radeon mobility 9000 firegl). So I'm stuck to the old ati driver 8.28.8. I tried using the open source driver but the problem is that I have a monitor using the resolution 1680x1050 which seems not to be supported by the open source driver! Here is what I get when I try to install the ati-driver on my newly installed 2.6.19-beyond2 kernel:

Code:

 * Building the DRM module...
make: Entering directory `/usr/src/linux-2.6.19-beyond2'
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/module
s/fglrx/build_mod/firegl_public.o
/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/modules/fglrx/bu
ild_mod/firegl_public.c:89:26: error: linux/config.h: No such file or directory
/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/modules/fglrx/bu
ild_mod/firegl_public.c:447: warning: initialization from incompatible pointer t
ype
/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/modules/fglrx/bu
ild_mod/firegl_public.c: In function 'firegl_stub_open':
/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/modules/fglrx/bu
ild_mod/firegl_public.c:570: warning: assignment discards qualifiers from pointe
r target type
/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/modules/fglrx/bu
ild_mod/firegl_public.c: In function '__ke_request_irq':
/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/modules/fglrx/bu
ild_mod/firegl_public.c:2492: warning: passing argument 2 of 'request_irq' from
incompatible pointer type
make[1]: *** [/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/lib/mo
dules/fglrx/build_mod/firegl_public.o] Error 1
make: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-8.28.8/work/common/l
ib/modules/fglrx/build_mod] Error 2
make: Leaving directory `/usr/src/linux-2.6.19-beyond2'
 * DRM module not built
>>> Source compiled.
>>> Test phase [not enabled]: x11-drivers/ati-drivers-8.28.8

>>> Install ati-drivers-8.28.8 into /var/tmp/portage/x11-drivers/ati-drivers-8.2
8.8/image/ category x11-drivers
 * Installing fglrx module
install: cannot stat `fglrx.ko': No such file or directory

!!! ERROR: x11-drivers/ati-drivers-8.28.8 failed.
Call stack:
  ebuild.sh, line 1580:   Called dyn_install
  ebuild.sh, line 1030:   Called src_install
  ati-drivers-8.28.8.ebuild, line 204:   Called linux-mod_src_install
  linux-mod.eclass, line 540:   Called die

!!! doins fglrx.ko failed
!!! If you need support, post the topmost build error, and the call stack if rel
evant.


Before upgrading the kernel I used 2.6.18-no2. I could install the driver adding these to lines to /usr/src/linux/include/linux/version.h:

Code:

#define UTS_RELEASE "2.6.18-no2"
#define VM_SHM 0x00000000


Adding these lines to my new kernel (changing 2.6.28-no2 to 2.6.29-beyond2) doesn't work.

Any ideas how I could install the old ati-driver?


this is what I do to compile the 8.27.10 ati driver against >=2.6.18 kernels
Code:
cd /usr/src/linux
cat include/linux/utsrelease.h >> include/linux/version.h
echo "#define VM_SHM 0x00000000" >> include/linux/mm.h
emerge ati-drivers


and FYI: my resolution is 1680x1050 which works fine in xorg
_________________
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
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Mon Jan 01, 2007 6:08 pm    Post subject: Reply with quote

It seems not to work for me! (I tried with 2.6.19-beyond2 and 2.6.20-rc2-mm1)
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


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

PostPosted: Mon Jan 01, 2007 6:36 pm    Post subject: Reply with quote

NewB wrote:
It seems not to work for me! (I tried with 2.6.19-beyond2 and 2.6.20-rc2-mm1)


im running 2.6.19-beyond1 (and i have tested this process on many kernels) and that is exactly how it do it.... either, you kernel tree is already contaminated from you playing around with it (back up your config, delete the kernel source, re-emerge, then try it again).....

...

DONT rebuild your kernel though after you do "cat include/linux/utsrelease.h >> include/linux/version.h" step because i think version.h gets overwritten/replaced during the build process... compile/install your kernel.... do the fix/trick that i mentioned and then emerge your ati-driver and it will work i promise


AND... i forgot if you are getting the config.h error you need to make this file also:
/usr/src/linux/include/linux/config.h:
#ifndef _LINUX_CONFIG_H
#define _LINUX_CONFIG_H
#include <linux/autoconf.h>
#endif

_________________
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
killertux
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2003
Posts: 119

PostPosted: Mon Jan 01, 2007 6:57 pm    Post subject: Reply with quote

I did copy paste for that hack but it failed for HUGE amout of error like it did before... tested in stock 2.6.20-rc3 with GCC 3.4.6-r1

the patch in the bugreport only worked for 2.6.19.1 and did not work for 2.6.20-rc1, 2.6.20-rc2 or 2.6.20-rc3
Back to top
View user's profile Send private message
smartdreamer
n00b
n00b


Joined: 17 Nov 2004
Posts: 17

PostPosted: Thu Jan 04, 2007 11:58 pm    Post subject: Reply with quote

rmh3093 wrote:
NewB wrote:
It seems not to work for me! (I tried with 2.6.19-beyond2 and 2.6.20-rc2-mm1)


im running 2.6.19-beyond1 (and i have tested this process on many kernels) and that is exactly how it do it.... either, you kernel tree is already contaminated from you playing around with it (back up your config, delete the kernel source, re-emerge, then try it again).....

...

DONT rebuild your kernel though after you do "cat include/linux/utsrelease.h >> include/linux/version.h" step because i think version.h gets overwritten/replaced during the build process... compile/install your kernel.... do the fix/trick that i mentioned and then emerge your ati-driver and it will work i promise


AND... i forgot if you are getting the config.h error you need to make this file also:
/usr/src/linux/include/linux/config.h:
#ifndef _LINUX_CONFIG_H
#define _LINUX_CONFIG_H
#include <linux/autoconf.h>
#endif


thanks, adding this header file (plus appending lines refered above) did it for me on linux-2.6.19-beyond2.

ah... stupid ATI
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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