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)

micampe 2008-02-12 14:09

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

Originally Posted by t3h (Post 140914)
What I made it do was to get the position of the pen down event, set it in the variables, and then clear a flag that is set by the next ADB interrupt (update). It then waits in a loop waiting for this flag to be set, meaning that the interrupt has fired, and then it registers the mouse button down, ensuring that both events happen seperately and sequentially in the right order. Hence no "sticky mouse" :D

I noticed that your version is much more CPU intesive that the original. And I imagine that loop where you wait for the flag could be the culprit.

tobiasj 2008-02-12 20:03

Re: Run Mac Software on Your NIT with Basilisk II
 
OK so now that I have it working, and well I might add (thank you all) and I have my Office98 For Mac CD sitting here (which I believe does work on system 7.5.5, it has been a while since I used it, but I am reasonably sure it does...)

How do I get this CD into an image I can use on the emulator? Do I just put the files on the SD card? do I make a MAC Disk Image from it?

signed,
At A Loss

-John

OSEmuTech 2008-02-12 20:33

Re: Run Mac Software on Your NIT with Basilisk II
 
Hate to say it ... Microsoft Office 98 requires a PowerMac. :(

I have Office 98 too ... it can run on the SheepShaver Power Mac emulator (runs up to Mac OS 9.0.4 and PPC software). Unfortunately, SheepShaver uses the JIT engine Basilisk II JIT uses, so it might not be portable to Maemo (I've tried a straight build). But it is just as fast as Basilisk II JIT on Windows\Linux\Mac OS X.

BTW: You can use the Win\Lin\Mac port of Basilisk II\SheepShaver to mount the CD-ROM drive. You could even copy Mac files to another hard drive file (Office 98 doesn't need the original CD to install). I use Toast for Mac to create ISO images of Mac CDs, but you can do a raw burn of a hard drive file to create a (unbootable) Mac CD. Here's a tutorial I created long ago: http://mes.emuunlim.com/tips/creatin...sing_a_hdf.htm

t3h 2008-02-12 21:25

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

Originally Posted by micampe (Post 141478)
I noticed that your version is much more CPU intesive that the original. And I imagine that loop where you wait for the flag could be the culprit.

Hmmm, is it?

I might turn up the usleep delay in the loop. Come to think of it, the printf I stuck in there to report how much it was delaying was probably delaying itself. I'll count how many cycles that loop actually goes through (I know usleep(5) isn't right...).

Is the CPU usage higher when you're not touching anything?

Edit: the system seems to sleep a little longer than 5 microseconds. That loop is not executing more than once or twice, and even then only immediately after when you put the mouse down to the next tick. Are you sure it's this?

spirytsick 2008-02-12 22:01

Re: Run Mac Software on Your NIT with Basilisk II
 
This is what happens when I try to start netscape navigator 3.0

Code:

Nokia-N800-50-2:/media/mmc2/documents/installers/basiliskii_binary$ BasiliskII
Basilisk II V0.9 by Christian Bauer et al.
WARNING: Unknown preferences keyword 'udptunnel'
WARNING: Unknown preferences keyword 'udpport'
WARNING: Unknown preferences keyword 'keyboardtype'
WARNING: Unknown preferences keyword 'dsp'
WARNING: Unknown preferences keyword 'mixer'
Reading ROM file...
WARNING: Cannot open /dev/fd0H1440 (No such file or directory)
WARNING: Cannot open /dev/fd1H1440 (No such file or directory)
Using ESD audio output
gdk_window_foreign_new
WARNING: Unknown VideoDriverStatus(18)
WARNING: Unknown VideoDriverStatus(18)
WARNING: Unknown VideoDriverStatus(18)
WARNING: Unknown VideoDriverStatus(18)
WARNING: Unknown VideoDriverStatus(24)
WARNING: Unknown VideoDriverStatus(18)
WARNING: Unknown VideoDriverStatus(18)
WARNING: Unknown VideoDriverStatus(18)
WARNING: Unknown VideoDriverStatus(18)
WARNING: Unknown VideoDriverStatus(18)
WARNING: Unknown VideoDriverStatus(18)
WARNING: Unknown VideoDriverStatus(17)
WARNING: Unknown VideoDriverStatus(18)
WARNING: Unknown VideoDriverStatus(18)
WARNING: Unknown VideoDriverStatus(8)
WARNING: Unknown VideoDriverStatus(17)
WARNING: Unknown VideoDriverStatus(8)
WARNING: Unknown VideoDriverStatus(8)
WARNING: Unknown VideoDriverStatus(24)
do_handle_screen_fault: unhandled address 0x40249001
Segmentation fault

Strange though, it's only netscape which is causing this.

OSEmuTech 2008-02-12 22:14

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

do_handle_screen_fault: unhandled address 0x40249001
That brings back memories. I and others were getting that error back in late 2001. The Basilisk II JIT developer investigates the problem on my forum in this thread: BII Linux Prob: do_handle_screen_fault

t3h 2008-02-12 22:45

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

Originally Posted by spirytsick (Post 141680)
This is what happens when I try to start netscape navigator 3.0

Code:

do_handle_screen_fault: unhandled address 0x40249001
Segmentation fault

Strange though, it's only netscape which is causing this.

Netscape was widely known to do unsupported things. It looks like it was poking at something there...

I'll have a look round and see what I can get to happen.

smileyninja 2008-02-13 01:10

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

Originally Posted by t3h (Post 141307)
There's now a prefs option for "fullscreen" - you can start it up with either ./BasiliskII --fullscreen true or add "fullscreen true" to your /home/user/.basilisk_ii_prefs file.

Binary (+ .desktop file): http://gm.stackunderflow.com/maemo/b...ary_0.3.tar.gz

Sources (now slightly smaller after removing a bit of code for other platforms)
http://gm.stackunderflow.com/maemo/b...emo_0.3.tar.gz

Using the above packages, I now get the following error: error while loading shared libraries: libhildon-1.so.0: cannot open shared object file: No such files or directory

I have the following setup:
BasiliskII in /usr/sbin/
BasiliskII_prefs in /home/user/
basiliskii.desktop in /usr/share/applications/hildon

Running on N800 with OS2007- Is OS2008 necessary for the newer versions?

tobiasj 2008-02-13 02:46

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

Originally Posted by OSEmuTech (Post 141627)
Hate to say it ... Microsoft Office 98 requires a PowerMac. :(

I have Office 98 too ... it can run on the SheepShaver Power Mac emulator (runs up to Mac OS 9.0.4 and PPC software). Unfortunately, SheepShaver uses the JIT engine Basilisk II JIT uses, so it might not be portable to Maemo (I've tried a straight build). But it is just as fast as Basilisk II JIT on Windows\Linux\Mac OS X.

BTW: You can use the Win\Lin\Mac port of Basilisk II\SheepShaver to mount the CD-ROM drive. You could even copy Mac files to another hard drive file (Office 98 doesn't need the original CD to install). I use Toast for Mac to create ISO images of Mac CDs, but you can do a raw burn of a hard drive file to create a (unbootable) Mac CD. Here's a tutorial I created long ago: http://mes.emuunlim.com/tips/creatin...sing_a_hdf.htm

OK then back to the archives under the stairs... bother.

-John

t3h 2008-02-13 03:30

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

Originally Posted by smileyninja (Post 141757)
Using the above packages, I now get the following error: error while loading shared libraries: libhildon-1.so.0: cannot open shared object file: No such files or directory

I have the following setup:
BasiliskII in /usr/sbin/
BasiliskII_prefs in /home/user/
basiliskii.desktop in /usr/share/applications/hildon

Running on N800 with OS2007- Is OS2008 necessary for the newer versions?

Seeing as I compiled it against OS2008's libhildon, probably so. Though you can probably download the sources and compile from OS2007 - I don't think I did anything OS-specific.

Personally, I'd recommend upgrading to OS2008 :)

And another bit of useful info:
Emulating a 68030 seems to be the fastest, from benchmarks.

TechTool Pro 2.03r1:

Code:

'040
? kWhetstones (won't run)
1725.84 dhrystones
? cycles (won't run)
228.0 cycles
? sieves (won't run)
1965.64 milliseconds for sort

'030
41.88 KWhetstones/sec
3527.66 dhrystones/sec
432.38 cycles
20.95 sieves
1002ms for sort

'030 with FPU
? kWhetstones (won't run)
1693.95 dhrystones/sec
232.0 cycles
? sieves
1983.61 ms

'020
41.84 kWhetstones/sec
3706.80 dhrystones/sec
429.48 cycles
20.55 sieves
947.53 ms for sort

'000
41.97 kWhetstones/sec
3656.90 Dhrystones/sec
445.61 cycles/sec
21.11 executions/sec
950.88 ms for sort

Conclusions: Use '030 (cpu 3) and turn off the fpu (fpu false). '040 can't have the FPU turned off (I must hack it up to emulate a LC040 at some point). '020 is slightly faster, but won't run as much. Mac OS 8 can be made to work on an 030 machine with a bit or resediting, and the end result will be faster. Not much requires a FPU.


All times are GMT. The time now is 03:15.

vBulletin® Version 3.8.8