Help - Search - Members - Calendar
Full Version: Bochs Running
OESF Forums > Distros, Development, and Model Specific Forums > Model Specific Forums > C1000/3x00 General discussions
chyang
hehe, after long time trying and correcting, it runs at last.
download bochs for C3000 here. smile.gif
chyang
QUOTE(chyang @ Aug 31 2005, 09:44 AM)
hehe, after long time trying and correcting, it runs at last.
*

Bochs 2.2.1 fix +libSDL 1.2.7 with zport's fix
At present, libSDL does have problems, the taskbar will flash when it begins to run, don't know the reason and solution to this. Press cancel can ease it.
maslovsky
How fast is it? Do you have a package?
Cresho
that is so cool

the only reason i see myself running windows 98 on my zaurus is if i can get acid tetris to play again since its a dos based game.
daniel3000
Great!

It could open the door to run HP 200LX applicatoins using Bochs and a palmtop emulator, such as palrun or palmpc or int5f.

I'd appreciate a package or installation instructions! .-)

thanks

daniel
jpmatrix
QUOTE(chyang @ Aug 31 2005, 03:44 AM)
hehe, after long time trying and correcting, it runs at last.
*



great !
would you post a *simple* howto please ? wink.gif
oncle-dave
Hello ..

Where find the Package ? to install it ?

Thanks you.

Oncle-dave
TRIsoft
Chyang,
QUOTE(chyang @ Aug 31 2005, 02:44 AM)
hehe, after long time trying and correcting, it runs at last.
*

What else to say:


Now we want to know: HOW !

Tell us all the dirty details laugh.gif

///TRIsoft

Marc Stephan
chyang
Ok, Here is what I have done to make it run.

1)Modify bochs source, fix the resolution part, in gui/sdl.cc, when booted, the system will request the resolution of 720x400, which is not supported by Zaurus(libSDL), I hardcoded the resolution to be full screen 640x480 mode.

2)libSDL hack, after compiling the SDL source, I found the screen is so tiny, only 1xx in width, I looked into the detail and found that the code in handling qtopia related stuff are hardcoded to resolution of 320x240. I happen to visit an HK site with the reference to zports.sourceforge.net, they did a great job in making the VGA resolution work. I compared their source with the SDL 1.2.8 source, they look same, so I just replaced the SDL-1.2.8/src/video/qtopia/SDL_QWin.[cc|h],SDL_sysvideo.cc, it only knows CXX0, so it is very easy to add extension for C3000.

3)Special note to run libSDL application in root mode: the qtemebedded environment is maintained completely only for user zaurus, so before running libSDL applications, try to copy the file named QtEmbedded-0.spec for root in /tmp/qtembedded-root

4)special thanks to Anton, without your dev-image, I wouldn't be able to compile bochs/libSDL on my C3000! But I do like a new version gcc embedded, also with the binutils which are very useful for me.

5)The compilation part comes from my linux cross-compile environment, I met problems in export the libSDL's SDLmain routine. My cross-compiler should be the version that Sharp shared in 5500 era.

6) There are problems inside. I will just share my experience in making it running, hope we will solve them in near future.

7) My Windows 98 run is slow, it took me 90 minutes to boot up the screen showed in the photo.
Cresho
mad.gif

ohh well. unsure.gif

ill never play acid tetris again!!!! dry.gif
chyang
Here is the binary package.
it contains the bochs and the opt/Qtopia/sharp/lib/libSDL.* for bochs.
Try to get the BIOS/VGA file from bochs distribution, or I will post it if you like.
To run it, just as you run it under linux
bochs -q -f bochsrc.bxrc[not included, you should build your own]
I installed windows 98 SE in bochs on my desktop, and then copy the disk image file to Z.
I do love C3000. A cool portable powerful workstation. smile.gif smile.gif

QUOTE(chyang @ Sep 1 2005, 06:19 AM)
Ok, Here is what I have done to make it run.

1)Modify bochs source, fix the resolution part, in gui/sdl.cc, when booted, the system will request the resolution of 720x400, which is not supported by Zaurus(libSDL), I hardcoded the resolution to be full screen 640x480 mode.

