OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: chyang on October 17, 2005, 10:45:00 am

Title: Dosbox For Z
Post by: chyang on October 17, 2005, 10:45:00 am
After some time debuggiing, I can run it successfully on my C3000.
It's useful for legacy dos apps.
Also updated libsdl, added shift+ctrl+cancel to brute exit sdl apps.
libsdl does have some problems inside. Don't know when I would have time again to fix the problrm. I did comparison between bvdd sdl, performance seems to be close.

When begin to run dosbox, it will blink, press cancel to ease the running.

How to run:
Extract the files
If you have installed other libSDL, first backup appropriate files.
move libSDL-1.2.so.0.7.1 to /opt/Qtopia/sharp/lib
#mv libSDL-1.2.so.0.7.1 /opt/Qtopia/sharp/lib
#ln -sf /opt/Qtopia/sharp/lib/libSDL-1.2.so.0.7.1 /opt/Qtopia/sharp/lib/libSDL-1.2.so.0
#ln -sf /opt/Qtopia/sharp/lib/libSDL-1.2.so.0.7.1 /opt/Qtopia/sharp/lib/libSDL.so

If you want to run as root, be sure to copy the file under /tmp/qtembedded-zaurus/*.spec to /tmp/qtembedded-root/

then you can run dosbox
#./dosbox

Any problems, you can report here.
Title: Dosbox For Z
Post by: spartan on October 18, 2005, 12:04:27 am
Works excellently: however, it crashes the Zaurus on exit and I cannot enter the colon key. Any work-arounds?

Additionally, did you compile this against the standard kernel or Atty's optimized with iWMMX extensions?
Title: Dosbox For Z
Post by: spartan on October 18, 2005, 01:36:40 am
I'd like to add that I managed to get Master of Orion II to work with some work-arounds to the keyboard issues. I didn't activate swap in my test run so past the screen shot below it completely ran out of memory and killed DosBox.

If possible, compile with optimizations and a fixed mouse support: it works very well.
Title: Dosbox For Z
Post by: merli on October 18, 2005, 04:15:39 am
I tried to run some games. I tried Warcraft 1 and Knights of Xentar. Both ran but were terrible slow :-( unplayable.
Title: Dosbox For Z
Post by: The_Poet on October 18, 2005, 05:59:21 am
Quote
I'd like to add that I managed to get Master of Orion II to work with some work-arounds to the keyboard issues. I didn't activate swap in my test run so past the screen shot below it completely ran out of memory and killed DosBox.

If possible, compile with optimizations and a fixed mouse support: it works very well.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99810\"][{POST_SNAPBACK}][/a][/div]


If I could get DOS and MOO 2 running on my Zaurus, I'd never let it alone again. Any .IPKs that will install both and run everything correctly?

Poet
Title: Dosbox For Z
Post by: Meanie on October 18, 2005, 11:06:11 am
very nice Chyang! i was planning to compile dosbox because i wanted to run some old games but you beat me to it and done a great job too

so i packaged it up and built an ipk for it
Title: Dosbox For Z
Post by: Kedge on October 20, 2005, 01:29:34 am
Quote
so i packaged it up and built an ipk for it
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99872\"][{POST_SNAPBACK}][/a][/div]

The package is working nicely. But i can't enter the slash which is necessary.
@spartan
Is this one of the keyboard issues where you have a workaround? How do you did it?

kedge
Title: Dosbox For Z
Post by: chyang on October 20, 2005, 07:08:12 pm
I used one external keyboard for the unsupported keys. The SDL needs lots of re-work. Also, you may try keyhelper to remap the keyboard.
Title: Dosbox For Z
Post by: wmadan on October 20, 2005, 10:59:31 pm
Is this ipk just for the C3000 and C3100? I installed it on my C1000 and it installed okay. When I ran it from the terminal it complained about a couple of missing libraries, libstdc++ being one of them. I installed that from the feed and when I launched dosbox by tapping the icon on the desktop, it cause my display to flicker a lot and the only way to get out of it is to reboot.

Bill
Title: Dosbox For Z
Post by: spartan on October 21, 2005, 12:56:10 am
I could only fix the slash problem by running Keyhelper with Meanie's configuration. It swaps comma with forward-slash. However, I failed to configure colon to function inside Dosbox, regardless of the key assigned in Keyhelper. However, by adding the following in your Dosbox.config file at the [Autoexec] section, you can mount and switch drives, precluding the need for a forward slash and colon.

[Autoexec]
mount c /mnt/card
C:\

Of course, replace /mnt/card with whatever directory on your Zaurus you want the C drive to point to.
Title: Dosbox For Z
Post by: Kedge on October 21, 2005, 03:11:54 am
Quote
However, by adding the following in your Dosbox.config file at the [Autoexec] section, you can mount and switch drives, precluding the need for a forward slash and colon.

[Autoexec]
mount c /mnt/card
C:\

Of course, replace /mnt/card with whatever directory on your Zaurus you want the C drive to point to.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=100286\"][{POST_SNAPBACK}][/a][/div]
Found this workaround also and it works. But the game I tried (Ascendency, very nice strategy game) is much to slow. I read that you need at least a GHz processor for games running in protected mode. How is MoO2 running?

Kedge
Title: Dosbox For Z
Post by: chyang on October 21, 2005, 05:01:06 am
Quote
Is this ipk just for the C3000 and C3100? I installed it on my C1000 and it installed okay. When I ran it from the terminal it complained about a couple of missing libraries, libstdc++ being one of them. I installed that from the feed and when I launched dosbox by tapping the icon on the desktop, it cause my display to flicker a lot and the only way to get out of it is to reboot.

Bill
[div align=\"right\"][a href=\"index.php?act=findpost&pid=100276\"][{POST_SNAPBACK}][/a][/div]

Press cancel to ease it.
Title: Dosbox For Z
Post by: jpmatrix on December 08, 2005, 05:47:57 pm
guyz, i'm impressed...
i've just lauched Civilization 1 on my Z via Dosbox and... it works!!!
just a little slow but it seems playable

souvenirs souvenirs ;-)
Title: Dosbox For Z
Post by: Miami_Bob on December 20, 2005, 06:58:43 am
Quote
souvenirs souvenirs ;-)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=106506\"][{POST_SNAPBACK}][/a][/div]
Is that a John Prine - Steve Goodman reference? (G)
Title: Dosbox For Z
Post by: Meanie on December 23, 2005, 09:47:32 pm
I made an updated package http://www.users.on.net/~hluc/myZaurus/stu...0.6.3-2_arm.zip (http://www.users.on.net/~hluc/myZaurus/stuff/dosbox_0.6.3-2_arm.zip) so that dosbox uses its own libSDL without touching the main SDL lib so it can co-exist with the SDL that for example doom and zemufe require.
Title: Dosbox For Z
Post by: vagrant_h on December 31, 2005, 11:51:59 am
Quote
I made an updated package http://www.users.on.net/~hluc/myZaurus/stu...0.6.3-2_arm.zip (http://www.users.on.net/~hluc/myZaurus/stuff/dosbox_0.6.3-2_arm.zip) so that dosbox uses its own libSDL without touching the main SDL lib so it can co-exist with the SDL that for example doom and zemufe require.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=108295\"][{POST_SNAPBACK}][/a][/div]

I tried this with Cacko 1.23
and it tells me some lib is missing with the name: libstdc++-libc6.1-2.so.3
Title: Dosbox For Z
Post by: speculatrix on January 01, 2006, 06:01:26 pm
Quote
I tried this with Cacko 1.23
and it tells me some lib is missing with the name: libstdc++-libc6.1-2.so.3
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109028\"][{POST_SNAPBACK}][/a][/div]

see if you have an alternative version of the library..

find / -name "libstdc*" -print

then hack in a link, e.g.

cd /usr/lib
ln -s libstdc++-libc6.1-3.so.3 libstdc++-libc6.1-2.so.3

or similar, this usually works if the versions are very close.
Title: Dosbox For Z
Post by: vagrant_h on January 02, 2006, 04:18:00 am
Quote
Quote
I tried this with Cacko 1.23
and it tells me some lib is missing with the name: libstdc++-libc6.1-2.so.3
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109028\"][{POST_SNAPBACK}][/a][/div]

see if you have an alternative version of the library..

find / -name "libstdc*" -print

then hack in a link, e.g.

cd /usr/lib
ln -s libstdc++-libc6.1-3.so.3 libstdc++-libc6.1-2.so.3

or similar, this usually works if the versions are very close.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109143\"][{POST_SNAPBACK}][/a][/div]

Thanx, but in fact, I already found libstdc++-libc6.2-2 @ /home/QtPalmtop/lib
and tried to make a link @ /home/QtPalmtop/lib and /usr/lib
none of them works
Title: Dosbox For Z
Post by: Miami_Bob on January 02, 2006, 01:07:21 pm
Quote
Thanx, but in fact, I already found libstdc++-libc6.2-2 @ /home/QtPalmtop/lib
and tried to make a link @ /home/QtPalmtop/lib and /usr/lib
none of them works
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109180\"][{POST_SNAPBACK}][/a][/div]
My notes say that I installed

dosbox_0.6.3-2_arm.ipk

on my C860 and when dosbox did not like the libs that it found, just installed

libstdc6_1.2.2_arm.ipk

and dosbox was copacetic. Tree!Expl shows /home/QtPalmtop/lib/ contains

libstdc++.so.5.0.5   with   libstdc++.so.5

both symblinked to

libstdc++.so.5.0.5

in /mnt/xqt/xqt-mozilla/opt/QtPalmtop/lib/

(Meanie's cramfs set).

libstdc6_1.2.2_arm.ipk installed

/usr/lib/libstdc++-3-libc6.1-2-2.10.0.so    with

/usr/lib/libstdc++-3-libc6.1-2.so.3
/usr/lib/libstdc++-3-libc6.2-2.so.3
/usr/lib/libstdc++-libc6.1-2.so.3

all symblinked to it.

Check the rundosbox script in

/home/QtPalmtop/bin/

for how the dosbox lib paths are changed.

HTH. If not, shout (G)
Title: Dosbox For Z
Post by: vagrant_h on January 03, 2006, 09:00:30 pm
Quote
Quote
Thanx, but in fact, I already found libstdc++-libc6.2-2 @ /home/QtPalmtop/lib
and tried to make a link @ /home/QtPalmtop/lib and /usr/lib
none of them works
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109180\"][{POST_SNAPBACK}][/a][/div]
My notes say that I installed

dosbox_0.6.3-2_arm.ipk

on my C860 and when dosbox did not like the libs that it found, just installed

libstdc6_1.2.2_arm.ipk

and dosbox was copacetic. Tree!Expl shows /home/QtPalmtop/lib/ contains

libstdc++.so.5.0.5   with   libstdc++.so.5

both symblinked to

libstdc++.so.5.0.5

in /mnt/xqt/xqt-mozilla/opt/QtPalmtop/lib/

(Meanie's cramfs set).

libstdc6_1.2.2_arm.ipk installed

/usr/lib/libstdc++-3-libc6.1-2-2.10.0.so    with

/usr/lib/libstdc++-3-libc6.1-2.so.3
/usr/lib/libstdc++-3-libc6.2-2.so.3
/usr/lib/libstdc++-libc6.1-2.so.3

all symblinked to it.

Check the rundosbox script in

/home/QtPalmtop/bin/

for how the dosbox lib paths are changed.

HTH. If not, shout (G)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109236\"][{POST_SNAPBACK}][/a][/div]

Thank you, it worked
Title: Dosbox For Z
Post by: Miami_Bob on January 04, 2006, 06:17:15 am
Quote
Thank you, it worked
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109444\"][{POST_SNAPBACK}][/a][/div]
You are very welcome. Its nice to be able to help another Z-lot (G) solve a problem! Glad that I could help.
Title: Dosbox For Z
Post by: Meanie on September 06, 2006, 10:32:47 am
updated dosbox with the : key working

Fn + ; = :
Fn + Ctrl + ; = ;

the file is here: http://zaurus.daemons.gr/menaie/feed/dosbox_0.6.3-3_arm.ipk (http://zaurus.daemons.gr/menaie/feed/dosbox_0.6.3-3_arm.ipk)
Title: Dosbox For Z
Post by: Jon_J on September 06, 2006, 12:11:27 pm
I just installed dosbox_0.6.3-3_arm.ipk onto my C3100.
I also have previously installed libstdc6_1.2.2_arm.ipk
I don't have Meanie's pdaxqtrom installed.
This version is supposed to run without x11 or pdaxqtrom, isn't it?

When running dosbox from the icon, or from the commandline, it opens a black screen, which looks like dosbox, but my Z is completely frozen.
The cancel button does nothing. None of the keys respond.
I must open the battery compartment, and reset my Z to get it running again.
The commandline launch didn't show any errors.

Thank you,
Jon
Title: Dosbox For Z
Post by: dougeeebear on September 06, 2006, 05:26:38 pm
Quote
I just installed dosbox_0.6.3-3_arm.ipk onto my C3100.
I also have previously installed libstdc6_1.2.2_arm.ipk
I don't have Meanie's pdaxqtrom installed.
This version is supposed to run without x11 or pdaxqtrom, isn't it?

When running dosbox from the icon, or from the commandline, it opens a black screen, which looks like dosbox, but my Z is completely frozen.
The cancel button does nothing. None of the keys respond.
I must open the battery compartment, and reset my Z to get it running again.
The commandline launch didn't show any errors.

Thank you,
Jon
[div align=\"right\"][a href=\"index.php?act=findpost&pid=140864\"][{POST_SNAPBACK}][/a][/div]
I had exactly the same results with this version on my C1000.
Title: Dosbox For Z
Post by: ken on September 07, 2006, 12:59:55 am
Quote
I had exactly the same results with this version on my C1000.

ditto on my 6K.  Not that I really expected it to work though, as X/QT isn't the same as Qtopia afaik.
Title: Dosbox For Z
Post by: dougeeebear on September 07, 2006, 06:25:00 am
I have a version of Dosbox worknig on my C1000.

Read this (https://www.oesf.org/forums/index.php?showtopic=21315&view=findpost&p=140833)
Title: Dosbox For Z
Post by: chyang on September 07, 2006, 07:34:45 am
hi, Bob:
   Can you compile dosbox natively on your Z?
   If yes, would you like to do the following:
in bios_keyboard.cpp
replace
{ 0x273b, 0x273a, none, 0x27f0 }, /* ;: */
with
{ 0x273a, 0x273b, 0x273b, 0x273a }, /* :; */

