OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: datajerk on May 03, 2005, 01:17:29 pm

Title: New Hp48gx Emulator Port
Post by: datajerk on May 03, 2005, 01:17:29 pm
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/ (http://sense.net/zc/x48/)

Screen Shot:

http://sense.net/zc/x48/x48.gif (http://sense.net/zc/x48/x48.gif)
Title: New Hp48gx Emulator Port
Post by: kahm on May 03, 2005, 01:37:08 pm
Damn. Get me all excited, why don't you

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...
Title: New Hp48gx Emulator Port
Post by: datajerk on May 03, 2005, 01:55:33 pm
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.
Title: New Hp48gx Emulator Port
Post by: w14 on May 03, 2005, 04:35:27 pm
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.
Title: New Hp48gx Emulator Port
Post by: datajerk on May 03, 2005, 05:59:14 pm
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.
Title: New Hp48gx Emulator Port
Post by: w14 on May 03, 2005, 06:29:13 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.

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.
Title: New Hp48gx Emulator Port
Post by: datajerk on May 03, 2005, 06:36:02 pm
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.
Title: New Hp48gx Emulator Port
Post by: guylhem on May 05, 2005, 10:56:29 am
Too bad it doesn't run on opie/qtopia without xqt. It'd be great as a native app

Guylhem
Title: New Hp48gx Emulator Port
Post by: datajerk on May 05, 2005, 05:23:13 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.
Title: New Hp48gx Emulator Port
Post by: Kedge on May 06, 2005, 05:26:57 am
Quote
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
Title: New Hp48gx Emulator Port
Post by: guylhem on May 06, 2005, 03:05:29 pm
Quote
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=78432\"][{POST_SNAPBACK}][/a][/div]

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
Title: New Hp48gx Emulator Port
Post by: w14 on May 06, 2005, 07:21:34 pm
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.
Title: New Hp48gx Emulator Port
Post by: datajerk on May 07, 2005, 10:28:16 am
Quote
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.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=78633\")

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: [a href=\"http://sense.net/zc/x48/Makefile]http://sense.net/zc/x48/Makefile[/url], 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.
Title: New Hp48gx Emulator Port
Post by: datajerk on May 07, 2005, 10:33:14 am
Quote
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=78588\"][{POST_SNAPBACK}][/a][/div]

I will try to work on it this summer.
Title: New Hp48gx Emulator Port
Post by: Kedge on May 09, 2005, 02:00:33 am
Quote
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=78633\"][{POST_SNAPBACK}][/a][/div]

Thanks, works now like a charm.

Stefan
Title: New Hp48gx Emulator Port
Post by: w14 on May 09, 2005, 03:44:49 am
Stefan, what ROM are you using?
Title: New Hp48gx Emulator Port
Post by: Kedge on May 09, 2005, 09:42:16 am
Quote
Stefan, what ROM are you using?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=78840\"][{POST_SNAPBACK}][/a][/div]

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

Stefan
Title: New Hp48gx Emulator Port
Post by: anunakin on January 09, 2006, 09:32:57 am
I have build a x48 ipk for use with pdaXrom 1.10 beta1...

 

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

IPK http://zaurus.vivaphp.net/pdaxrom/misc/x48....3_armv5tel.ipk (http://zaurus.vivaphp.net/pdaxrom/misc/x48_0.4.3_armv5tel.ipk)
Title: New Hp48gx Emulator Port
Post by: mandjab on January 09, 2006, 12:32:51 pm
Hello I have cacko 1.23 with X/Qt but it doesn't work.

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

Do you know why?

Thank's
Title: New Hp48gx Emulator Port
Post by: pgas on January 09, 2006, 01:07:40 pm
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/ (http://mail.pdaxrom.org/contrib/rc11+-armv5tel/)

you should announce this in the pdaxrom forum also
Title: New Hp48gx Emulator Port
Post by: datajerk on January 09, 2006, 01:35:15 pm
Quote
Hello I have cacko 1.23 with X/Qt but it doesn't work.

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

Do you know why?

Thank's
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110154\"][{POST_SNAPBACK}][/a][/div]
From an xterm type echo $DISPLAY, should be :0, also type xhost + and try again.
Title: New Hp48gx Emulator Port
Post by: mandjab on January 10, 2006, 03:47:55 am
[/quote]
From an xterm type echo $DISPLAY, should be :0, also type xhost + and try again.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110163\"][{POST_SNAPBACK}][/a][/div]
[/quote]

Oup's

It's not ok, When i type echo $DISPLAY, i have nothing on the screen;
Title: New Hp48gx Emulator Port
Post by: datajerk on March 25, 2006, 12:10:55 pm
I just updated the web site http://sense.net/zc/x48 (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.
Title: New Hp48gx Emulator Port
Post by: xjqian on March 26, 2006, 11:19:11 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: [Select]
x48: /home/root/.hp48/hp48 is a version 0.4.0 file, converting
Segmentation fault
Title: New Hp48gx Emulator Port
Post by: datajerk on March 27, 2006, 10:44:02 am
Quote
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: [Select]
x48: /home/root/.hp48/hp48 is a version 0.4.0 file, converting
Segmentation fault
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120385\"][{POST_SNAPBACK}][/a][/div]
Do any of the binaries work?

If you build x48 without patches, do you get the seg fault?
Title: New Hp48gx Emulator Port
Post by: xjqian on March 27, 2006, 05:26:19 pm
Quote
Do any of the binaries work?

If you build x48 without patches, do you get the seg fault?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120475\"][{POST_SNAPBACK}][/a][/div]

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?)
Title: New Hp48gx Emulator Port
Post by: datajerk on March 28, 2006, 10:17:52 am
There was a mixup with some on the links on http://sense.net/zc/x48 (http://sense.net/zc/x48).  Now corrected.
Title: New Hp48gx Emulator Port
Post by: lardman on May 10, 2006, 06:30:43 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/ (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?
Title: New Hp48gx Emulator Port
Post by: datajerk on May 10, 2006, 05:53:17 pm
Quote
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/ (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?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126389\"][{POST_SNAPBACK}][/a][/div]
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.