2)libSDL hack, after compiling the SDL source, I found the screen is so tiny, only 1xx in width, I looked into the detail and found that the code in handling qtopia related stuff are hardcoded to resolution of 320x240. I happen to visit an HK site with the reference to zports.sourceforge.net, they did a great job in making the VGA resolution work. I compared their source with the SDL 1.2.8 source, they look same, so I just replaced the SDL-1.2.8/src/video/qtopia/SDL_QWin.[cc|h],SDL_sysvideo.cc, it only knows CXX0, so it is very easy to add extension for C3000.

3)Special note to run libSDL application in root mode: the qtemebedded environment is maintained completely only for user zaurus, so before running libSDL applications, try to copy the file named QtEmbedded-0.spec for root in /tmp/qtembedded-root

4)special thanks to Anton, without your dev-image, I wouldn't be able to compile bochs/libSDL on my C3000! But I do like a new version gcc embedded, also with the binutils which are very useful for me.

5)The compilation part comes from my linux cross-compile environment, I met problems in export the libSDL's SDLmain routine. My cross-compiler should be the version that Sharp shared in 5500 era.

6) There are problems inside. I will just share my experience in making it running, hope we will solve them in near future.

7) My Windows 98 run is slow, it took me 90 minutes to boot up the screen showed in the photo.
*

The correct version attached. smile.gif
chyang
QUOTE(Cresho @ Sep 1 2005, 06:38 AM)
mad.gif

ohh well. unsure.gif

ill never play acid tetris again!!!! dry.gif
*

Oh? After boot up, type in DOS edit lags about 1-2 seconds. I think it is acceptable. smile.gif
chyang
Very sorry, don't know what happened to the package, it seems that it has problems. I will re-post later this afternoon or evening. sad.gif
Meanie
QUOTE(Cresho @ Sep 1 2005, 08:38 AM)
mad.gif

ohh well. unsure.gif

ill never play acid tetris again!!!! dry.gif
*


The version I build took 35 minutes to load Win98SE, so I ditched it since it wasn't really usable. However, if you just want to play DOS games, installing only DOS in bochs is much faster than running Windows, but better yet, try the dosbox package.
chyang
QUOTE(Meanie @ Sep 1 2005, 01:29 PM)
QUOTE(Cresho @ Sep 1 2005, 08:38 AM)
mad.gif

ohh well. unsure.gif

ill never play acid tetris again!!!! dry.gif
*


The version I build took 35 minutes to load Win98SE, so I ditched it since it wasn't really usable. However, if you just want to play DOS games, installing only DOS in bochs is much faster than running Windows, but better yet, try the dosbox package.
*


Would you like to give me more information on the bochs version you are running? I thought it should be the zbochs. I manged to ran it but only 320x240 screen size. That may result in a little better performance.
Meanie
QUOTE(chyang @ Sep 1 2005, 04:15 PM)
QUOTE(Meanie @ Sep 1 2005, 01:29 PM)
QUOTE(Cresho @ Sep 1 2005, 08:38 AM)
mad.gif

ohh well. unsure.gif

ill never play acid tetris again!!!! dry.gif
*


The version I build took 35 minutes to load Win98SE, so I ditched it since it wasn't really usable. However, if you just want to play DOS games, installing only DOS in bochs is much faster than running Windows, but better yet, try the dosbox package.
*


Would you like to give me more information on the bochs version you are running? I thought it should be the zbochs. I manged to ran it but only 320x240 screen size. That may result in a little better performance.
*



yes, i did use a self tweaked version of zbochs and it only ran in 320x240 mode. It ran quite slow so I suspect running it in 640x480 must be much slower unless you got the optimized bvdd version of the sdl lib from atty.
chyang
For C1000 user, find the SL-C3000 inside and replace it with SL-C1000, it will make it work. smile.gif
Meanie
QUOTE(chyang @ Sep 1 2005, 11:57 PM)
For C1000 user, find the SL-C3000 inside and replace it with SL-C1000, it will make it work. smile.gif
*


wow, I tried your version and it only took 27 minutes to load win98! what an improvement!
vagrant_h
great! Thanks for chyang.

WIN98 is too "hard" for zaurus, i think DOS may be better.
really wanna play old dos games on the Z
Cresho
Dos game player as well...here!
chyang
QUOTE(Meanie @ Sep 5 2005, 08:36 PM)
QUOTE(chyang @ Sep 1 2005, 11:57 PM)
For C1000 user, find the SL-C3000 inside and replace it with SL-C1000, it will make it work. smile.gif
*


wow, I tried your version and it only took 27 minutes to load win98! what an improvement!
*