This is what Meanie told me to enable the key ':'
Thanks.
--
 Chen
Title: Dosbox For Z
Post by: nick12288 on September 27, 2006, 12:14:06 am
can someone tell me if its possible to get dosbox working on a SL-5600?
Title: Dosbox For Z
Post by: chyang on September 27, 2006, 01:31:15 am
It should be possible. But you need to hack dosbox and SDL for correct display.
Title: Dosbox For Z
Post by: Miami_Bob on September 27, 2006, 04:08:27 am
Quote
hi, Bob:
   Can you compile dosbox natively on your Z?
Have not gotten it to work yet, Chen. Been a rough year - LOL!

Have just been using my old HP200LX instead rather then trying to run the DOS apps on one of the C860s now.

Quote
If yes, would you like to do the following:
in bios_keyboard.cpp replace
{ 0x273b, 0x273a, none, 0x27f0 }, /* ;: */
with
{ 0x273a, 0x273b, 0x273b, 0x273a }, /* :; */
I have that filed away now in working notes. THANKS!

Quote
This is what Meanie told me to enable the key ':'
Thanks.
--
 Chen
Thanks to both you & Meanie. Sorry for the delay in reply. The window AC that cools my bed room - computer room complex died & it took a while to get a suitable replacement & install it. Hard to work the keyboard when its 92 degrees & 88% relative humidity - LOL!
Title: Dosbox For Z
Post by: fooman on October 21, 2006, 09:40:58 pm
Jon,

