Wine in YDL PPC?

YDL running on the Sony Playstation 3

Moderator: billb

Re: Wine in YDL PPC?

Postby billb » 02 Apr 2010, 01:24

ppietro wrote:So - if I understand that correctly, sheepthreads.c uses a special "private" implementation of pthreads which is derived from a glibc thread method that doesn't exist anymore. So - it's not so much that you need a PPC emulator as that you need to be able to run an ancient version of glibc. You load the PPC emulator so that you can load an ancient glibc.

That sure seems like something that could be fixed. However - pthreads were always a big mystery to me, so I understand the reticence to touch that kind of code.


Yes -- I think that sums it up. :D
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: Wine in YDL PPC?

Postby antonlacon » 02 Apr 2010, 06:07

glibc's threading changed around 2.4-2.5. It changed to native posix threading library. Iirc, the previous model was linuxthreads but it's been awhile.
antonlacon
ydl beginner
ydl beginner
 
Posts: 30
Joined: 08 Feb 2009, 03:54

Re: Wine in YDL PPC?

Postby ACEFOMIQUZ » 02 Apr 2010, 18:27

ppietro wrote:
alastor wrote:
ACEFOMIQUZ wrote:Can Darwine.dmg be repackaged to .ppc.rpm format?

Well, theoretically it must be possible ( PowerPC arch in both of them ), but you need to track down all dependencies that this package has in MAC . However, I doubt it is worth a try - you will get about 100MHz output in best scenario. ( It would make a lot more sense to emulate Mac PowerPC, though the stupid thing is that 32 bit ppc kernel doesn't work on ps3. )


To clarify a little, Macs don't use Linux (or BSD) kernels. :(

They use a proprietary kernel known as XNU:
http://en.wikipedia.org/wiki/XNU

It's based on the Carnegie/Mellon Mach kernel:
http://en.wikipedia.org/wiki/Mach_kernel

Mac OS X is a weird beast - it's basically a BSD Unix distribution with a Mach kernel grafted onto it.

All Mac OS X files are in a "mach-o" binary format, instead of the traditional Linux ELF format. This is why we can't run them directly.

So - it's not only a matter of repackaging the files. You have to convert them to ELF somehow. And take care of any XNU kernel dependencies and translate them into Linux kernel, if necessary.

It might be easier to look at the source and try to convert it there. :)

Cheers,
Paul


So,what I want to ask is:as we know the AIX executable files are in XCOFF format and we also know that at this time we can install .rpm files in AIX by installing rpm.rte though .rpm files are in ELF format.
How can it be realized?
http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/altlic.html
藍與紅如同水火不容,正藍者必憎紅!
User avatar
ACEFOMIQUZ
ydl addict
ydl addict
 
Posts: 101
Joined: 27 Oct 2008, 17:40

Re: Wine in YDL PPC?

Postby ppietro » 02 Apr 2010, 18:57

ACEFOMIQUZ wrote:So,what I want to ask is:as we know the AIX executable files are in XCOFF format and we also know that at this time we can install .rpm files in AIX by installing rpm.rte though .rpm files are in ELF format.
How can it be realized?
http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/altlic.html


Although I haven't run AIX in about 5 years - ever since I got laid off from WRQ - from reading that document, it appears that AIX has a library that allows them to run ELF binaries.

What you'd need to do is come up with some sort of hook to allow Linux to run XCOFF. One way to do this might be through binfmt. See here for more details:

http://en.wikipedia.org/wiki/Binfmt_misc

For examples of binfmt working on YDL, see here:
viewtopic.php?f=19&t=4667&start=15#p25372

It's kind of a confusing thread - but basically - if you install QEMU, you should be able to look through the script at /etc/rc.d/init.d/qemu and see how it hooks in to binfmt.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Wine in YDL PPC?

Postby ACEFOMIQUZ » 03 Apr 2010, 14:01

Thanks a lot!
藍與紅如同水火不容,正藍者必憎紅!
User avatar
ACEFOMIQUZ
ydl addict
ydl addict
 
Posts: 101
Joined: 27 Oct 2008, 17:40

Previous

Return to Playstation 3

Who is online

Users browsing this forum: No registered users and 79 guests

cron