Author Topic: X48 Ipk For Pdaxrom 1.10beta1  (Read 11245 times)

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
X48 Ipk For Pdaxrom 1.10beta1
« on: January 09, 2006, 04:33:42 pm »
« Last Edit: January 09, 2006, 04:45:05 pm by anunakin »
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)

aaaweez

  • Newbie
  • *
  • Posts: 8
    • View Profile
X48 Ipk For Pdaxrom 1.10beta1
« Reply #1 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

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
X48 Ipk For Pdaxrom 1.10beta1
« Reply #2 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  
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)

silencer51

  • Full Member
  • ***
  • Posts: 172
    • View Profile
    • http://tchalikias.blogspot.com
X48 Ipk For Pdaxrom 1.10beta1
« Reply #3 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?
Zaurus SL-5500 with:
128MB CF Card                                    
128MB SD Card
Symbol WiFi CF Card (working, sorta... overheats and shuts down!)
OZ 3.5.4 & GPE

Zaurus SL-C3100 with:
pdaXrom 1.1.0beta3 & XFCE4, /dev/hda1 256MB swap, /dev/hda2 512MB ext3, /dev/hda3 3328MB FAT32 for stuff
D-Link DCF-660 WiFi CF Card
1GB SD Card
128MB SD Card
128MB CF Card (for flashing)
USB Host Cable

& a Sony VAIO PCG-C1XD Picturebook with accessories...

[img]http://img58.imageshack.us/img58/7319/usbar21mw.gif\" border=\"0\" class=\"linked-sig-image\" /]

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
X48 Ipk For Pdaxrom 1.10beta1
« Reply #4 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...
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
X48 Ipk For Pdaxrom 1.10beta1
« Reply #5 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.

silencer51

  • Full Member
  • ***
  • Posts: 172
    • View Profile
    • http://tchalikias.blogspot.com
X48 Ipk For Pdaxrom 1.10beta1
« Reply #6 on: February 09, 2006, 06:57:11 pm »
Ok, that did it, thanks! :-)
Zaurus SL-5500 with:
128MB CF Card                                    
128MB SD Card
Symbol WiFi CF Card (working, sorta... overheats and shuts down!)
OZ 3.5.4 & GPE

Zaurus SL-C3100 with:
pdaXrom 1.1.0beta3 & XFCE4, /dev/hda1 256MB swap, /dev/hda2 512MB ext3, /dev/hda3 3328MB FAT32 for stuff
D-Link DCF-660 WiFi CF Card
1GB SD Card
128MB SD Card
128MB CF Card (for flashing)
USB Host Cable

& a Sony VAIO PCG-C1XD Picturebook with accessories...

[img]http://img58.imageshack.us/img58/7319/usbar21mw.gif\" border=\"0\" class=\"linked-sig-image\" /]

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
X48 Ipk For Pdaxrom 1.10beta1
« Reply #7 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/ 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.

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
X48 Ipk For Pdaxrom 1.10beta1
« Reply #8 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.

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
X48 Ipk For Pdaxrom 1.10beta1
« Reply #9 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/.

aaaweez

  • Newbie
  • *
  • Posts: 8
    • View Profile
X48 Ipk For Pdaxrom 1.10beta1
« Reply #10 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