maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Run Mac Software on Your NIT with Basilisk II (https://talk.maemo.org/showthread.php?t=16306)

OSEmuTech 2008-06-09 02:57

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by ralann (Post 189812)
So, I'm wondering how you got it running with 256 colors as an option OSEmuTech. That would make a ton of things able to run where as with only thousands of colors the selection is limited. Mostly i just want to play a couple classic games on it for fun.

I was able to run Basilisk II on Maemo in 256 colors by using a different build of Basilisk II. unique311 created GS, GTK, and SDL builds using more recent source from Basilisk II JIT. It's slower, has a sticky mouse problem, and cannot be run full screen (though under KDE for Maemo, you can have it take up the whole screen probably).

I just uploaded the files here. Use the SDL build for 256 colors IIRC:

http://cid-de1b8fbb27739ebd.skydrive...y%7C_unique311

The Basilisk II (non-JIT) source code used by teh to create the Basilisk II we are using (fast, full screen, no sticky mouse) was from ~8 years ago. Since then the Basilisk II JIT code has been enhanced and allows running any 68k program on it that doesn't require a MMU, including all sorts of games and applications. I'm only a perpetual script-kiddie otherwise I'd jump on porting Basilisk II (JIT) over to Maemo keeping the hildon enhancements teh worked on.

rcsteiner 2008-06-10 20:45

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by OSEmuTech (Post 139622)
If anyone is interested, a new build of the open source Macintosh 680x0 emulator called Basilisk II is available.

Dumb question time, but a simple straightforward answer is more easily understood by my simple straightforward mind, and this thread does not seem to contain such an answer. :D

Will an existing precompiled port of Basilisk II run on a stock 770 running OS2006-49-2?

OSEmuTech 2008-06-10 22:17

Re: Run Mac Software on Your NIT with Basilisk II
 
The Basilisk II ports t3h (and I) made appear to only run on OS 2008.

But the 3 builds of Basilisk II JIT uniquie311 made run on OS 2007 and 2008. I don't have a N770 to test the builds out on OS 2006, but I imagine if they ran they would be rather slow. :(

rcsteiner 2008-06-11 16:39

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by OSEmuTech (Post 190674)
The Basilisk II ports t3h (and I) made appear to only run on OS 2008.

Okay.

Quote:

But the 3 builds of Basilisk II JIT uniquie311 made run on OS 2007 and 2008. I don't have a N770 to test the builds out on OS 2006, but I imagine if they ran they would be rather slow. :(
Slow doesn't concern me. I used to run Executor/DOS on a 486 back in the DOS days, and that was quite a bit slower than my IIci. :D

Betty Woo 2008-06-14 05:44

Re: Run Mac Software on Your NIT with Basilisk II
 
There's a guy in another forum who has a lot of early Mac stuff he wants to get rid of... Reading the thread leaves me with the distinct impression he also has a lot of older programs and applications. Perhaps some of it may be helpful for this thread?

Of course, his 'garage sale' is in Vancouver (the Canuckian one, not the Washington one).

However, there are a few people here who live in this city so... .:rolleyes:

OSEmuTech 2008-06-14 07:19

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by rcsteiner (Post 190994)
Slow doesn't concern me. I used to run Executor/DOS on a 486 back in the DOS days, and that was quite a bit slower than my IIci. :D

I didn't know about ARDI's Executor until 8 years ago in 1999.

By then, Fusion PC from Microcode Solutions had already started emulating the 68040 on DOS which allowed running up to Mac OS 8.1 along with all 68k applications and games that didn't require a MMU. I was the first person to buy Fusion PC 2.0 which ran on Windows, and after winning a "Bug Bash contest" became a beta tester for the company for further patch releases up to 2.3.1 until the emulator was sold to the "evil" Emulators, Inc.

During my bench testing of Fusion PC, I would graph the various scores earned by the Macintosh emulators for Windows/Linux/DOS; Fusion PC, Basilisk II, Executor, vMac, and SoftMac, in numerous tests. I also learned the various Mac emulators' abilities, limitations, and bugs.

The alpha open source Basilisk II was initially limited to 68020 emulation, but was in rapid development by the original German developer (who had created Basilisk I/II, Frodo, SheepShaver, etc.) and the Finnish Windows developer/porter who was implementing many new features for Basilisk II for Windows. Big events were when Ethernet networking and NAT were added, and months later Basilisk II was able to emulate a 68040 instead of the 68020/30 (68030 processor emulation had been buggy) running up to Mac OS 8.1.

Basilisk II soon became everyone's favorite Mac emulator as it was stable, fast, and free ... the retail Mac emulator companies ARDI, Microcode Solutions, and Emulator, Inc.'s days were numbered (though Emulators, Inc. is still "living"). All three companies started promising future PowerMac emulators, but none of them ended up delivering*.

By 2001, Basilisk II development was taken over by a French Linux developer who implemented a x86 JIT engine for Basilisk II making it ~20x faster than all the other Mac emulators. It is now called Basilisk II JIT.

He then ported the PowerMac emulator SheepShaver for BeOS to Linux/Windows/Mac OS X, implementing G4 Classic Mac emulation (up to Mac OS 9.0.4). SheepShaver is currently popular with MacIntel users who wish to run Mac Classic OSes (pre-Mac OS X) and applications, as MacIntels can't run Mac Classic.

I might as well round this brief history off by mentioning OSS Pear PC, the first and only Mac OS X PowerMac emulator (runs up to 10.4.x) for Windows and Linux. It too uses a JIT engine for speed, but ends up running maybe 20x slower than the host PC, which can be acceptable on a high end machine. The death of the primary Pear PC developer severely crippled further development of this Mac emulator. It has not been ported to run Mac OS X for Intel on Windows or Linux, though it could have been without the loss of the main developer. (Note: PearPC runs even slower than Bochs on a NIT :p)

Since 1999 I've been running a forum about Mac emulation, which expanded in 2001 to cover all operating system emulation and virtual machines. Thus my nick.

Hum ... I had tried running Fusion PC and Mini vMac on DOSBox for the NITs, but haven't tried Executor. You are familiar with the NIT port of DOSBox for running 80x86 DOS, originally for a 770? If you are a fan of using Executor, running it on DOSBox might bring back fond memories (of slowness ... LOL!).

*Correction: Microcode Solutions delievered a PowerMac emulator for Amiga (iFusion) and ARDI developed a PowerMac "emulator" for Linux (iExecutor?) that could run Adobe Photoshop 5, but iDon't think iT was ever released(?).

OSEmuTech 2008-06-14 08:05

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by Betty Woo (Post 191948)
There's a guy in another forum who has a lot of early Mac stuff he wants to get rid of... Reading the thread leaves me with the distinct impression he also has a lot of older programs and applications. Perhaps some of it may be helpful for this thread?

Of course, his 'garage sale' is in Vancouver (the Canuckian one, not the Washington one).

However, there are a few people here who live in this city so... .:rolleyes:

Wow, that picture looks like an Apple Museum, worse than my closet of ancient Macs. :D

andyph666 2010-02-02 10:02

Re: Run Mac Software on Your NIT with Basilisk II
 
Does this work for the N900 by any chance? Thank you!

shinkamui 2010-02-03 02:43

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by krisse (Post 139704)
Ironically, this is yet another thing you can't do on the iPhone or iPod Touch.

Hate to break it to you. But Basilisk has been ported to the iPhone/iPod touch since 1.1.2 well over two years ago. Whats really important here is that THAT implementation is slightly more useless than this one. :-D I love emulation, so this is great news to me.

delaroca 2010-02-05 07:04

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by andyph666 (Post 506478)
Does this work for the N900 by any chance? Thank you!

It seems OSEmuTech, who started this thread hasn't been around lately... and his web pages are gone. However, the one binary I ended using was the one compiled by th3 --see this post,

http://talk.maemo.org/showpost.php?p...7&postcount=63

and his links are still active.

I tried running that binary on the N900, it doesn't launch as it wants to use libesd for sound support... a library that Fremantle no longer provides. Fortunately, Graham Cobb, who works on GPE, has put together a minimal libesd that interfaces with Fremantle's pulseaudio. It's in the extras* repositories and can be installed via
Code:

apt-get install libesd0
With this installed, the Diablo binary of BasiliskII runs on the N900. To get going, you will have to browse thru most of the thread. OSEmuTech had put together a HOWTO but his web pages are no longer active.

--denis

McLightning 2010-02-05 13:09

Re: Run Mac Software on Your NIT with Basilisk II
 
all the pages are gone
can somebody explain how to get this working on n810? please

sardaukar 2010-03-04 16:19

Re: Run Mac Software on Your NIT with Basilisk II
 
I've installed libesd on my N900 and I get connection errors to ESD on BasiliskII's startup... any help?

caze 2010-03-22 19:51

Re: Run Mac Software on Your NIT with Basilisk II
 
What exact version did you use and what exact error message did you get?

Did anyone already succeed in running basilisk on n900? If so, with what version / binary of it, what size of rom file, what macos system version and what preferences?

I have tried 4 binaries mentioned above:
build 0.3 of t3h:
http://gm.stackunderflow.com/maemo/b...ary_0.3.tar.gz = http://cid-de1b8fbb27739ebd.skydrive...%5E_0.3.tar.gz
as well as unique311's
basilsSDL.zip , BasiliskIIGTK.tar.gz and BasiliskIIGS.tar.gz
from
http://cid-de1b8fbb27739ebd.skydrive...y%5E_unique311
(note that on this live.com account you can also find numerous sources of basilisk) (also available on http://www.divshare.com/download/798362-bf8 , http://www.divshare.com/download/798033-e5d )

on all 4 versions i get
ERROR: Cannot create 60Hz thread (Success).
in the end

with the last 3 versions from unique311 i get this (inbetween of video_open() and video_close()) as well as initially
ERROR: Cannot install SIGSEGV handler (Success).

i would very very much appreciate any help on the matter. thank you very much.

t3h 2010-03-22 22:36

Re: Run Mac Software on Your NIT with Basilisk II
 
I've actually got a N900 on it's way to me as we speak. I'll take a look at this when it arrives.

It might actually run more usably this time around... :)

Thanks Cage for emailing me.

caze 2010-03-22 23:41

Re: Run Mac Software on Your NIT with Basilisk II
 
thank you very much for your prompt and kind reply, t3h. i am already eagerly looking forward to getting this sorted out. you trying it on the actual device might prove more convenient than in the sdk, i hope.

by the way, the GS build with the nice GUI has never been updated with the meanwhile applied patches, right? is there any chance of combining the features of the several builds currently existing? do you know which code difference accounts for what above is reported concerning printtopdf not working in most builds, but in osemutech's?

and do you happen to have saved a copy of the howto of osemutech's site? is there relevant information concerning NIT? (if rather not, i would not actually need it myself, i suppose, as basilisk is already running very fine on other operating systems for me.)

but as basilisk is currently not working in my n900, i have not messed with all those keyboard customization in this threads and the ones this links to yet. it would be very nice if you could summarize which of these is really needed after all.

thanks a lot for all this lot in advance already :)

