Announcement

Collapse
No announcement yet.

Getting Open Source 3D graphics on R6XX/R7XX cards (NO FGLRX)

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

  • #61
    Originally posted by rmartinez View Post
    You were right, I needed "libtools", and also needed "pthread-stubs" & "xutils-dev".
    So, for the "libdrm_radeon" compilation all went OK, but for the "ati DDX" compilation, I get this message while trying "sudo make install" inside the "xf86-video-ati" folder:
    Code:
    make: *** No rule to make target `install'.  Stop.
    Any ideas? Do you need any output from the compilation?
    Did you run autogen.sh to create the makefiles? FOr more info on building, see this page:

    Comment


    • #62
      Originally posted by rmartinez View Post
      autogen.sh is giving the following error:

      Code:
      ./configure: line 11526: syntax error near unexpected token `XINERAMA,'
      ./configure: line 11526: `XORG_DRIVER_CHECK_EXT(XINERAMA, xineramaproto)'
      I tried installing every package it had something to do with xinerama... But it didn't work. I know I'm missing something... Thanks!
      you need xorg macros. the package is usually called something like xorg-utils.

      Comment


      • #63
        Would you guys stop following only half my guide?

        "6a.) Clone additional git repositories for compiling DDX:

        git clone git://anongit.freedesktop.org/xorg/util/macros && cd macros && ./autogen.sh --prefix=/usr && make && sudo make install && cd ..

        git clone git://anongit.freedesktop.org/xcb/pthread-stubs && cd pthread-stubs && ./autogen.sh --prefix=/usr && make && sudo make install && cd .."

        Please people.. please... If you are only planning on doing half the work, don't do any of it at all. Your computer and yourself is just going to have problems.
        Last edited by Neo_The_User; 20 October 2009, 02:00 PM. Reason: ....these people just dont listen

        Comment


        • #64
          OK, finally I got the courage and started with your guide, but I had an error while compiling the kernel. May be you can tell me what I did wrong.
          Here is exactly what I did:

          Code:
          0a.) Fresh install of Ubuntu 9.10beta x64bits
          
          0b.) Update everything possible.
          
          1a.) Obtain the required development tools and programs to compile, install, and fetch the source code:
          
          sudo apt-get install git-core build-essential dh-make debconf debhelper automake autoconf libstdc++6 xorg-dev gawk bison cdbs dkms && sudo apt-get build-dep libdrm mesa
          
          # without "libstdc++5", it's not a package in Ubuntu 9.10
          
          2a.) Obtain kernel source source code:
          
          cd /usr/src && sudo git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git && cd linux-2.6 && sudo git config --global user.name "Neo"
          
          # it was missing "//" between "git:" & "git.kernel..." in your guide
          # and also it was missing "config" between last "sudo git" & "--global user..." in your guide
          
          2b.) Pull from drm-linus:
          
          sudo git pull git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git drm-linus
          
          sudo apt-get install libncurses5-dev
          
          sudo make menuconfig
          
          	Device Drivers ---> Graphics support ---> {*} Lowlevel video output switch controls
          	Device Drivers ---> Graphics support ---> <*> /dev/agpgart (AGP SUPPORT) ---> <*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
          	Device Drivers ---> Graphics support ---> <*> /dev/agpgart (AGP SUPPORT) ---> <*> SiS chipset support
          	Device Drivers ---> Graphics support ---> <*> /dev/agpgart (AGP SUPPORT) ---> <*> VIA chipset support
          	Device Drivers ---> Graphics support ---> <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
          	Device Drivers ---> Graphics support ---> {*} Support for frame buffer devices --->[*] Enable firmware EDID
          	Device Drivers ---> Graphics support ---> {*} Support for frame buffer devices ---> < > ATI Radeon display support
          	Device Drivers ---> Graphics support ---> {*} Support for frame buffer devices ---> < > ATI Rage128 display support
          	Device Drivers ---> Graphics support ---> {*} Support for frame buffer devices ---> < > ATI Mach64 display support
          	Device Drivers --->[*] Staging drivers ---> [ ] Exclude Staging drivers from being built
          	Device Drivers --->[*] Staging drivers --->[*] Enable modesetting on radeon by default
          
          # Save an Alternate Configuration File -> ".config", OK & exit
          
          3a.) Compile the kernel:
          
          sudo make all
          And I got the following Error:

          Code:
          drivers/staging/android/logger.c: In function ?logger_read?:
          drivers/staging/android/logger.c:165: error: ?TASK_INTERRUPTIBLE? undeclared (first use in this function)
          drivers/staging/android/logger.c:165: error: (Each undeclared identifier is reported only once
          drivers/staging/android/logger.c:165: error: for each function it appears in.)
          drivers/staging/android/logger.c:178: error: implicit declaration of function ?signal_pending?
          drivers/staging/android/logger.c:183: error: implicit declaration of function ?schedule?
          drivers/staging/android/logger.c: In function ?logger_aio_write?:
          drivers/staging/android/logger.c:325: error: dereferencing pointer to incomplete type
          drivers/staging/android/logger.c:333: error: dereferencing pointer to incomplete type
          drivers/staging/android/logger.c:334: error: dereferencing pointer to incomplete type
          drivers/staging/android/logger.c:337: error: dereferencing pointer to incomplete type
          drivers/staging/android/logger.c:360: error: dereferencing pointer to incomplete type
          drivers/staging/android/logger.c:363: error: dereferencing pointer to incomplete type
          drivers/staging/android/logger.c:370: error: increment of pointer to unknown structure
          drivers/staging/android/logger.c:370: error: arithmetic on pointer to an incomplete type
          drivers/staging/android/logger.c:377: error: ?TASK_INTERRUPTIBLE? undeclared (first use in this function)
          make[3]: *** [drivers/staging/android/logger.o] Error 1
          make[2]: *** [drivers/staging/android] Error 2
          make[1]: *** [drivers/staging] Error 2
          make: *** [drivers] Error 2
          Thanks for the guide and I hope I can finally have 3D... At least I'm learning great stuff!

          Comment


          • #65
            Originally posted by rmartinez View Post
            OK, finally I got the courage and started with your guide, but I had an error while compiling the kernel. May be you can tell me what I did wrong.
            Here is exactly what I did:

            Code:
            0a.) Fresh install of Ubuntu 9.10beta x64bits
            
            0b.) Update everything possible.
            
            1a.) Obtain the required development tools and programs to compile, install, and fetch the source code:
            
            sudo apt-get install git-core build-essential dh-make debconf debhelper automake autoconf libstdc++6 xorg-dev gawk bison cdbs dkms && sudo apt-get build-dep libdrm mesa
            
            # without "libstdc++5", it's not a package in Ubuntu 9.10
            
            2a.) Obtain kernel source source code:
            
            cd /usr/src && sudo git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git && cd linux-2.6 && sudo git config --global user.name "Neo"
            
            # it was missing "//" between "git:" & "git.kernel..." in your guide
            # and also it was missing "config" between last "sudo git" & "--global user..." in your guide
            
            2b.) Pull from drm-linus:
            
            sudo git pull git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git drm-linus
            
            sudo apt-get install libncurses5-dev
            
            sudo make menuconfig
            
            	Device Drivers ---> Graphics support ---> {*} Lowlevel video output switch controls
            	Device Drivers ---> Graphics support ---> <*> /dev/agpgart (AGP SUPPORT) ---> <*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
            	Device Drivers ---> Graphics support ---> <*> /dev/agpgart (AGP SUPPORT) ---> <*> SiS chipset support
            	Device Drivers ---> Graphics support ---> <*> /dev/agpgart (AGP SUPPORT) ---> <*> VIA chipset support
            	Device Drivers ---> Graphics support ---> <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
            	Device Drivers ---> Graphics support ---> {*} Support for frame buffer devices --->[*] Enable firmware EDID
            	Device Drivers ---> Graphics support ---> {*} Support for frame buffer devices ---> < > ATI Radeon display support
            	Device Drivers ---> Graphics support ---> {*} Support for frame buffer devices ---> < > ATI Rage128 display support
            	Device Drivers ---> Graphics support ---> {*} Support for frame buffer devices ---> < > ATI Mach64 display support
            	Device Drivers --->[*] Staging drivers ---> [ ] Exclude Staging drivers from being built
            	Device Drivers --->[*] Staging drivers --->[*] Enable modesetting on radeon by default
            
            # Save an Alternate Configuration File -> ".config", OK & exit
            
            3a.) Compile the kernel:
            
            sudo make all
            And I got the following Error:

            Code:
            drivers/staging/android/logger.c: In function ?logger_read?:
            drivers/staging/android/logger.c:165: error: ?TASK_INTERRUPTIBLE? undeclared (first use in this function)
            drivers/staging/android/logger.c:165: error: (Each undeclared identifier is reported only once
            drivers/staging/android/logger.c:165: error: for each function it appears in.)
            drivers/staging/android/logger.c:178: error: implicit declaration of function ?signal_pending?
            drivers/staging/android/logger.c:183: error: implicit declaration of function ?schedule?
            drivers/staging/android/logger.c: In function ?logger_aio_write?:
            drivers/staging/android/logger.c:325: error: dereferencing pointer to incomplete type
            drivers/staging/android/logger.c:333: error: dereferencing pointer to incomplete type
            drivers/staging/android/logger.c:334: error: dereferencing pointer to incomplete type
            drivers/staging/android/logger.c:337: error: dereferencing pointer to incomplete type
            drivers/staging/android/logger.c:360: error: dereferencing pointer to incomplete type
            drivers/staging/android/logger.c:363: error: dereferencing pointer to incomplete type
            drivers/staging/android/logger.c:370: error: increment of pointer to unknown structure
            drivers/staging/android/logger.c:370: error: arithmetic on pointer to an incomplete type
            drivers/staging/android/logger.c:377: error: ?TASK_INTERRUPTIBLE? undeclared (first use in this function)
            make[3]: *** [drivers/staging/android/logger.o] Error 1
            make[2]: *** [drivers/staging/android] Error 2
            make[1]: *** [drivers/staging] Error 2
            make: *** [drivers] Error 2
            Thanks for the guide and I hope I can finally have 3D... At least I'm learning great stuff!
            Try going into Device Drivers > Staging Drivers and turn off everything except Radeon kernel mode setting. it should be somewhere near the bottom

            Comment


            • #66
              Try going into Device Drivers > Staging Drivers and turn off everything except Radeon kernel mode setting. it should be somewhere near the bottom
              Hi, I did that exactly, but it gave exactly the same error (at least I didn't had to wait for the error). Sorry, no idea what to do...

              Comment


              • #67
                Originally posted by rmartinez View Post
                Hi, I did that exactly, but it gave exactly the same error (at least I didn't had to wait for the error). Sorry, no idea what to do...
                be sure to always _always_ run "make clean" before re-compiling (without quotes)

                Comment


                • #68
                  Originally posted by Neo_The_User View Post
                  be sure to always _always_ run "make clean" before re-compiling (without quotes)
                  Thanks I didn't know that, now I did the cleaning and the compilation gave the same error:

                  Code:
                  drivers/staging/android/logger.c: In function ?logger_read?:
                  drivers/staging/android/logger.c:165: error: ?TASK_INTERRUPTIBLE? undeclared (first use in this function)
                  drivers/staging/android/logger.c:165: error: (Each undeclared identifier is reported only once
                  drivers/staging/android/logger.c:165: error: for each function it appears in.)
                  drivers/staging/android/logger.c:178: error: implicit declaration of function ?signal_pending?
                  drivers/staging/android/logger.c:183: error: implicit declaration of function ?schedule?
                  drivers/staging/android/logger.c: In function ?logger_aio_write?:
                  drivers/staging/android/logger.c:325: error: dereferencing pointer to incomplete type
                  drivers/staging/android/logger.c:333: error: dereferencing pointer to incomplete type
                  drivers/staging/android/logger.c:334: error: dereferencing pointer to incomplete type
                  drivers/staging/android/logger.c:337: error: dereferencing pointer to incomplete type
                  drivers/staging/android/logger.c:360: error: dereferencing pointer to incomplete type
                  drivers/staging/android/logger.c:363: error: dereferencing pointer to incomplete type
                  drivers/staging/android/logger.c:370: error: increment of pointer to unknown structure
                  drivers/staging/android/logger.c:370: error: arithmetic on pointer to an incomplete type
                  drivers/staging/android/logger.c:377: error: ?TASK_INTERRUPTIBLE? undeclared (first use in this function)
                  make[3]: *** [drivers/staging/android/logger.o] Error 1
                  make[2]: *** [drivers/staging/android] Error 2
                  make[1]: *** [drivers/staging] Error 2
                  make: *** [drivers] Error 2
                  What other information can I bring you to find what I'm doing wrong?

                  Comment


                  • #69
                    Originally posted by rmartinez View Post
                    Thanks I didn't know that, now I did the cleaning and the compilation gave the same error:

                    Code:
                    drivers/staging/android/logger.c: In function ‘logger_read’:
                    drivers/staging/android/logger.c:165: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
                    drivers/staging/android/logger.c:165: error: (Each undeclared identifier is reported only once
                    drivers/staging/android/logger.c:165: error: for each function it appears in.)
                    drivers/staging/android/logger.c:178: error: implicit declaration of function ‘signal_pending’
                    drivers/staging/android/logger.c:183: error: implicit declaration of function ‘schedule’
                    drivers/staging/android/logger.c: In function ‘logger_aio_write’:
                    drivers/staging/android/logger.c:325: error: dereferencing pointer to incomplete type
                    drivers/staging/android/logger.c:333: error: dereferencing pointer to incomplete type
                    drivers/staging/android/logger.c:334: error: dereferencing pointer to incomplete type
                    drivers/staging/android/logger.c:337: error: dereferencing pointer to incomplete type
                    drivers/staging/android/logger.c:360: error: dereferencing pointer to incomplete type
                    drivers/staging/android/logger.c:363: error: dereferencing pointer to incomplete type
                    drivers/staging/android/logger.c:370: error: increment of pointer to unknown structure
                    drivers/staging/android/logger.c:370: error: arithmetic on pointer to an incomplete type
                    drivers/staging/android/logger.c:377: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
                    make[3]: *** [drivers/staging/android/logger.o] Error 1
                    make[2]: *** [drivers/staging/android] Error 2
                    make[1]: *** [drivers/staging] Error 2
                    make: *** [drivers] Error 2
                    What other information can I bring you to find what I'm doing wrong?
                    ok do this:

                    1a.) cd into your kernel source directory (cd /usr/src/linux-2.6)

                    2a.) sudo mkdir backup && sudo cp .config backup/

                    3a.) sudo make distclean

                    4a.) sudo cp backup/.config .config

                    5a.) sudo make menuconfig

                    6a.) MAKE SURE that everything except radeon KMS is off in the kernel in staging drivers.

                    7a.) Save to different file or something like that. As soon as you open up make menuconfig, you should see something about saving it to a custom directory. (on windows right now sorry)

                    8a.) save to "/usr/src/linux-2.6/.config" without quotes (or where ever your kernel source is)

                    8a.) sudo make all
                    Last edited by Neo_The_User; 24 October 2009, 12:56 PM. Reason: fixed step

                    Comment


                    • #70
                      Does mesa 7.7.0 and other stuff from xorg-edgers work with 2.6.31-14.48-generic (lateset Karmic)?
                      On ATI HD3650 I've upgraded my drivers from xorg-edgers and it works nicely (no compiz without radeon.modeset=1) but it seems to have problems with 2.6.31-14.48-generic. I will try it also with my 2.6.31-9-rt. It is not a big deal I just do not want to mess my box now because I have some stuff to do.
                      Update: 2.6.31-9-rt works. Problem with 2.6.31-14.48-generic might have been with external USB disk at boot time, ... I will investigate more myself.
                      Last edited by zika; 25 October 2009, 07:14 AM.

                      Comment

                      Working...
                      X