Did you ever get dosbox working?  I'm running Cacko 3000 Beta 1.23 on my C3000.  I previously installed dosbox_0.6.3-3_arm.ipk and libstdc6_1.2.2_arm.ipk and then created a symlink from /usr/lib/libstdc++-3-libc6.1-2-2.10.0.so to /usr/lib/libstdc++-libc6.1-2.so.3.

When I execute the rundosbox command from the command line, the screen fades to white and then everything freezes.  None of the keys respond including cancel and home.  Since I've run the command from an ssh session, I can hit ctrl-z to interrupt the program (but ctrl-c doesn't work).  But I can't run any command to get the video back so I'm forced to reboot.

Here are the messages I see on the command line:

Display size = 480x640
CONFIG:Loading settings from config file dosbox.conf
QT_GetMachine: /proc/deviceinfo/product is 'SL-C3000'
 detected machine is 'Sharp SL-C3000'
QT_GetRotation: Read spec from '/tmp/qtembedded-root/QtEmbedded-0.spec'
 Rot=0, Qvga=0
QT_SetVideoMode: SL-C700 Style is Input style
QT_SetVideoMode: argSize=640x400
QT_SetVideoMode: qteSize=640x480
QT_SetVideoMode: fbSize=640x480
QT_SetVideoMode: qteRotation=0
QT_SetVideoMode: userRotation=-1
QT_SetVideoMode: sdlRotation=0
QT_SetVideoMode: qteKeyRotation=0
QT_SetVideoMode: sdlKeyRotation=0
MIDI:Opened device:none

