Help - Search - Members - Calendar
Full Version: New Hp48gx Emulator Port
OESF Forums > General Forums > General Support and Discussion > Software
datajerk
New hp48gx emulator port.

x48 0.4.2 compiled for Z with support for Clamshell VGA screens. i.e. I moved the buttons around.

http://sense.net/zc/x48/

Screen Shot:

http://sense.net/zc/x48/x48.gif
kahm
Damn. Get me all excited, why don't you tongue.gif

I don't yet have a Z running pdaxrom, so I've been hoping someone would port an HP 48 emulator to Qtopia.

Ah well. I'll have to stick with my real 48s for the time being...
datajerk
I also run Qtopia, but use X/qt to run X apps within Qtopia. This port was easy. Converting to QT may be possible in the future.
w14
It seems to start on pdaxrom rc9, but just after the window displays, it bombs with a font error:

"can't load font '-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1'"

I don't know enough about X fonts to fix this. Anyone have any pointers?

Mike.
datajerk
I do not use pdaxrom, but I would guess that you are short on fonts. Look at the pdaxrom feed for font ipks and install them all. If still missing, try to extract the fonts from the X/qt feed. x48 uses only standard X11R6 fonts. A complete X11R6 install should have them.
w14
OK, after a bit of reading I added a line in the fonts.alias file to point the helvetica font at another standard font. So now the UI is displayed.

Sadly, this is where it all comes to a halt ...

As soon as I press a key on the UI or on the Zs keyboard, it bombs. The command line shows:

./x48: relocation error: ./x48: undefined symbol: __mods13

I guess that's a bit more terminal, and this will need to be recompiled using the pdaxrom sdk. This is another area I have no experience of, but maybe I can have a go at the weekend, if no-one beats me to it.

Cheers,

Mike.
datajerk
Should be easy, the patch is not specific to the Zaurus or X/qt, just 640x480. I developed and tested on an x86 Linux box. Just apply the patch and compile. I can try to create a static binary if that helps. Let me know.
guylhem
Too bad it doesn't run on opie/qtopia without xqt. It'd be great as a native app

Guylhem
datajerk
I started a EMU48 port to QT but it was taking too long and I needed an emulator quick. This only took a few hours to hack out. I spend a lot of time in X/qt, so it made sense for me.

I shouldn't be too hard to replace the X11 parts with QT. I will look at it when I have more time.
Kedge
QUOTE(w14 @ May 3 2005, 11:29 PM)
OK, after a bit of reading I added a line in the fonts.alias file to point the helvetica font at another standard font. So now the UI is displayed.


I have the same problem with the font, but didn't get right. Can you post the line you added?

kedge
guylhem
QUOTE(datajerk @ May 5 2005, 01:23 PM)
I started a EMU48 port to QT but it was taking too long and I needed an emulator quick.  This only took a few hours to hack out.  I spend a lot of time in X/qt, so it made sense for me.

I shouldn't be too hard to replace the X11 parts with QT.  I will look at it when I have more time.
*


An EMU48 port to QT would be much better IMHO because emu48 emulation is more recent and refined than X48. I'd be very very interested in such an application - especially if it could support both portrait and landscape mode.

Guylhem
w14
Kedge:

I added -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1 -misc-fixed-medium-r-semicondensed--12-90-100-100-c-60-iso8859-1 to the end of the file.

datajerk:

The pdaxrom cross compiler does not include xmkmf or imake as far as I can see. Can you give me any pointers? Did you have to manually edit the makefile? Excuse my ignorance with this stuff ...

Mike.
datajerk
QUOTE(w14 @ May 6 2005, 05:21 PM)
The pdaxrom cross compiler does not include xmkmf or imake as far as I can see. Can you give me any pointers? Did you have to manually edit the makefile? Excuse my ignorance with this stuff ...

Mike.
*


Just run xmkmf;make on your Linux workstation to build and test it. Then cd src, make clean, edit the Makefile, replace gcc with arm-linux-gcc, you will also need to make changes for the X11R6 paths.

I posted my Makefile here: http://sense.net/zc/x48/Makefile, diff this with your generated Makefile to find what I changed.

After you have edited the Makefile, just type make. Then arm-linux-strip x48.
datajerk
QUOTE(guylhem @ May 6 2005, 01:05 PM)
An EMU48 port to QT would be much better IMHO because emu48 emulation is more recent and refined than X48. I'd be very very interested in such an application - especially if it could support both portrait and landscape mode.

Guylhem
*


I will try to work on it this summer.
Kedge
QUOTE(w14 @ May 7 2005, 12:21 AM)
Kedge:

I added -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1 -misc-fixed-medium-r-semicondensed--12-90-100-100-c-60-iso8859-1 to the end of the file.

Mike.
*


Thanks, works now like a charm.

Stefan
w14
Stefan, what ROM are you using?
Kedge
QUOTE(w14 @ May 9 2005, 08:44 AM)
Stefan, what ROM are you using?
*


I'm using the Cacko 1.22 with X/QT. Sorry, no pdaXrom.

Stefan
anunakin
I have build a x48 ipk for use with pdaXrom 1.10 beta1...

smile.gif

MISC Feed http://zaurus.vivaphp.net/pdaxrom/misc

IPK http://zaurus.vivaphp.net/pdaxrom/misc/x48....3_armv5tel.ipk
mandjab
Hello I have cacko 1.23 with X/Qt but it doesn't work.

error Message : x48-0.4.3 : can't open display. sad.gif

Do you know why?

Thank's
pgas
QUOTE
I have build a x48 ipk for use with pdaXrom 1.10 beta1...


great I mirrored it there:

http://mail.pdaxrom.org/contrib/rc11+-armv5tel/

you should announce this in the pdaxrom forum also
datajerk
QUOTE(mandjab @ Jan 9 2006, 11:32 AM)
Hello I have cacko 1.23 with X/Qt but it doesn't work.

error Message : x48-0.4.3 : can't open display.  sad.gif

Do you know why?

Thank's
*

From an xterm type echo $DISPLAY, should be :0, also type xhost + and try again.
mandjab
[/quote]
From an xterm type echo $DISPLAY, should be :0, also type xhost + and try again.
*

[/quote]

Oup's

It's not ok, When i type echo $DISPLAY, i have nothing on the screen; dry.gif
datajerk
I just updated the web site http://sense.net/zc/x48 to include:

1. kermit with instructions on how to xfer to x48 from Zaurus.
2. A benchmark with some results.
3. New x48 with SX support.
4. Complete set of patches and Makefile.
xjqian
the 0.4.3 binary segfaults for my 6k. building x48 natively (dkpg-buildpackage -rfakeroot) inside X/Qt also segfault. I didn't change anything in the config.h file and dpkg-buildpackage uses the xmkmf.

CODE
x48: /home/root/.hp48/hp48 is a version 0.4.0 file, converting
Segmentation fault
datajerk
QUOTE(xjqian @ Mar 26 2006, 10:19 PM)
the 0.4.3 binary segfaults for my 6k. building x48 natively (dkpg-buildpackage -rfakeroot) inside X/Qt also segfault. I didn't change anything in the config.h file and dpkg-buildpackage uses the xmkmf.

CODE
x48: /home/root/.hp48/hp48 is a version 0.4.0 file, converting
Segmentation fault

*

Do any of the binaries work?

If you build x48 without patches, do you get the seg fault?
xjqian
QUOTE(datajerk @ Mar 27 2006, 10:44 AM)
Do any of the binaries work?

If you build x48 without patches, do you get the seg fault?
*


0.4.2 seems to work (both binary 0.4.2-2 or my own build), although I haven't figured out how to alias the font.

0.4.3 seg fault. I grabbed 0.4.3 source without applying any patch (shouldn't be any patch in there, right?)
datajerk
There was a mixup with some on the links on http://sense.net/zc/x48. Now corrected.
lardman
When you say it's really slow on the Nokia 770, how slow is this? Do you have the test loop data available for that machine?

I don't really understand what your base & turbo MHz figures mean in the table on the bottom of your page: http://sense.net/zc/x48/

Doesn't the xScale run at a single frequency (though it can be changed), or do you use some kind of cpufreq and these are the boundary speeds? Presumably the 770 should be as fast as the c860 @ ~220MHz, but from your comment about it being slow, I'm not so sure.

Thanks,


Simon

P.S. Are the binaries on your page optimised for the xscale?
datajerk
QUOTE(lardman @ May 10 2006, 04:30 AM)
When you say it's really slow on the Nokia 770, how slow is this? Do you have the test loop data available for that machine?

I don't really understand what your base & turbo MHz figures mean in the table on the bottom of your page: http://sense.net/zc/x48/

Doesn't the xScale run at a single frequency (though it can be changed), or do you use some kind of cpufreq and these are the boundary speeds? Presumably the 770 should be as fast as the c860 @ ~220MHz, but from your comment about it being slow, I'm not so sure.

Thanks,


Simon

P.S. Are the binaries on your page optimised for the xscale?
*

It takes about 1000 sec. I built Free42 for Zaurus and Nokia and it does not have a performance problem. Looking at software as the issue.
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-2015 Invision Power Services, Inc.