OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: anunakin on January 09, 2006, 04:33:42 pm

Title: X48 Ipk For Pdaxrom 1.10beta1
Post by: anunakin on January 09, 2006, 04:33:42 pm
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)
Sources: http://zaurus.vivaphp.net/pdaxrom/misc/src...Xrom-src.tar.gz (http://zaurus.vivaphp.net/pdaxrom/misc/src/x48-0.4.3-pdaXrom-src.tar.gz)

Compiled with gcc 3.4.5  

Project:
http://developer.berlios.de/projects/x48/ (http://developer.berlios.de/projects/x48/)

HP48 ROM:
http://download.berlios.de/x48/x48-gxrom-r.tar.gz (http://download.berlios.de/x48/x48-gxrom-r.tar.gz)

More info:
http://sense.net/zc/x48/ (http://sense.net/zc/x48/)
https://www.oesf.org/forums/index.php?showtopic=12349&st=0 (https://www.oesf.org/forums/index.php?showtopic=12349&st=0)

Thx to Datajerk, for 640x480 patch
and W14  for font error solution

I made a new Makefile and compiled in my SL-C3100... and works great....
Title: X48 Ipk For Pdaxrom 1.10beta1
Post by: aaaweez on February 09, 2006, 03:13:13 pm
thanks for the work on this.

 I managed after some minor trial and error to get it going, and it is great to have access to my trusty hp calculator without having to drag it along.

Briefly here is what I vaguely remember about some of the problems I ran into:
I had no idea where to put the rom, so I just tried running it.  At first running it from the icon did nothing, so I opened a shell and ran it.  It was complaining that it didn't have a .hp48 directory, and no rom.dump file I believe.

Creating a .hp48 directory and experimenting with rom.dump and rom for the filename was getting me nowhere, so I tried command line options instead.  I ran it with "x48 -rom romfile", and then it complained about missing a medium font.

I opened xfontsel, and saw that the font it was looking for didnt seem to exist, so I looked around in the package feed to see if there were any packages I was missing.  I could not find anything so I swapped around font specifier info on xfontsel until I found a font that rendered, and then plugged that into the mediumfont command line parameter (check help output for exact parameter).  So the command I ran from command line was something like "x48 -rom romfile -mediumfont 'somestuff-charter-rest-same-as-error'". (the only part of my font name that changed was the charter part.  everything else stayed the same).

It then complained about the large font missing.  Same drill again, adding the large font specifier.  In the end it ran, and everything works fine.  

The icing on the cake is that somehow that config info got written to a file, because without any help from me, it now runs from the icon.

* end of rambling *

It works great on landscape mode, and fits perfectly on the screen.  Anyone have any idea how much work it would be to make it rotate when the clamshell is rotated to portrait mode?  I briefly looked at the source, and can only guess it would take some real trickery to pull it off without have to fix some of the assumptions there.

-aaaweez
Title: X48 Ipk For Pdaxrom 1.10beta1
Post by: anunakin on February 09, 2006, 03:38:18 pm
aaaweez:
You using pdaXrom 1.10 beta1?

For works in portrait mode we need recompile... with a patch in .c files.... and some portions of HP48 keyboard goes out of screen  
Title: X48 Ipk For Pdaxrom 1.10beta1
Post by: silencer51 on February 09, 2006, 04:20:45 pm
This great anunakin! I installed the ipk succesfully, now if someone could please tell me where the .hp48 directory should go...

Also, it seems I am missing a library, libreadline. Where can i get this?
Title: X48 Ipk For Pdaxrom 1.10beta1
Post by: anunakin on February 09, 2006, 06:26:16 pm
Quote
This great anunakin! I installed the ipk succesfully, now if someone could please tell me where the .hp48 directory should go...

Also, it seems I am missing a library, libreadline. Where can i get this?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114309\"][{POST_SNAPBACK}][/a][/div]

You need put .hp48 in /home/root

And you need install readline package, this is on 7x0 feed...
Title: X48 Ipk For Pdaxrom 1.10beta1
Post by: datajerk on February 09, 2006, 06:41:30 pm
Quote
This great anunakin! I installed the ipk succesfully, now if someone could please tell me where the .hp48 directory should go...