t3h 2010-03-30 10:32

Re: Run Mac Software on Your NIT with Basilisk II
 
I'm currently playing with the source in the Maemo 5 SDK. Expect something soon.

Also for anyone attempting to download the old packages, my server has been down for a day or so - my ADSL connection has been misbehaving, and the exchange has only just been fixed.

t3h 2010-03-30 13:10

Re: Run Mac Software on Your NIT with Basilisk II
 
Ok, I've got something going.

ESD sound is not compiled into this build, the N900 uses PulseAudio instead. I'll get it behaving later. I haven't tested my hildonized fullscreen yet...

It's compiled with the arm7 compiler in the Maemo SDK, and I should be able to apply some additional optimisations later.

Also it's just the binary, I'll have to make it more user-friendly later. And make it smaller.

Binary
Source

http://gm.stackunderflow.com/maemo/b..._maemo_0.4.png

javispedro 2010-03-30 15:33

Re: Run Mac Software on Your NIT with Basilisk II
 
Thanks t3h. I was wondering if you could have a look at the idle powersaving patches? (sleeping when the 68k is idle)
I once managed to merge them with the previous Diablo unpackaged port, but I think I lost the patched source.... :( If I find the time I'll try to do that again.

t3h 2010-03-31 00:50

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by javispedro (Post 588401)
Thanks t3h. I was wondering if you could have a look at the idle powersaving patches? (sleeping when the 68k is idle)
I once managed to merge them with the previous Diablo unpackaged port, but I think I lost the patched source.... :( If I find the time I'll try to do that again.

If you can find the patched source, i can diff it and see what changed. Also, fullscreen doesn't behave on Maemo 5 yet, will have to fix that. And the screen size needs adjusting...

Edit: fullscreen does work. --fullscreen true, not --fullscreen. I may just make it enabled all the time - as there's now no fullscreen button like on the old Maemo, and you can still ctrl-backspace to swap to another app. I won't implement the "button in corner to un-fullscreen" thing - the corners are important in MacOS.

This is how you should be launching it... or how I do anyway.
./BasiliskII --rom quadra650.rom --disk b2_sevenpointone.img --fullscreen true --screen win/800/480

The screen updates can probably be made faster now that we have OpenGL ES to play with (make the screen an opengl surface?)
Also need to remap ctrl to cmd, and/or make a custom Maemo keyboard layout for the emulated Mac in ResEdit.

delaroca 2010-03-31 03:48

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by caze (Post 577715)
Did anyone already succeed in running basilisk on n900? If so, with what version / binary of it, what size of rom file, what macos system version and what preferences?

The t3h diablo binary appears to run ok on the N900. I am using a Quadra 650 ROM (1 MB), MacOS 7.5.5. But to run, you do need to first install Fremantle's pulseudio libraries: "apt-get install libesd0" from the extras repository -- it's a minimal implementation of pulseaudio for GPE but seems to work with Basilisk. Next challenge is to configure an appropiate keyboard configuration for Basilisk.

Anyway, t3h is back and he's working on native Fremantle binaries and other mods... Basilisk lives on!!!

--denis

t3h 2010-04-01 01:12

Re: Run Mac Software on Your NIT with Basilisk II
 
Binary
Source

Here's a version with ESD compiled in. You'll need libesd0 (apt-get install libesd0), but you should have sound. Can't test right now - can someone else give it a go?

Also as for the power saving patches, try and find the source, i'd love it...

hordeman 2010-04-01 04:47

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by t3h (Post 590666)
Binary
Source

Here's a version with ESD compiled in. You'll need libesd0 (apt-get install libesd0), but you should have sound. Can't test right now - can someone else give it a go?

Also as for the power saving patches, try and find the source, i'd love it...

So, am I understanding correctly that this wouldn't work on an N810? (Thank you in advance for all the hard work.)

t3h 2010-04-01 05:37

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by hordeman (Post 590791)
So, am I understanding correctly that this wouldn't work on an N810? (Thank you in advance for all the hard work.)

No, as it's built against the Fremantle SDK. That said, the last two specific N900 builds have been getting stuff to work again, so you can use the older 0.3, and not be missing out on much:

http://gm.stackunderflow.com/maemo/b...ary_0.3.tar.gz

Anyone with a N900 should be using 0.5 though.

hordeman 2010-04-01 05:59

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by t3h (Post 590824)
No, as it's built against the Fremantle SDK. That said, the last two specific N900 builds have been getting stuff to work again, so you can use the older 0.3, and not be missing out on much:

http://gm.stackunderflow.com/maemo/b...ary_0.3.tar.gz

Anyone with a N900 should be using 0.5 though.

Great! Thank you! So, what instructions should I be using to install this? Your pages from the original post seem to be gone, and I didn't see anything in the .tar file.

t3h 2010-04-01 06:21

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by hordeman (Post 590835)
Great! Thank you! So, what instructions should I be using to install this? Your pages from the original post seem to be gone, and I didn't see anything in the .tar file.

Put the .desktop into /usr/share/hildon/applications/ and put the BasiliskII into /usr/bin, and use it either from X terminal like the desktop version with command line arguments, or edit ~/.basilisk_ii_prefs.

t3h 2010-04-01 08:40

Re: Run Mac Software on Your NIT with Basilisk II
 
Now this is just wrong...

http://gm.stackunderflow.com/maemo/b...900vs180c1.jpg
http://gm.stackunderflow.com/maemo/b...n900vs180c.jpg

Hasn't technology come a long way?

app73n3rd 2010-04-01 23:09

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by t3h (Post 590852)
Put the .desktop into /usr/share/hildon/applications/ and put the BasiliskII into /usr/bin, and use it either from X terminal like the desktop version with command line arguments, or edit ~/.basilisk_ii_prefs.

Can you please give n00b instructions for installation? I really want to get this going on my N900. Thanks.

dragon_788 2010-04-01 23:28

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by t3h (Post 588204)
Ok, I've got something going.

ESD sound is not compiled into this build, the N900 uses PulseAudio instead. I'll get it behaving later. I haven't tested my hildonized fullscreen yet...

It's compiled with the arm7 compiler in the Maemo SDK, and I should be able to apply some additional optimisations later.

Also it's just the binary, I'll have to make it more user-friendly later. And make it smaller.

Binary
Source

http://gm.stackunderflow.com/maemo/b..._maemo_0.4.png

My understanding is that Pulseaudio should grab any audio intended for ESD and play it, did you compile without because it wasn't working or just haven't run across the full how-to for Pulseaudio?

hordeman 2010-04-02 00:26

Re: Run Mac Software on Your NIT with Basilisk II
 
Holy cow... I wonder how poorly (or well) an Amiga emulator would run inside of it: http://www.youtube.com/watch?v=e_ElgKvKFuY

t3h 2010-04-02 01:17

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by dragon_788 (Post 592053)
My understanding is that Pulseaudio should grab any audio intended for ESD and play it, did you compile without because it wasn't working or just haven't run across the full how-to for Pulseaudio?

I had to hack the config.h and Makefile because even after installing libesd0, ./configure still didn't find it. That was the issue, not Pulseaudio. Can you test the current build?

You may need to apt-get install libesd0 on the n900 though.

t3h 2010-04-02 01:30

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by app73n3rd (Post 592039)
Can you please give n00b instructions for installation? I really want to get this going on my N900. Thanks.

I've got a friend working on a .deb for that, so if you're not comfortable using the terminal, you may wish to wait for that.

Quote:

Originally Posted by hordeman (Post 592090)
Holy cow... I wonder how poorly (or well) an Amiga emulator would run inside of it: http://www.youtube.com/watch?v=e_ElgKvKFuY

Interestingly, that's actually Mac OS running on the Amiga without an emulator. The Amiga A1200 has a 68060 CPU, which, although somewhat incompatible with the 68040 used in Macs, can have the incompatible bits patched by a virtual machine in software - rather than emulating the 68k from the ground up which would be slower.

hordeman 2010-04-02 01:32

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by t3h (Post 592116)
Interestingly, that's actually Mac OS running on the Amiga without an emulator.

Ha! Looks like I got a little overly excited and I only saw what I wanted to see. :cool:

t3h 2010-04-02 01:46

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by hordeman (Post 592117)
Ha! Looks like I got a little overly excited and I only saw what I wanted to see. :cool:

That said, I'm not ruling out a port of UAE: http://www.amigaemulator.org/. Actually, I think Basilisk II borrows code from this for parts of it's 68k emulation.

hordeman 2010-04-02 01:49

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by t3h (Post 592131)
That said, I'm not ruling out a port of UAE: http://www.amigaemulator.org/. Actually, I think Basilisk II borrows code from this for parts of it's 68k emulation.

You would gain A LOT more fans if you could pull this off. :) Maybe you can build on some of the work that was done in the past (but never completed)? http://talk.maemo.org/showthread.php?t=5298

delaroca 2010-04-02 07:08

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by t3h (Post 590666)
Here's a version with ESD compiled in. You'll need libesd0 (apt-get install libesd0), but you should have sound. Can't test right now - can someone else give it a go?

Sadly sound doesn't work... neither with this new Fremantle binary nor with the old Diablo binary. Back in January I recall having tested this with the Diablo binary and thought it was working, that is I could go into the Sounds Control Panel and change the alarm sounds -- and I could hear the different sounds.

Since the PR 1.1 update has happened, wonder if that has anything to do with this... there's a startup message

Code:

Using ESD Audio Output
"Warning: Cannot open ESD connection. Audio Output will be disabled."

If there isn't something obvious that we are missing, then you may have to byte the bullet and mod the basilisk code to use pulseaudio directly.

--denis

t3h 2010-04-02 07:23

Re: Run Mac Software on Your NIT with Basilisk II
 
Are you by any chance running it as root? It seemed to only work if I didn't (I was still root when I copied it into opt).

I've got the latest OS on my N900 as well.

delaroca 2010-04-02 21:06

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by t3h (Post 592263)
Are you by any chance running it as root? It seemed to only work if I didn't (I was still root when I copied it into opt).

I am running it in user mode... can't really remember if sound ever worked... the startup messages suggest, establishing the ESD connection is failing from the get go!

--denis

t3h 2010-04-03 01:56

Re: Run Mac Software on Your NIT with Basilisk II
 
Odd, it works for me... I just heard Fred's voice - "I sure like being inside this fancy computer" (does he have any idea what computer he's really inside of? :P)

Also I kinda did all the software update stuff when I first got it: Settings -> About shows 3.2010.02-8.002 as the version - is this PR1.1? I presume it is because it's around that date...

Try installing (apt-get install) pulseaudio-esound-compat, and see if that does it for you...

delaroca 2010-04-03 02:37

Re: Run Mac Software on Your NIT with Basilisk II
 
Quote:

Originally Posted by t3h (Post 593356)
Settings -> About shows 3.2010.02-8.002 as the version - is this PR1.1? I presume it is because it's around that date...

Try installing (apt-get install) pulseaudio-esound-compat, and see if that does it for you...

Yes, that's PR 1.1.. have that library installed already but still ESD sound does not work for me: at startup I still get the message: "WARNING: Cannot open ESD connection".

Still, good to know that it is working for you... do you get some startup messages re ESD?

Edit: problem solved! Uninstall and then re-install the above libraries.

Edit 2: Now the big problem is keyboard support... numerics, plus special characters with the blue-key do not work!

--denis

pcklee123 2010-04-13 03:02

Re: Run Mac Software on Your NIT with Basilisk II
 
does network work? e.g. ether slirp?


All times are GMT. The time now is 13:07.

vBulletin® Version 3.8.8