Announcement

Collapse
No announcement yet.

Trouble to get the Open Source ATI drivers to work

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trouble to get the Open Source ATI drivers to work

    Hi.

    I've been trying to build and install the ATI open source drivers couple of times now, but with no success. The building, though, works fine, AFAIK, but using the compiled things is a problem.

    The problem seems to be that the Xorg does not find Radeon module, even though "modprobe radeon" gives me this:

    Code:
    filename:       /lib/modules/2.6.20-1.2948.fc6/kernel/drivers/char/drm/radeon.ko
    license:        GPL and additional rights
    description:    ATI Radeon
    author:         Gareth Hughes, Keith Whitwell, others.
    srcversion:     ACCD9AEF717B0D714690459
    depends:        drm,drm
    vermagic:       2.6.20-1.2948.fc6 SMP mod_unload 686 4KSTACKS 
    parm:           no_wb:Disable AGP writeback for scratch registers
     (int)
    Why does it then say "module radon can not be found" when I try to start X?

    So, I've compiled both the DRM and Mesa, copied the *_dri.so to /usr/lib/dri, lib*.so to /usr/lib and the drm *.ko files to /lib/modules/2.6.20-1.2948.fc6/kernel/drivers/char/drm/

    About the system I have:

    -ATI Radeon 9200SE
    -Fedora Core 6
    -Kernel 2.6.20-1.2948
    -via motherboard
    -driver sources from the git trunk

    Can some one give me more info how to start to approach this issue? What other info you would need to figure this one out?

    And is there any guide out there how to install the open source drivers in FC6? I haven't been able to find one.

    Thanks,

    -Mikko

  • #2
    i don't know about fedora. but you usually need these
    1. recent mesa (maybe also a git snapshot, or a fairly new 6.5.3 release)
    2. mesa-drm modules for your kernel, preferably from git
    3. the xorg driver sources

    compiled in that order.

    i had no trouble getting open radeon driver to work on my x300se this way.

    if you compile by hand, make sure that the installation prefix is correct (./configure --prefix=/usr ) - that applies mostly to the xorg driver.

    Comment


    • #3
      Thanks for the info. It hadn't never really occurred to me that you need also the driver for the X. I just thought that the Mesa driver would be enough drivers to get it running.

      Ok, so now I got the X start up by using the "Driver radeon" in xorg.conf, but I'm not able to get the direct rendering working. Well, at least the glxinfo says "Direct Rendering: no". Which

      Got any ideas how to start fixing this issue? At some point I remember reader about this kind of things could be caused by having many versions of the same drivers and/or libraries installed, but which ones should I look for?

      Thanks again,

      Mikko

      Comment


      • #4
        you need to load dri module via xorg.conf in modules section, and have kernel drm module for radeon (also called radeon) loaded to have dri.

        also you need proper agp kernel module which fits your motherboard's agp controller.

        Comment


        • #5
          Ok.. I tried to get things running, but via agp module is producing some headache.

          I believe I got al the other you mentioned good to go. In xorg.cong i got:

          Code:
          Section "ServerLayout"
          	Identifier     "single head configuration"
          	Screen      0  "Screen0" 0 0
          	InputDevice    "Keyboard0" "CoreKeyboard"
          EndSection
          
          Section "Module"
                  Load  "ddc"
          	Load  "dbe"
          	Load  "extmod"
          	Load  "fbdevhw"
          	Load  "glx"
          	Load  "record"
          	Load  "freetype"
          	Load  "type1"
          	Load  "dri"
          EndSection
          
          Section "InputDevice"
          	Identifier  "Keyboard0"
          	Driver      "kbd"
          	Option	    "XkbModel" "pc105"
          	Option	    "XkbLayout" "fi"
          EndSection
          
          Section "Monitor"
          	Identifier   "Monitor0"
          	ModelName    "LG 99G"
          	Option	    "dpms"
          EndSection
          
          Section "Device"
          
          	Identifier  "Videocard0"
                  Driver      "radeon"
          	Option	    "AGPMode" "4"
          	Option	    "UseInternalAGPGART" "no"
          EndSection
          
          Section "Screen"
          	Identifier "Screen0"
          	Device     "Videocard0"
          	Monitor    "Monitor0"
          	DefaultDepth     24
          EndSection
          
          Section "ServerFlags"
          	Option "AIGLX" "off"
          EndSection
          
          Section "DRI"
          	Mode         0666
          EndSection
          
          Section "Extensions"
          	Option	    "Composite" "false"
          EndSection
          And modinfo commands give me these:

          modinfo radeon
          Code:
          filename:       /lib/modules/2.6.20-1.2948.fc6/kernel/drivers/char/drm/radeon.ko
          license:        GPL and additional rights
          description:    ATI Radeon
          author:         Gareth Hughes, Keith Whitwell, others.
          srcversion:     ACCD9AEF717B0D714690459
          depends:        drm,drm
          vermagic:       2.6.20-1.2948.fc6 SMP mod_unload 686 4KSTACKS 
          parm:           no_wb:Disable AGP writeback for scratch registers
           (int)
          modinfo drm
          Code:
          filename:       /lib/modules/2.6.20-1.2948.fc6/kernel/drivers/char/drm/drm.ko
          license:        GPL and additional rights
          description:    DRM shared core routines
          author:         Gareth Hughes, Leif Delgass, Jos Fonseca, Jon Smirl
          srcversion:     29B4BB1922B39A758027550
          depends:        
          vermagic:       2.6.20-1.2948.fc6 SMP mod_unload 686 4KSTACKS 
          parm:           cards_limit:Maximum number of graphics cards (int)
          parm:           debug:Enable debug output (int)
          modinfo via
          Code:
          filename:       /lib/modules/2.6.20-1.2948.fc6/kernel/drivers/char/drm/via.ko
          license:        GPL and additional rights
          description:    VIA Unichrome / Pro
          author:         Various
          srcversion:     0498E08377EF127A767A9D4
          depends:        drm,drm
          vermagic:       2.6.20-1.2948.fc6 SMP mod_unload 686 4KSTACKS
          So those should be ok, but the VIA module is not the one I'm looking for right? I tried to search, modprobe, google for it , but nothing there. Where do I get the via-agp module if it is not shipping with the kernel?

          Regards..

          Comment


          • #6
            it could be built into the kernel.

            try to make sure it's via module you're looking for - post your lspci info.

            Comment


            • #7
              Already did do that (found out from googling it ), but here it is..

              From lspci:
              Code:
              00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333]
              00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333 AGP]
              00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
              00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
              00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
              00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
              00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
              00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
              00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
              00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
              01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 SE] (rev 01)
              01:00.1 Display controller: ATI Technologies Inc RV280 [Radeon 9200 SE] (Secondary) (rev 01)
              Seems to be showing a lot of the stuff there, what I would except, but nothing about AGP though..

              Comment


              • #8
                so it appears that you probably need the via module, agpgart and radeon loaded. and then try launching xorg.

                also make sure opengl is provided via mesa, and not 3rd party binary drivers which could be installed in the system.

                Comment


                • #9
                  Thanks for your efforts. Its been couple of days I haven't been able to test more, but now I think I have found the cause for my lack of direct rendering.

                  ldconfig says that the libGL* libraries are there.

                  Running ldconfig -p | grep GL gives:

                  Code:
                  libQtOpenGL.so.4 (libc6) => /usr/lib/libQtOpenGL.so.4
                  libQtOpenGL.so (libc6) => /usr/lib/libQtOpenGL.so
                  libGLw.so.1 (libc6) => /usr/lib/libGLw.so.1
                  libGLw.so (libc6) => /usr/lib/libGLw.so
                  libGLU.so.1 (libc6) => /usr/lib/libGLU.so.1
                  libGLU.so (libc6) => /usr/lib/libGLU.so
                  libGL.so.1 (libc6) => /usr/lib/libGL.so.1
                  libGL.so (libc6) => /usr/lib/libGL.so
                  BUT prelink says that they are not prelinkable. Haven't seen or heard about that before, so don't really know how does one make something prelinkable or not prelinkable.

                  /usr/sbin/prelink -p | grep libGL gives me:

                  Code:
                  /usr/lib/libGL.so.1.2 (not prelinkable)
                  /usr/lib/libGLU.so.1.3.070100 (not prelinkable)
                  /usr/lib/libGL.so.1.2 (not prelinkable)
                  /usr/lib/libGLU.so.1.3.070100 (not prelinkable)
                  /usr/lib/libGL.so.1.2 (not prelinkable)
                  /usr/lib/libGLU.so.1.3.070100 (not prelinkable)
                  /usr/lib/libGL.so.1.2 (not prelinkable)
                  So, you might have more knowledge about this than a semi-n00b like me. How do I make those prelinkable and what does it mean they are not?

                  Regards..

                  Comment


                  • #10
                    Originally posted by [slim] View Post
                    Thanks for your efforts. Its been couple of days I haven't been able to test more, but now I think I have found the cause for my lack of direct rendering.

                    So, you might have more knowledge about this than a semi-n00b like me. How do I make those prelinkable and what does it mean they are not?

                    Regards..
                    Your xorg log will give more insight full information on why dri is not enabled for you. Also the output (top of it) of:

                    LIBGL_DEBUG=verbose glxinfo

                    will tell you if there is any version problem btw mesa, dri, drm...

                    Comment

                    Working...
                    X