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:
    http://wiki.x.org/wiki/radeonBuildHowTo

    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; 10-20-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; 10-24-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; 10-25-2009, 07:14 AM.

                      Comment


                      • #71
                        Originally posted by zika View Post
                        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.
                        Mesa is kernel independent so yes. 7.7-devel will work. I've used it on 2.6.24 and it worked just fine.

                        Comment


                        • #72
                          Originally posted by Neo_The_User View Post
                          Mesa is kernel independent so yes. 7.7-devel will work. I've used it on 2.6.24 and it worked just fine.
                          I was asking because my upgrade to 7.7.0 several weeks ago messed up my box badly and it had to be reinstalled. It was OK and, once I tried upgrade to 7.7.0 out of sick curiosity it did it again. So I waited for several weeks and tried again. Now it seems to work, still I have to get it with 2.6.31-14-generic because it stalled this morning just after I wrote my message. So, there is a bit of doubt in my mind ...
                          Update: It works now. It seems that external USB disk does not start in some predesignated time sometime ... That disk was not here when the crashes happened so that is not the culprit for those experiences.
                          Last edited by zika; 10-25-2009, 02:14 PM.

                          Comment


                          • #73
                            Re-installing a distro because X is broken is never ever necessary nor recommended. Next time, post /var/log/Xorg.0.log, dmesg, and xorg.conf file to pastebin so I can help you (or anybody who knows the answer) for next time. Thanks.

                            Comment


                            • #74
                              Originally posted by Neo_The_User View Post
                              Re-installing a distro because X is broken is never ever necessary nor recommended. Next time, post /var/log/Xorg.0.log, dmesg, and xorg.conf file to pastebin so I can help you (or anybody who knows the answer) for next time. Thanks.
                              It was messed on the very low level. Fsck was unable to solve more that 100 screens of errors. And it happened almost the same way twice. I did not loose any data but it was beyond any kind of repair. It was perfectly working installation at one moment and after that upgrade ... And once I made all adjustments I was silly enough to do the same thing just to test what might be a source for these problems. I'm not blaming anybody just sharing my experience with readers of this Forum. I was brave enough, or stupid enough, several weeks later, few days ago, to do the same thing and it all went well. Thank You for Your kind offer but ... I've managed may crashes of X and solved them without resorting to re-install, if I count, in all of my experience with Ubuntu I did only 4 or 5 re-installs due to problems. I am a strong and stubborn oponent of re-install unless it is the only option. All other installs were merely to get everything clean once in a while. I love xorg-edgers and it is addictive so ... It was hard time these several weeks withholding myself not to upgrade. That is the same reason why I always have -999 kernel installed and why I am eagerly waiting to jump on the Lynx wagon ...

                              Comment


                              • #75
                                zika,
                                Are you east of UTC (i.e. GMT +xx)? If so, it could be due to the bugs below. I'm in Australia and experienced them when I resized my Jaunty partition and installed Karmic alpha4 (or 5, I forgot).
                                https://bugs.launchpad.net/ubuntu/+s...gs/+bug/427822
                                https://bugs.launchpad.net/ubuntu/+s...ed/+bug/373409

                                Comment

                                Working...
                                X