It repeats everything from the first "QT_GetMachine" downward two more times.  Does anyone have any ideas?  I'd really like to get DOS working on my Z.  


Quote
I just installed dosbox_0.6.3-3_arm.ipk onto my C3100.
I also have previously installed libstdc6_1.2.2_arm.ipk
I don't have Meanie's pdaxqtrom installed.
This version is supposed to run without x11 or pdaxqtrom, isn't it?

When running dosbox from the icon, or from the commandline, it opens a black screen, which looks like dosbox, but my Z is completely frozen.
The cancel button does nothing. None of the keys respond.
I must open the battery compartment, and reset my Z to get it running again.
The commandline launch didn't show any errors.

Thank you,
Jon
[div align=\"right\"][a href=\"index.php?act=findpost&pid=140864\"][{POST_SNAPBACK}][/a][/div]
Title: Dosbox For Z
Post by: chyang on October 21, 2006, 10:16:41 pm
I have verified that on C3000 dosbox should be working.
Have you noticed that the screen is blinking? Press cancel to ease it, then you will be able to see Dosbox running.
Title: Dosbox For Z
Post by: fooman on October 21, 2006, 11:02:56 pm
Thanks, I got it working.  I had installed it to /hdd3 and used ipkg-link to establish symlinks.  But I think the C3000 doesn't like that very much.  When I installed it directly without symlinks, it works OK.

Quote
I have verified that on C3000 dosbox should be working.
Have you noticed that the screen is blinking? Press cancel to ease it, then you will be able to see Dosbox running.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=144481\"][{POST_SNAPBACK}][/a][/div]
Title: Dosbox For Z
Post by: Jon_J on October 22, 2006, 01:07:30 pm
I had an older version of Dosbox running about 8 months ago. (dosbox_0.6.3-2)
I only had it installed to play some older games, which didn't work properly.
The game that I was interested in didn't play. (Betrayal at Krondor)
I tried several games. (RPGs)
None of them would play, or continue to the next screen, or they needed F1-F10 keys.
I uninstalled THAT version, and then later tried the newer one (dosbox_0.6.3-3)
When it didn't work as I mentioned in the post on the first page of this thread, I decided I didn't really need it that bad, to try and get it working again.
I may try it again this Winter, but in the meantime, I'm testing Turbografx CD games, using Cresho's emulator.