smile.gif
Really happy to get your appreciation.
daemon1
QUOTE(vagrant_h @ Sep 5 2005, 05:43 PM)
great! Thanks for chyang.

WIN98 is too "hard" for zaurus, i think DOS may be better.
really wanna play old dos games on the Z
*


what about dosemu in linux? just port it over to Z
xdivider
2 qn. I install a dos 6.22 image on windows and xferred it to a SD card.

1) What did u set as the display for the bochsrc. I selected SDL full screen. but display was in portrait and a bit jumbled. will experiment with the SDL libs later again.

2) How do u exit dos if in full screen mode?
chyang
QUOTE(xdivider @ Sep 7 2005, 11:22 AM)
2 qn. I install a dos 6.22 image on windows and xferred it to a SD card.

1) What did u set as the display for the bochsrc. I selected SDL full screen. but display was in portrait and a bit jumbled. will experiment with the SDL libs later again.

2) How do u exit dos if in full screen mode?
*


1) Whether you select the full screen or not, my modified bochs will select the fullscreen mode. For the default VGA mode will set the resolution of 720x400, which is not supported by Z.
The problems look like with the SDL, have you used the library in the package? C3000 or C1000? C3000 can directly use it while C1000 need to do some modification to the binary, replace the string "SL-C3000" with "SL-C1000".

2)I also met the same problem. I logged in using network and then using kill. Later It seems that we can write some simple .com file to call the stop bochs, just like the power button in bochs for Windows.
xdivider
QUOTE(chyang @ Sep 7 2005, 06:11 AM)
QUOTE(xdivider @ Sep 7 2005, 11:22 AM)
2 qn. I install a dos 6.22 image on windows and xferred it to a SD card.

1) What did u set as the display for the bochsrc. I selected SDL full screen. but display was in portrait and a bit jumbled. will experiment with the SDL libs later again.

2) How do u exit dos if in full screen mode?
*


1) Whether you select the full screen or not, my modified bochs will select the fullscreen mode. For the default VGA mode will set the resolution of 720x400, which is not supported by Z.
The problems look like with the SDL, have you used the library in the package? C3000 or C1000? C3000 can directly use it while C1000 need to do some modification to the binary, replace the string "SL-C3000" with "SL-C1000".

2)I also met the same problem. I logged in using network and then using kill. Later It seems that we can write some simple .com file to call the stop bochs, just like the power button in bochs for Windows.
*



Okie, found out my problems of screen corruption was due to the screensaver kicking in. To solve the problem of exiting, I binded one of the keys to a script in /opt/Qtopia/bin which kills bochs. Finally I can play my Bandit Kings of Ancient China biggrin.gif
Tom61
QUOTE(daemon1 @ Sep 6 2005, 06:19 AM)
QUOTE(vagrant_h @ Sep 5 2005, 05:43 PM)
great! Thanks for chyang.

WIN98 is too "hard" for zaurus, i think DOS may be better.
really wanna play old dos games on the Z
*


what about dosemu in linux? just port it over to Z
*



Dosemu doesn't do CPU emulation, so it won't work. If you're looking for DOS gaming, grab DOSBox, which does do CPU emulation and has a Z port.
vagrant_h
QUOTE(Tom61 @ Sep 8 2005, 08:20 AM)
Dosemu doesn't do CPU emulation, so it won't work. If you're looking for DOS gaming, grab DOSBox, which does do CPU emulation and has a Z port.
*


Thank you for your info.
i've found dosbox before, but it can only run under pdaXrom. did you ever seen one that can run under sharp original rom?
daniel3000
QUOTE(chyang @ Sep 1 2005, 12:45 AM)
package removed at 9:30 (GMT+8) sad.gif
Update later.
*


Hello chyang,

is the tar.gz file attached to your posting from sep-1 the new working package, or do you still work on the package and plan to attach it later?

I'd be very interested in running DOS on the Z!

Thanks

daniel
chyang
hi, It's the working version. I have deleted the wrong file and attached the correct one. while forgot to remove the message. It seems to be better to include in my first post. smile.gif
daniel3000
QUOTE(chyang @ Sep 8 2005, 12:03 PM)
hi, It's the working version. I have deleted the wrong file and attached the correct one. while forgot to remove the message. It seems to be better to include in my first post. smile.gif
*


Thanks. :-)
Downloaded it and will try it now.
Would you be so kind to share your bochs configuratoin file and maybe a working DOS image (all versions of DOS 5.0 or above would be good).

