FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 07-18-2008, 06:17 AM
Mick
 
Default xf86-video-ati-6.8.0-r1 problems

On Friday 18 July 2008, Andreas Niederl wrote:
> Mick wrote:
> > On Thursday 17 July 2008, Andrew Tchernoivanov wrote:
> >>> # modprobe -v radeon_drv
> >>> FATAL: Module radeon_drv not found.
> >>
> >> That's strange. But try one more thing - copy this radeon_drv from
> >> /usr/lib/xorg/modules/drivers to /lib/modules/<kernel
> >> version>/kernel/drivers/video
> >> Because according to modprobe's man page, by default it will look driver
> >> in /lib/modules/...
> >> So try to copy it and write here, what will modprobe say
> >
> > First I linked it:
> >
> > # ls -la /lib/modules/2.6.24-gentoo-r8/kernel/drivers/video/
> > total 8
> > drwxr-xr-x 3 root root 144 Jul 17 22:21 .
> > drwxr-xr-x 14 root root 344 May 14 18:34 ..
> > drwxr-xr-x 2 root root 72 May 14 18:34 backlight
> > -rw-r--r-- 1 root root 4291 May 14 18:34 output.ko
> > lrwxrwxrwx 1 root root 43 Jul 17 22:21
> > radeon.so -> /usr/lib/xorg/modules/drivers/radeon_drv.so
> >
> > but since that did not work, I copied it:
> >
> > # ls -la /lib/modules/2.6.24-gentoo-r8/kernel/drivers/video/
> > total 448
> > drwxr-xr-x 3 root root 176 Jul 17 22:27 .
> > drwxr-xr-x 14 root root 344 May 14 18:34 ..
> > drwxr-xr-x 2 root root 72 May 14 18:34 backlight
> > -rw-r--r-- 1 root root 4291 May 14 18:34 output.ko
> > lrwxrwxrwx 1 root root 43 Jul 17 22:21
> > radeon.so -> /usr/lib/xorg/modules/drivers/radeon_drv.so
> > -rwxr-xr-x 1 root root 448808 Jul 17 07:09 radeon_drv.so
> >
> > Modprobing either of the two fails with the same error message.
>
> That's because this is not a kernel module.
>
> > drmOpenDevice: node name is /dev/dri/card0
> > drmOpenDevice: open result is -1, (No such device or address)
> > drmOpenDevice: open result is -1, (No such device or address)
> > drmOpenDevice: Open failed
> > [drm] failed to load kernel module "radeon"
> > (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
> > [dri] Disabling DRI.
>
> I'm just guessing here, but maybe your kernel is missing DRM support for
> your graphics chip.
>
> What's the output of grep -i radeon /boot/config-$(uname -r) ?

# grep -i radeon /boot/config-$(uname -r)
CONFIG_FB_RADEON=y
CONFIG_FB_RADEON_I2C=y
CONFIG_FB_RADEON_BACKLIGHT=y
# CONFIG_FB_RADEON_DEBUG is not set

--
Regards,
Mick
 
Old 07-18-2008, 08:26 AM
Andreas Niederl
 
Default xf86-video-ati-6.8.0-r1 problems

Mick wrote:

On Friday 18 July 2008, Andreas Niederl wrote:

[...]

I'm just guessing here, but maybe your kernel is missing DRM support for
your graphics chip.

What's the output of grep -i radeon /boot/config-$(uname -r) ?


# grep -i radeon /boot/config-$(uname -r)
CONFIG_FB_RADEON=y
CONFIG_FB_RADEON_I2C=y
CONFIG_FB_RADEON_BACKLIGHT=y
# CONFIG_FB_RADEON_DEBUG is not set



CONFIG_DRM and CONFIG_DRM_RADEON are needed for direct rendering. The
respective options are found in Device Drivers -> Character Devices.



Regards,
Andi
--
gentoo-user@lists.gentoo.org mailing list
 
Old 07-18-2008, 10:16 AM
Andreas Niederl
 
Default xf86-video-ati-6.8.0-r1 problems

Andreas Niederl wrote:

Mick wrote:

[...]

# grep -i radeon /boot/config-$(uname -r)
CONFIG_FB_RADEON=y
CONFIG_FB_RADEON_I2C=y
CONFIG_FB_RADEON_BACKLIGHT=y
# CONFIG_FB_RADEON_DEBUG is not set



CONFIG_DRM and CONFIG_DRM_RADEON are needed for direct rendering. The
respective options are found in Device Drivers -> Character Devices.


Actually, they moved to Device Drivers -> Graphics Support -> Direct
Rendering Manager in recent kernels.



Regards,
Andi
--
gentoo-user@lists.gentoo.org mailing list
 
Old 07-18-2008, 06:03 PM
Mick
 
Default xf86-video-ati-6.8.0-r1 problems

On Friday 18 July 2008, Andreas Niederl wrote:
> Andreas Niederl wrote:
> > Mick wrote:
>
> [...]
>
> >> # grep -i radeon /boot/config-$(uname -r)
> >> CONFIG_FB_RADEON=y
> >> CONFIG_FB_RADEON_I2C=y
> >> CONFIG_FB_RADEON_BACKLIGHT=y
> >> # CONFIG_FB_RADEON_DEBUG is not set
> >
> > CONFIG_DRM and CONFIG_DRM_RADEON are needed for direct rendering. The
> > respective options are found in Device Drivers -> Character Devices.
>
> Actually, they moved to Device Drivers -> Graphics Support -> Direct
> Rendering Manager in recent kernels.

Guys, I've checked all my kernel config files on this box:
# grep -i DRM /boot/config-2.6.2*
/boot/config-2.6.20-gentoo-r8:# CONFIG_DRM is not set
/boot/config-2.6.23-gentoo-r9:# CONFIG_DRM is not set
/boot/config-2.6.24-gentoo-r4:# CONFIG_DRM is not set
/boot/config-2.6.24-gentoo-r7:# CONFIG_DRM is not set
/boot/config-2.6.24-gentoo-r8:# CONFIG_DRM is not set

However, there is a nice fat drm and radeon modules in my previous kernels,
virtue of the fact that I installed xf86-video-ati:

# ls -la /lib/modules/2.6.24-gentoo-r7/x11-drm/
total 265
drwxr-xr-x 2 root root 104 May 6 20:03 .
drwxr-xr-x 6 root root 560 May 7 20:35 ..
-rw-r--r-- 1 root root 141895 May 6 20:03 drm.ko
-rw-r--r-- 1 root root 123260 May 6 20:03 radeon.ko

For some reason on the 2.6.24-gentoo-r8 kernel the xf86-video-ati fails to
install any modules, hence this message. I haven't configured this box for
ages so I may be misunderstanding something here. Do I have to switch to the
kernel drivers?
--
Regards,
Mick
 
Old 07-18-2008, 07:30 PM
Nikos Chantziaras
 
Default xf86-video-ati-6.8.0-r1 problems

Mick wrote:

[...]
For some reason on the 2.6.24-gentoo-r8 kernel the xf86-video-ati fails to
install any modules, hence this message. I haven't configured this box for
ages so I may be misunderstanding something here. Do I have to switch to the
kernel drivers?


You need to compile a kernel with DRM + ATI Radeon support. If you're
not running this kernel in more than one machine, you can compile it in
the kernel; no reason to make it a module. If you intent to also try
the proprietary driver, then you need to make it a module (because this
driver provides its own DRM module.)


--
gentoo-user@lists.gentoo.org mailing list
 
Old 07-19-2008, 10:37 AM
Mick
 
Default xf86-video-ati-6.8.0-r1 problems

On Friday 18 July 2008, Nikos Chantziaras wrote:
> Mick wrote:
> > [...]
> > For some reason on the 2.6.24-gentoo-r8 kernel the xf86-video-ati fails
> > to install any modules, hence this message. I haven't configured this
> > box for ages so I may be misunderstanding something here. Do I have to
> > switch to the kernel drivers?
>
> You need to compile a kernel with DRM + ATI Radeon support. If you're
> not running this kernel in more than one machine, you can compile it in
> the kernel; no reason to make it a module. If you intent to also try
> the proprietary driver, then you need to make it a module (because this
> driver provides its own DRM module.)

Right, found it - for some reason I had not emerged x11-base/x11-drm, which
places the radeon.ko under /lib/modules/<kernel_name>/x11-drm/

module-rebuild would pick this up of course, but I suspect I hadn't run it
after I compiled a kernel last time.

Better make a note of this for the future!

Thank you all for your help.
--
Regards,
Mick
 

Thread Tools




All times are GMT. The time now is 04:13 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org