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

  • rmartinez
    replied
    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!

    Leave a comment:


  • Neo_The_User
    replied
    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

    Leave a comment:


  • agd5f
    replied
    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.

    Leave a comment:


  • agd5f
    replied
    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

    Leave a comment:


  • rmartinez
    replied
    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!

    Leave a comment:


  • Nille
    replied
    Has autogen.sh no problems found? And don't Copy&Paste Commands!!!!

    and on Ubuntu you can Compile and install the ddx from git with


    Code:
    git-clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
    cd xf86-video-ati
    ./autogen.sh --prefix=/usr
    make
    sudo make install
    Last edited by Nille; 10-20-2009, 07:11 AM.

    Leave a comment:


  • rmartinez
    replied
    Originally posted by Neo_The_User View Post
    i think hes missing a tool called libtool

    ftp://ftp.gnu.org/gnu/libtool

    cheers mates!

    edit: post the conflicts for the drm-linus tree and ill fix it.
    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?

    Leave a comment:


  • Neo_The_User
    replied
    i think hes missing a tool called libtool

    ftp://ftp.gnu.org/gnu/libtool

    cheers mates!

    edit: post the conflicts for the drm-linus tree and ill fix it.

    Leave a comment:


  • AndyW
    replied
    @Neo_The_User
    There is what looks like an updated procedure on the X.Org wiki to get the drm-next source in one go:
    Code:
    git clone git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git
    cd drm-2.6
    git checkout -b drm-next origin/drm-next
    I am trying this now - do I still need to change "drm-next" in the last line to "drm-linus"? I tried the procedure in your earlier post, but still got (different) merge conflicts.

    @martinez
    I think you probably need a package like xorg-x11-util-macros - see here (http://wiki.x.org/wiki/radeonhd#head...d71ee38109b876), para 11.2

    Leave a comment:


  • rmartinez
    replied
    Originally posted by Neo_The_User View Post
    dont do the make distcleans then. same for -ati DDX. i thought you already had it cloned. sorry
    Hi Neo_The_User, I had this output error:

    Code:
    ./autogen.sh --prefix=/usr --libdir=/usr/lib64/or/usr/lib --enable-radeon-experimental-api && sudo make install
    Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 190.
    Use of uninitialized value $libtoolize in pattern match (m//) at /usr/bin/autoreconf line 190.
    autoreconf: Entering directory `.'
    autoreconf: configure.ac: not using Gettext
    autoreconf: running: aclocal 
    autoreconf: configure.ac: tracing
    autoreconf: configure.ac: not using Libtool
    autoreconf: running: /usr/bin/autoconf
    configure.ac:29: error: possibly undefined macro: AC_DISABLE_STATIC
          If this token and others are legitimate, please use m4_pattern_allow.
          See the Autoconf documentation.
    configure.ac:30: error: possibly undefined macro: AC_PROG_LIBTOOL
    autoreconf: /usr/bin/autoconf failed with exit status: 1

    Leave a comment:

Working...
X