The libDSL links the tarball creates existed already and were linked to other versions of libSDL (which did not work for bochs, missing symbols).
So I redirected the links to the versoin supplied by you. I hope it won't lead to any problems with other programs.

Thanks again
daniel
xdivider
QUOTE(daniel3000 @ Sep 8 2005, 11:15 AM)
QUOTE(chyang @ Sep 8 2005, 12:03 PM)
hi, It's the working version. I have deleted the wrong file and attached the correct one. while forgot to remove the message. It seems to be better to include in my first post. smile.gif
*


Thanks. :-)
Downloaded it and will try it now.
Would you be so kind to share your bochs configuratoin file and maybe a working DOS image (all versions of DOS 5.0 or above would be good).

The libDSL links the tarball creates existed already and were linked to other versions of libSDL (which did not work for bochs, missing symbols).
So I redirected the links to the versoin supplied by you. I hope it won't lead to any problems with other programs.

Thanks again
daniel
*



You can use the LD_LIBRARY_PATH var if other programs require the older versions of libSDL.
chyang
QUOTE(daniel3000 @ Sep 8 2005, 07:15 PM)
QUOTE(chyang @ Sep 8 2005, 12:03 PM)
hi, It's the working version. I have deleted the wrong file and attached the correct one. while forgot to remove the message. It seems to be better to include in my first post. smile.gif
*


Thanks. :-)
Downloaded it and will try it now.
Would you be so kind to share your bochs configuratoin file and maybe a working DOS image (all versions of DOS 5.0 or above would be good).

The libDSL links the tarball creates existed already and were linked to other versions of libSDL (which did not work for bochs, missing symbols).
So I redirected the links to the versoin supplied by you. I hope it won't lead to any problems with other programs.

Thanks again
daniel
*


Here is the bochsrc file. I don't know whether it's proper to share the disk file.
omega
Excellent work. Now i suggest installing windows 95 first edition, and / or searching the web for some of those guides that really strips all the crap out of windows!
Tom61
QUOTE(vagrant_h @ Sep 8 2005, 03:16 AM)
QUOTE(Tom61 @ Sep 8 2005, 08:20 AM)

Dosemu doesn't do CPU emulation, so it won't work. If you're looking for DOS gaming, grab DOSBox, which does do CPU emulation and has a Z port.
*


Thank you for your info.
i've found dosbox before, but it can only run under pdaXrom. did you ever seen one that can run under sharp original rom?
*



I think there's at least one that should run the default sharp rom. Check on the DOSBox forums, it may not come in a nice IPK, though. The only Z I've ever had was a 5500, so I knew I didn't have the pep needed to run it, so I never bothered to try.
daniel3000
QUOTE(chyang @ Sep 1 2005, 12:45 AM)
Here is the binary package.
it contains the bochs and the opt/Qtopia/sharp/lib/libSDL.* for bochs.
Try to get the BIOS/VGA file from bochs distribution, or I will post it if you like.
To run it, just as you run it under linux
bochs -q -f bochsrc.bxrc[not included, you should build your own]
I installed windows 98 SE in bochs on my desktop, and then copy the disk image file to Z.
I do love C3000. A cool portable powerful workstation. smile.gif smile.gif
*


Tried it finally, but I get an "error while loading shared libraries: /home/QtPalmtop/lib/libSDL-1.2.so.0: undefined symbol: pthread_create".

Reason is:
I create the symbolic link "/home/QtPalmtop/lib/libSDL-1.2.so.0" to the file libSDL-1.2.so.0.7.1 supplied in your tar.gz. Once I then run ldconfig, the lonk is modified to point to "/home/QtPalmtop/lib/libSDL-1.2.so.0.0.7".

I do not know why. Any ideas?


If I run bochs without running ldconfig first, i.e. with the link to the correct library file, the undefined symbol error message does not apprear, it works.
But the next time I run ldconfig, it stops working again.


Some more notes / questions:

Task switching from and back to bochs with Shift-Home in Cacko 1.23b1 ROM does not work. When switching back I get the white "Plase wait" screen in portrait mode, some time later the task bar appears again, but "Please wait" remains on the screen. nothing else happens. If I then switch to another open application, bochs appears shortly on the screen, before the application appears I just switched to.

