Poster | Thread |
mike
| |
Mesa and Mac on Linux Posted on 9-Aug-2015 23:19:21
| | [ #1 ] |
|
|
|
Regular Member |
Joined: 31-Jul-2007 Posts: 406
From: Alpha Centauri | | |
|
| Hi,
wanted to let people know I'm trying to sort out a few issues, if anyone can help or knows anything that might help, please help!!
Mesa, https://github.com/threader/mesa-ppc-debian Mesa has been dead in the water since the transition from UMS (User Mode Setting) to KMS (Kernel Mode setting) for PPC Linux, and mostly floating upside-down in a moist pit of sewage prior to that change. I finally managed to google my way to something that sorta works. The endian patches by Michel Dànzer - http://lists.freedesktop.org/archives/mesa-dev/2013-December/050218.html
I'm aware of the Mesa project for X1000 , however r300 was still broken there last time i tried. I did not try the Xorg.conf or use radeon.agpmode= -1 ( Forced treat as PCI) which i need do now.... Anyway, it results in 500~ 750 fps glxgears. Half to 1/3 the speed of which it ran on Debian Sneeze( in 2012/13), once configured...
Mac-On-Linux, https://github.com/threader/Mac-On-Linux Not seen an update since 2011, and it's showing some age, it and i'm presented with a nice, black screen upon loading the mol video driver which it does entering OSX-. However, MOL is the only way to actually install OSX 10.x on linux, Qemu cannot do that, it can boot osx after you've installed and configure it correctly, but not install.... _________________ C= Amiga addict ,,, (Oo) ⎛☮ໄ ﮑὠՀ Couldn't care less what other people think, seeing that there's concrete evidence they don't. |
|
Status: Offline |
|
|
Spectre660
| |
Re: Mesa and Mac on Linux Posted on 9-Aug-2015 23:32:42
| | [ #2 ] |
|
|
|
Elite Member |
Joined: 5-Jun-2005 Posts: 3918
From: Unknown | | |
|
| |
Status: Offline |
|
|
mike
| |
Re: Mesa and Mac on Linux Posted on 10-Aug-2015 1:21:26
| | [ #3 ] |
|
|
|
Regular Member |
Joined: 31-Jul-2007 Posts: 406
From: Alpha Centauri | | |
|
| |
Status: Offline |
|
|
xeno74
| |
Re: Mesa and Mac on Linux Posted on 10-Aug-2015 13:52:05
| | [ #4 ] |
|
|
|
Cult Member |
Joined: 15-Dec-2010 Posts: 667
From: Unknown | | |
|
| @mike
3D acceleration doesn't work with your Radeon chip. The problem is, the r300_dri.so that is shipped with the unofficial Mesa version is the Gallium driver. This only works with DRI2. Unfortunately it seems your ATi Radeon chip isn't compatible with DRI2, so all of the 3d rendering is done via softpipe. I compiled Mesa 7.11.2 classic (DRI 1) for old graphics cards.
Download: http://www.file-upload.net/download-10830613/Mesa-7.11_Debian7.7_classic_dri.tar.gz.html
I compiled it for Debian 7.7. I hope it works for you.
Installation instructions:
Copy the unpacked Mesa directory to /usr/local:
Quote:
cp -R Mesa7.11.2-without-gallium /usr/local |
Quote:
mv /usr/lib/powerpc-linux-gnu/dri/r300_dri.so /usr/lib/powerpc-linux-gnu/dri/r300_dri.so.bak |
Quote:
cp /usr/local/Mesa7.11.2-without-gallium/lib/dri/r300_dri.so /usr/lib/powerpc-linux-gnu/dri |
Quote:
mv /usr/lib/powerpc-linux-gnu/libGL.so.1.2 /usr/lib/powerpc-linux-gnu/libGL.so.1.2.bak |
Quote:
cp /usr/local/Mesa7.11.2-without-gallium/lib/libGL.so.1.2 /usr/lib/powerpc-linux-gnu/ |
There is a new version of Mac-on-Linux available. It works with KVM so you need a Linux kernel with KVM support.
Download: mol-kvm_0.9.73.0-ubuntu_powerpc.deb
OS X works with QEMU/KVM too. But it isn't as fast as Mac-on-Linux/KVM.
_________________ www.amigalinux.org |
|
Status: Offline |
|
|
mike
| |
Re: Mesa and Mac on Linux Posted on 10-Aug-2015 14:26:07
| | [ #5 ] |
|
|
|
Regular Member |
Joined: 31-Jul-2007 Posts: 406
From: Alpha Centauri | | |
|
| @xeno74
Hi, thank you for for the detailed reply, however degrading isn't an option, i quickly run past packages that require both the newer mesa and X11. It's now doing 800 fps with some things in the xorg.conf left out, and thats mesa 10.6.3. Also to use acceleration the way you described wouldn't you need to have an older kernel which supports UMS?
Btw, using MOL and Qemu, anyone have problems with certain ram values? had unexplained problems allocating 768 megs to the VM, popped it down to 512 and 256 and alll issues wee gone, bump it up to the 300's and into problems it runs.
Btw, i spotted i had converted the semaphore in MOL to a mutex at some point... Rolling back that change apparently did nothing... So why i had done that i donno, any changes made to your Mol?
Last edited by mike on 10-Aug-2015 at 02:40 PM.
_________________ C= Amiga addict ,,, (Oo) ⎛☮ໄ ﮑὠՀ Couldn't care less what other people think, seeing that there's concrete evidence they don't. |
|
Status: Offline |
|
|
mike
| |
Re: Mesa and Mac on Linux Posted on 11-Aug-2015 7:51:33
| | [ #6 ] |
|
|
|
Regular Member |
Joined: 31-Jul-2007 Posts: 406
From: Alpha Centauri | | |
|
| @xeno74
under heavy load , say loading qemu , this happens >S
vblank_mode=0 LIBGL_DEBUG=verbose gdb glxgears GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "powerpc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from glxgears...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/glxgears warning: Could not load shared library symbols for linux-vdso32.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/powerpc-linux-gnu/libthread_db.so.1". libGL: OpenDriver: trying /usr/lib/powerpc-linux-gnu/dri/tls/r300_dri.so libGL: OpenDriver: trying /usr/lib/powerpc-linux-gnu/dri/r300_dri.so ATTENTION: default value of option vblank_mode overridden by environment. libGL: Using DRI2 for screen 0 3199 frames in 5.0 seconds = 639.780 FPS 3826 frames in 5.0 seconds = 765.068 FPS 3725 frames in 5.0 seconds = 744.833 FPS 3641 frames in 5.0 seconds = 728.090 FPS 3009 frames in 5.0 seconds = 601.660 FPS 1897 frames in 5.0 seconds = 379.220 FPS 2004 frames in 5.0 seconds = 400.299 FPS 2050 frames in 5.0 seconds = 409.909 FPS 2003 frames in 5.0 seconds = 400.573 FPS 2064 frames in 5.0 seconds = 412.711 FPS 2086 frames in 5.0 seconds = 417.103 FPS 2051 frames in 5.0 seconds = 410.167 FPS 248 frames in 4503600164241408.0 seconds = 0.000 FPS 18096 frames in 1439275392.0 seconds = 0.001 FPS 2059 frames in 5.0 seconds = 411.673 FPS 2105 frames in 5.0 seconds = 420.928 FPS
Program received signal SIGSEGV, Segmentation fault. do_sin_slow (x=0.10000000000000001, dx=0, dx@entry=682.5078125, eps=1, eps@entry=682.5078125, corp=corp@entry=0xbffff408, u=...) at ../sysdeps/ieee754/dbl-64/s_sin.c:226 226 ../sysdeps/ieee754/dbl-64/s_sin.c: No such file or directory.
_________________ C= Amiga addict ,,, (Oo) ⎛☮ໄ ﮑὠՀ Couldn't care less what other people think, seeing that there's concrete evidence they don't. |
|
Status: Offline |
|
|
xeno74
| |
Re: Mesa and Mac on Linux Posted on 11-Aug-2015 7:52:50
| | [ #7 ] |
|
|
|
Cult Member |
Joined: 15-Dec-2010 Posts: 667
From: Unknown | | |
|
| Quote:
mike wrote: Btw, using MOL and Qemu, anyone have problems with certain ram values?
|
No, I haven't. My virtual OS X machines (Tiger+Panther) have 2GB ram.
Quote:
mike wrote: Btw, i spotted i had converted the semaphore in MOL to a mutex at some point... Rolling back that change apparently did nothing... So why i had done that i donno, any changes made to your Mol?
|
No, I didn't make any changes to MoL. It's a new MoL version with KVM support._________________ www.amigalinux.org |
|
Status: Offline |
|
|
mike
| |
Re: Mesa and Mac on Linux Posted on 11-Aug-2015 8:06:24
| | [ #8 ] |
|
|
|
Regular Member |
Joined: 31-Jul-2007 Posts: 406
From: Alpha Centauri | | |
|
| @xeno74
Ok, i've got the desktop running with compositor now, very snappy and fast, though as you can see there are bugs, glitched as i was about to take the screenshot too.. for some reason to xscreensaver lock screen...
_________________ C= Amiga addict ,,, (Oo) ⎛☮ໄ ﮑὠՀ Couldn't care less what other people think, seeing that there's concrete evidence they don't. |
|
Status: Offline |
|
|
lionstorm
| |
Re: Mesa and Mac on Linux Posted on 11-Aug-2015 21:15:51
| | [ #9 ] |
|
|
|
Super Member |
Joined: 31-Jul-2003 Posts: 1588
From: the french side | | |
|
| @mike
is this new version of MOL working on AmigaOne or X-1000 ? AFAIR none of the linux distro would enable DRI on AmigaOne machines (because of missing cache coherency and another thing I can not remember). |
|
Status: Offline |
|
|
scabit
| |
Re: Mesa and Mac on Linux Posted on 11-Aug-2015 22:09:04
| | [ #10 ] |
|
|
|
Super Member |
Joined: 8-Jan-2005 Posts: 1667
From: Satellite Beach, FL USA | | |
|
| @lionstorm
I think he mentions it is on the X-1000. I too would really like to have MOL working on my AmigaOne though!
Scott _________________ AmigaOne uA1-c 512M RAM - Only Amiga Makes It Possible! Check my blog AmigaOne Computing |
|
Status: Offline |
|
|
mike
| |
Re: Mesa and Mac on Linux Posted on 12-Aug-2015 0:02:32
| | [ #11 ] |
|
|
|
Regular Member |
Joined: 31-Jul-2007 Posts: 406
From: Alpha Centauri | | |
|
| @lionstorm
The kernel has an AmigaOne option still.
That version of mol ran a few years ago, though i've not had any success with kernel 4.0.x.... and now the mol video driver seems to crash the machine, some debugging is needed, , but as far as i know it runs with kernel 3.x - though i dont have time to recompile a 3.x kernel and test.. as a full debian kernel build takes years. qemu works , and is up to date, _________________ C= Amiga addict ,,, (Oo) ⎛☮ໄ ﮑὠՀ Couldn't care less what other people think, seeing that there's concrete evidence they don't. |
|
Status: Offline |
|
|
xeno74
| |
Re: Mesa and Mac on Linux Posted on 12-Aug-2015 18:18:27
| | [ #12 ] |
|
|
|
Cult Member |
Joined: 15-Dec-2010 Posts: 667
From: Unknown | | |
|
| For the AMIGA one X1000 you need the kernel 3.17 or higher to use MoL with the KVM "PR" kernel module.
Edit: MoL/KVM works very well on the AMIGA one X1000. I can use Mac OS X Tiger and Panther.
Last edited by xeno74 on 12-Aug-2015 at 06:23 PM.
_________________ www.amigalinux.org |
|
Status: Offline |
|
|
mike
| |
Re: Mesa and Mac on Linux Posted on 13-Aug-2015 13:23:48
| | [ #13 ] |
|
|
|
Regular Member |
Joined: 31-Jul-2007 Posts: 406
From: Alpha Centauri | | |
|
| @xeno74O
Ok, good stuff, i compiled linux 4.1.x yesterday, still fast and good, crashes are a bit less, it still can crash when under heavy load (cpu and gpu), but not as frequent, i have a few more days to figure stuff out before i leave everything again for now.
I went to dig out what i thought would be the second non applied patch to mesa for big endian, only to discover this was appleid,, does the x1000 ubuntu mesa have any other patches im not aware of for BE? Btw, Is KVM for the G5 still removed from main? Last edited by mike on 13-Aug-2015 at 01:25 PM.
_________________ C= Amiga addict ,,, (Oo) ⎛☮ໄ ﮑὠՀ Couldn't care less what other people think, seeing that there's concrete evidence they don't. |
|
Status: Offline |
|
|
xeno74
| |
Re: Mesa and Mac on Linux Posted on 13-Aug-2015 18:31:09
| | [ #14 ] |
|
|
|
Cult Member |
Joined: 15-Dec-2010 Posts: 667
From: Unknown | | |
|
| |
Status: Offline |
|
|
Geri
| |
Re: Mesa and Mac on Linux Posted on 13-Aug-2015 20:55:56
| | [ #15 ] |
|
|
|
Elite Member |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| |
Status: Offline |
|
|
scabit
| |
Re: Mesa and Mac on Linux Posted on 13-Aug-2015 23:31:46
| | [ #16 ] |
|
|
|
Super Member |
Joined: 8-Jan-2005 Posts: 1667
From: Satellite Beach, FL USA | | |
|
| @Geri
Quote:
Actually this MOL version should also run on the original AmigaOne given that some of the kernels I released lately on the sf.net/projects/amigaone-linux/files/debian package repository |
Great! I'll check that out. I have my AmigaOne Set up to quad boot into Etch, Lenny, Squeeze or OS4.1 FE depending on the boot menu selection you choose.
What do you recommend for me to be able to get MOL working? I finally purchased an official Apple OSX 10.4 Tiger....
Thanks!
Scott_________________ AmigaOne uA1-c 512M RAM - Only Amiga Makes It Possible! Check my blog AmigaOne Computing |
|
Status: Offline |
|
|
scabit
| |
Re: Mesa and Mac on Linux Posted on 14-Aug-2015 0:17:54
| | [ #17 ] |
|
|
|
Super Member |
Joined: 8-Jan-2005 Posts: 1667
From: Satellite Beach, FL USA | | |
|
| @Geri
Oops...wrong again.....My AmigaOne can boot into 1) Amiga OS4.1 FE 2) Lenny Mint8 kernel 2.6.31-1 3) Lenny kernel 2.6.18 4) Lenny MOL-cache kernel 2.6.18 (MOL never worked though!) 5) Squeeze Mint 9.2 kernel 3.1 6) Wheezy kernel 3.1 (EXT4)
So, I am typing this from my Wheezy Debian boot....
Again, which kernel / Debian version is recommended for MOL?
I see you have this one ... linux-image-3.2.0-4-book3s-amigaone+ does that one support Wheezy and the MOL.deb linked in the previous post?
Scott Last edited by scabit on 14-Aug-2015 at 07:19 AM.
_________________ AmigaOne uA1-c 512M RAM - Only Amiga Makes It Possible! Check my blog AmigaOne Computing |
|
Status: Offline |
|
|
scabit
| |
Re: Mesa and Mac on Linux Posted on 15-Aug-2015 3:09:32
| | [ #18 ] |
|
|
|
Super Member |
Joined: 8-Jan-2005 Posts: 1667
From: Satellite Beach, FL USA | | |
|
| @Geri
It looks like you have three different boot images for AmigaOne on sourceForge as follows:
boot.img.amigaone-2.6.32-5-book3s-amigaone boot.img.amigaone-3.2.0-0.bpo.4-book3s-amigaone+ boot.img.amigaone-3.10.0-0.bpo.2-book3s-amigaone+
but the readme info only talks about the 2.6.32 image which does not show support for kvm. I assume one or both of the other two kernel images have your "bad hack" to support KVM then?
So, if I install one of these kernels in my wheezy partition and set up the a1boot.conf file to add it as a boot entry for my microA1, boot into it, will I then be able to use the MOL deb file provided above with it to get MOL working?
Thanks,
Scott _________________ AmigaOne uA1-c 512M RAM - Only Amiga Makes It Possible! Check my blog AmigaOne Computing |
|
Status: Offline |
|
|
Geri
| |
Re: Mesa and Mac on Linux Posted on 15-Aug-2015 20:17:28
| | [ #19 ] |
|
|
|
Elite Member |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| @scabit
Quote:
scabit wrote: @Geri
Great! I'll check that out. I have my AmigaOne Set up to quad boot into Etch, Lenny, Squeeze or OS4.1 FE depending on the boot menu selection you choose. |
I recommend at least Debian Wheezy, as this is the version for which I compiled the kernels till now.
Quote:
What do you recommend for me to be able to get MOL working? I finally purchased an official Apple OSX 10.4 Tiger.... |
IIRC I downloaded a complete OS X upgrade package the last time I installed OS X (in case you have a version below 10.4.11). Otherwise you will get old until all system updates have been downloaded and installed one after another.
Quote:
scabit wrote:
So, I am typing this from my Wheezy Debian boot....
|
Even better!
Quote:
Again, which kernel / Debian version is recommended for MOL?
I see you have this one ... linux-image-3.2.0-4-book3s-amigaone+ does that one support Wheezy and the MOL.deb linked in the previous post? |
Uhhh, I can't remember.
It comes with KVM support enabled, but I don't know if it comes with the hack to actually make KVM work on the AmigaOne. Maybe you better use the v3.16.7-ckt9-3eb8u1 kernel that I compiled for Debian Jessie (I yet have to do a proper backport version for Debian Wheezy).
Quote:
scabit wrote: It looks like you have three different boot images for AmigaOne on sourceForge as follows: |
Forget about these boot images.
The new kernel packages are designed to be installed on a system equipped with the new amigaos4-slb bootloader scripts. So a good start would be to convert your Debian Wheezy installation to these bootloader scripts, as they allow to install kernel packages with a one-liner resp. a simple click in the package manager! Thus the right way to install such a kernel package is to add the Debian repository on sf.net/projects/amigaone-linux/files/debian to your installation's sources.list file and then install the kernel package using the package manager. Please read the readme.txt in the "Files" section on sf.net/projects/amigaone-linux for how to do this. You would have to use "jessie" instead of "wheezy" as distribution to get the v3.16.7... kernel version.
However this reminds me that I have to upload the amigaos4-slb Debian package (which contains the bootloader scripts) to the Debian repository first, so that people can actually install it on their systems. I guess I also need to write a conversion guide for existing installations, right?
Quote:
So, if I install one of these kernels in my wheezy partition and set up the a1boot.conf file to add it as a boot entry for my microA1, boot into it, will I then be able to use the MOL deb file provided above with it to get MOL working? |
Honestly I cannot guarantee that it works. As I mentioned before: I tried it on my A1SE some months ago, but wasn't satisfied with its performance and stability. Also I don't know about the dependencies of this MoL package. Thus I would first try to install the MoL package just to see, if it installs cleanly. It that works you can go on with the bootloader scripts and kernel package installation.
BTW: Do you have a uA1 with FX or GX CPU?Last edited by Geri on 15-Aug-2015 at 10:11 PM.
_________________ A1SE: G3@600MHz, 2GB, 1GBit network card A1XE: G4@933MHz, 2GB, refitted AC'97 codec microA1: G3@800MHz, 1GB
- A1 Linux support - |
|
Status: Offline |
|
|
scabit
| |
Re: Mesa and Mac on Linux Posted on 16-Aug-2015 14:09:10
| | [ #20 ] |
|
|
|
Super Member |
Joined: 8-Jan-2005 Posts: 1667
From: Satellite Beach, FL USA | | |
|
| @Geri
Quote:
Thus the right way to install such a kernel package is to add the Debian repository on sf.net/projects/amigaone-linux/files/debian to your installation's sources.list file and then install the kernel package using the package manager. Please read the readme.txt in the "Files" section on sf.net/projects/amigaone-linux for how to do this. You would have to use "jessie" instead of "wheezy" as distribution to get the v3.16.7... kernel version. |
I set up the sources.list and keyring to add your sf.net/projects/amigaone-linux stuff, and that went okay. I recall seeing only one kernel version available under the aptitude kernel section, and I didn't know what to do from there. On my wheezy partition, if I just do an apt-get upgrade it will upgrade me to jessie? Will my current kernel ... I think it is 3.1 or 3.2, work with jessie? I don't want to get into a situation where I cannot boot into my wheezy partition if i try to update to jessie......
IIRC the script files Hypex was working on which you had given him to autoscript the boot updates didn't work...it had some bugs. The first one I recall was that the boot folder is actually under /boot/boot and NOT under /boot for A1 machines..... the slb goes to /boot/boot/a1boot.conf to get the config parameters, and the script Hypex had went to /boot and didn't find anything, and then updated everything in the wrong place. Not sure if your new script looks under /boot/boot like it is set up for A1s or just /boot which will not work.
Scott_________________ AmigaOne uA1-c 512M RAM - Only Amiga Makes It Possible! Check my blog AmigaOne Computing |
|
Status: Offline |
|
|