Mesa for Linux PPC

AmigaOne X1000 platform specific issues related to Linux only.
User avatar
xeno74
Posts: 6317
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

Frogatto with the unofficial Mesa version 10.0.4 on Lubuntu 14.04 PowerPC:
Frogatto_with_the_unofficial_Mesa_version_10.0.4_on_Lubuntu_14.04_PowerPC.jpg
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 6317
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

If you want that Mesa works system wide and after rebooting then you have to add the line export LD_LIBRARY_PATH= to the .profile file in your home directory.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 6317
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 6317
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 6317
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

UPDATE: since this mesa commit (including previous ones) mesa has better big-endian support. This will be included in Mesa 10.4. Still to be confirmed if this is enough to fix this problem. Mesa 10.4 isn't released yet: http://www.mesa3d.org/.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 6317
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

xeno74 wrote:UPDATE: since this mesa commit (including previous ones) mesa has better big-endian support. This will be included in Mesa 10.4. Still to be confirmed if this is enough to fix this problem. Mesa 10.4 isn't released yet: http://www.mesa3d.org/.
I have compiled the development version (git version) of Mesa. Unfortunately the 3D acceleration doesn't work. Furthermore, you need the unofficial Mesa version for new Linux distributions like Lubuntu 14.04, 14.10, and Debian Sid.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
Srtest
Posts: 240
Joined: Wed Jun 11, 2014 5:06 pm

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by Srtest »

xeno74 wrote:
xeno74 wrote:UPDATE: since this mesa commit (including previous ones) mesa has better big-endian support. This will be included in Mesa 10.4. Still to be confirmed if this is enough to fix this problem. Mesa 10.4 isn't released yet: http://www.mesa3d.org/.
I have compiled the development version (git version) of Mesa. Unfortunately the 3D acceleration doesn't work. Furthermore, you need the unofficial Mesa version for new Linux distributions like Lubuntu 14.04, 14.10, and Debian Sid.
I've gone over the recent conversation regarding the Big Endian patches and they say the infrastructure is there just that the drivers are yet to keep up. Are those different people? perhaps the AMD guys? It seems they are planning major changes for kernel 3.20 as far as the AMD drivers are concerned so it could be best to make sure both work like they should when that kernel is released.
User avatar
xeno74
Posts: 6317
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

Image

New Mesa install instructions for Ubuntu 14.10 (for example for a Radeon HD6870)

Image
  1. Download the unofficial Mesa: MesaLib-10.0.4-powerpc-unofficial.tar.bz2
  2. Extract it in your home folder
  3. Rename the original r600_dri.so to r600_dri.so.bak:

    Code: Select all

    sudo mv /usr/lib/powerpc-linux-gnu/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/r600_dri.so.bak
  4. Copy the patched r600_dri.so to /usr/lib/powerpc-linux-gnu/dri:

    Code: Select all

    sudo cp mesa-10.0.4/lib/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri
  5. Rename the original libGL.so.1.2.0 to libGL.so.1.2.0.bak:

    Code: Select all

    sudo mv /usr/lib/powerpc-linux-gnu/mesa/libGL.so.1.2.0 /usr/lib/powerpc-linux-gnu/mesa/libGL.so.1.2.0.bak
    
  6. Copy the patched libGL.so.1.2.0 to /usr/lib/powerpc-linux-gnu/mesa:

    Code: Select all

    sudo cp mesa-10.0.4/lib/libGL.so.1.2.0 /usr/lib/powerpc-linux-gnu/mesa
Advantages: You don't need to set up the environment variable LD_LIBRARY_PATH. You can update your system without any problems. But be careful to update Mesa with the package manager.
ubuntu_MATE_14.10_with_unofficial_Mesa.jpg
Last edited by xeno74 on Sun Feb 08, 2015 12:06 pm, edited 1 time in total.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
marcus
Posts: 56
Joined: Wed Nov 07, 2012 8:07 pm

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by marcus »

Any luck with Mesa 10.4?
User avatar
Srtest
Posts: 240
Joined: Wed Jun 11, 2014 5:06 pm

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by Srtest »

If by luck you mean it demolished my system then yes...
Post Reply