Also, if I start bochs (with bochs -q -f ?/.bochsrc), firstly only a cursor appears in the bottom top corner and the QTopia task bar flickers at the bottom. Only if I tap on the symbol of another open application, the task bar disappears and bochs runs fine (but slowly - booting a DOS7 disk from Windows 95 did not finish yet after 10 minutes - must check the boot disk image, maybe it has a problem).


And: how can I quit bochs? Currently I have to kill the process.


daniel (thankful for any hint - I'm still interested in getting some old HP palmtop applications to wok on the Zaurus!)
Miami_Bob
QUOTE(daniel3000 @ Dec 7 2005, 09:01 AM)
And: how can I quit bochs? Currently I have to kill the process.

I'm still interested in getting some old HP palmtop applications to wok on the Zaurus!)


If you are running Bochs v1.4.1, there doesn't seem to be any way to close it down other than "kill -kill (pid)".

Bochs v2.1 & 2.1.1 (and perhaps some earlier versions that I haven't seen) have a "Power Off" icon on the right end of the upper icon bar. Works for me (G).

HTH -
Miami_Bob
chyang -

Have you compiled Bochs v2.2.1 for the C series Zs yet? If so, is it available? (G)

TIA
beresmed
Can anybody explain me step by step how to run Bochs on SL-C1000?
chyang
QUOTE(Miami_Bob @ Dec 11 2005, 02:43 AM)
chyang -

Have you compiled Bochs v2.2.1 for the C series Zs yet? If so, is it available? (G)

TIA
*

Haven't tried. AFAIK, it should contain some of my original hacking, which needs to take some time. I may have a try if it is worth doing. smile.gif
Would you like to tell me whether there are any specific advantages over the previous version?
There are still some problems in my previous build, what I lack is the time.
--
Chen
chyang
QUOTE(daniel3000 @ Dec 7 2005, 09:01 PM)
QUOTE(chyang @ Sep 1 2005, 12:45 AM)
Here is the binary package.
it contains the bochs and the opt/Qtopia/sharp/lib/libSDL.* for bochs.
Try to get the BIOS/VGA file from bochs distribution, or I will post it if you like.
To run it, just as you run it under linux
bochs -q -f bochsrc.bxrc[not included, you should build your own]
I installed windows 98 SE in bochs on my desktop, and then copy the disk image file to Z.
I do love C3000. A cool portable powerful workstation. smile.gif smile.gif
*


Tried it finally, but I get an "error while loading shared libraries: /home/QtPalmtop/lib/libSDL-1.2.so.0: undefined symbol: pthread_create".

Reason is:
I create the symbolic link "/home/QtPalmtop/lib/libSDL-1.2.so.0" to the file libSDL-1.2.so.0.7.1 supplied in your tar.gz. Once I then run ldconfig, the lonk is modified to point to "/home/QtPalmtop/lib/libSDL-1.2.so.0.0.7".

I do not know why. Any ideas?


If I run bochs without running ldconfig first, i.e. with the link to the correct library file, the undefined symbol error message does not apprear, it works.
But the next time I run ldconfig, it stops working again.


Some more notes / questions:

Task switching from and back to bochs with Shift-Home in Cacko 1.23b1 ROM does not work. When switching back I get the white "Plase wait" screen in portrait mode, some time later the task bar appears again, but "Please wait" remains on the screen. nothing else happens. If I then switch to another open application, bochs appears shortly on the screen, before the application appears I just switched to.

Also, if I start bochs (with bochs -q -f ?/.bochsrc), firstly only a cursor appears in the bottom top corner and the QTopia task bar flickers at the bottom. Only if I tap on the symbol of another open application, the task bar disappears and bochs runs fine (but slowly - booting a DOS7 disk from Windows 95 did not finish yet after 10 minutes - must check the boot disk image, maybe it has a problem).


And: how can I quit bochs? Currently I have to kill the process.


daniel (thankful for any hint - I'm still interested in getting some old HP palmtop applications to wok on the Zaurus!)
*



To the library problem, I'm not sure, maybe you can create some symbol links to it to ease the program, I haven't dug deeply on this.

The flicker problem is a known issue, I don't know the solution to it yet. What i did is just to press to cancel to ease the program. Win95 will finish in more minutes than you have tried.

To quit bochs, I have created one libSDL with my dosbox post, you can try the library with it, you can quit that by pressing Shift+Ctrl+Cancel.

http://www.oesf.org/forums/index.php?showtopic=15580
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.