Also, it seems I am missing a library, libreadline. Where can i get this?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114309\"][{POST_SNAPBACK}][/a][/div]
Create .hp48 in your home directory.  Put the ROM image in there as 'rom'.  That's it.
Title: X48 Ipk For Pdaxrom 1.10beta1
Post by: silencer51 on February 09, 2006, 06:57:11 pm
Ok, that did it, thanks! :-)
Title: X48 Ipk For Pdaxrom 1.10beta1
Post by: datajerk on February 09, 2006, 07:04:23 pm
The patch I created for the screen layout also has a few other minor fixes for the clock and performance.  I think the performance/clock patch may be have been omitted.  If the x48 recompile for pdaxrom using my patch does not perform at the same speed as a real hp48gx and/or has DST issues let me know (ask for timer.c and actions.c).

As for the readline issue, the version on http://sense.net/zc/x48/ (http://sense.net/zc/x48/) does not require it.  You can probably rebuild x48 without readline by editing the Makefile.  It is used for debugging, something that you probably do not care about.

Lastly, portrait mode.  x48 without the patch is in portrait, but is too tall for the screen (326x733).  You need to shave off about 100 pixels.  Shouldn't be too hard, but to get it to switch dynamically may be a pain.  Since the hp48 retains state between power on/off (x84 close/open), I'd suggest that if someone wants to do this that closing and opening may be easier.

The 49g+ uses a 75MHz ARM9 processor, that I'd like to see on the Z.
Title: X48 Ipk For Pdaxrom 1.10beta1
Post by: datajerk on February 09, 2006, 07:08:35 pm
A tip I should have mentioned.  x48 can be controlled from the keyboard, but you need left and right shift keys mapped to get to all the keys.  X/qt only has both shift mapped as left (or right, I cannot call).  I could not find a way with X/qt to have the left shift mapped as left, right as right, so I mapped another key.
Title: X48 Ipk For Pdaxrom 1.10beta1
Post by: datajerk on February 09, 2006, 07:15:39 pm
Unrelated, but I have also fixed cgoban for 640x480 screens if you want to create a pdaxrom version.  http://sense.net/zc/go/ (http://sense.net/zc/go/).
Title: X48 Ipk For Pdaxrom 1.10beta1
Post by: aaaweez on February 10, 2006, 12:47:24 am
Quote
aaaweez:
You using pdaXrom 1.10 beta1?

For works in portrait mode we need recompile... with a patch in .c files.... and some portions of HP48 keyboard goes out of screen 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114301\"][{POST_SNAPBACK}][/a][/div]

yes.  I am using 1.1.0beta1.  I am wondering if the problems I experienced had something to do with the fact that I was running it from a shell on my desktop.  When I ran it just now from the desktop, here is what I had to run:
Code: [Select]
cd; cd .hp48
x48 -rom l48r -medium '-*-charter-bold-r-normal-*-15-*-*-*-*-*-iso8859-1' -large '-*-charter-bold-r-normal-*-20-*-*-*-*-*-iso8859-1'

oh wait.  that would be the problem.  Looking in the directory I see that I left a copy of the rom with the filename "rom".  I thought I had moved the file everytime I tried a different filename, but evidently not.  That is why it started working from the icon.  Well, now everyone knows how to launch it on their desktop machine.  Yay  

Out of curiosity, I checked out the screen running on my desktop and measured it using kruler.  I was wondering if it would be possible to shave stuff off and make it fit in a 480x640 landscape mode.  KDE reports the window size to be 640x425.  If we simply stick the top half and bottom half back together into one bitmap, it would make a window size of around 320x850.  As you said, this would definately not fit on the zaurus screen.  However, if we were willing to shave off unused pieces of the display, it might just fit.

Measurements:
From top of calculator to top of LCD ~80 pixels
From bottom of LCD to top of A-F keys ~20 pixels
From bottom of A-F keys to bottom of screen ~90 pixels

If we shave all of that out of the bitmap, that saves ~190 pixels, which would make the window size 320x660.

I know I don't have the time to mess with doing this right now, but it is something I might pursue at some point, if no one beats me to it.  In the meantime, I will just enjoy it in landscape mode   .

-aaaweez