PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Version for Jornada 820

Is it a version for JORNADA 820?
It's an HPC pro 2.11 device with strongArm SA1100@190MHz a little older than StrongArm SA1110@206MHz from jornada 720
The screen is VGA: 640x480 and 256 colors

Thank you for your help, I tried a lot of versions for ARM, even for 720 doesn't work. :(

Jean-Marc
what happens when you try the HPC test build from http://arisme.free.fr/PocketScumm ?
Bebaer · 25 Mar 2003, 05:19 UTC — Jornada 820
When I try Latest official, In windows, I have the answer that my device in not supported.
When I try versions for HPC, or version for Pocket pc ARM, directly on Jornada 820, I have the message: "Didn't find the file" . It's the message I have when I try to run a cab that was compiled for SH3 or Mips on my ARM Jornada.
:(
I still didn't find a version of pocketscumm for the jornada 820.
Can someone help me?
Will it be a version one day?
I don't know about compiling programs for my jornada, if someone can explain me? or give me web site about that topic?
Thank you very much and long live to pocketscumm :D
I'll try to compile something for ARM HPC Pro with the next release, and we'll see what happens :wink:
Please do let us know if you get it going. :) There really isn't much for the Jornada 820. The only game available is Doom4CE, AFAIK. And I'm not even sure if that uses GAPI on the Jornada 820.
Bebaer · 13 Apr 2003, 22:47 UTC — Great News
Great news,
I will try it when it will be released. And write a report.
Thank you very much. :P
Arisme,

Did you manage to compile a version for ARM HPC Pro yet?
Ok, from what I can tell, there is no version of GameX for any ARM processor/platform. However, there is a Dummy GX.dll for the Jornada 720, 820, etc.

The config file for the Jornada 820 (Jap) says that:
# gx.dll.ini for HP Jornada 820 (Japanese model) 256 colors mode

framebuffer 0xb0100010

#display properties - see gx.h
cxWidth 640
cyHeight 480
cbxPitch 1
cbyPitch 640
cBPP 8
ffFormat 0x10

Have you tried compiling the Jornada 720 / 820 version with the DummyGX???

It should be a matter of just compiling a WinCE 2.11 version with the gx.lib and gx.h from the PocketPC toolkit???
futaris · 30 Apr 2003, 02:25 UTC — DummyGX
DummyGX is located at:

http://www.age.jp/~k-matsu/CE/dummygx/

(its the first link on that page). There are some links on the web about getting PocketPC software running on the Jornada 720... They might be of some help, but the J720 runs WinCE 3.0, not WinCE 2.11, so I doubt you can do the same thing on the J820.
no new build yet - the ScummVM core is a bit unstable for the moment :wink:
Yeah, I found that out myself. :( Did you notice that the tar gzipped source on the sourceforge page doesn't include all the directories? I had to pull it in via CVS to get all the missing/sys directories.

Incidentally, what functions did you have to add/substitute, to get PocketScumm running under WinCE 2.11 (HPC Pro) ??? There are a quite a few functions that WinCE 3.0 provides, that aren't in 2.11, right?
yes, but I've already some wrappers available for the missing functions

just use CVS to get the sources :wink:
Cool. Will you be creating a beta build sometime soon, consider 0.4.0 is coming out soon? I'd like to test/compile it myself, but I'd rather wait till you implement those improvements mentioned on the scummvm-devel list.
yes, I'll have one early on this week (perhaps Monday) to make sure everything is working properly for the 0.4.0 release (scheduled for next Sunday)- it'll need some heavy testing because the experimental COMI support can break some things on HPCs :wink:
<a href="http://arisme.free.fr/PocketScumm/daily/PocketSCUMM-050703-040pre1-ARM-HPC.zip">PocketScumm build 05/07/03 0.4.0pre-1</a> works on the Jornada 820, but the palette seems to be screwed - probably because you're bitblt ing? or not using GameX. I haven't been able to get DummyGX to work with anything on the Jornada 820 (English). Does anyone know the definitive framebuffer address under Windows CE (Virtual?).
yes, possibly ... can you see the display driver in use ? and make some screenshots with different games ?
I'm not sure what display driver is being used. How do I tell?

scummvm.ini contains the following:
[wince]
BasePath=\Storage Card2\Kangz PocketSCUMM
DisplayMode=0
FMHighQuality=false
GamesDirectory0=\Storage Card2\Kangz PocketSCUMM\dott
GamesDirectory1=\Storage Card2\Kangz PocketSCUMM\atlantis
GamesDirectory2=\Storage Card2\Kangz PocketSCUMM\Monkey1
GamesDirectory3=\Storage Card2\Kangz PocketSCUMM\Monkey2
GamesDirectory4=\Storage Card2\Kangz PocketSCUMM\COMI
GamesInstalled=5
GamesReferences=15 13 0f 12 1b
GamesVersion=5
KeysVersion=3
Sound=false
SoundThreadPriority=2

I assume you're using GDI or bitblt or something? There is no GameX or DummyGX installed on the machine at the moment. :(

I've put some screenshots up at: http://members.optusnet.com.au/futaris01/pocketscumm-j820/050703/ - They're from a number of games, but not in any particular order.
yes, it should be using GDI as I have no direct video access information available for this device :(

you can check this by clicking the Pocketscumm logo on the launcher screen

I'm looking at DummyGX to see if the video buffer address can be retrieved ...
well, of course it cannot as it's given in the ini file and specific to the japanese model :evil:

guess I have to stick to the GDI or to try random memory writes (don't think you'll agree on that :wink:), if nobody found that magic value ...
Well, Doom4CE accesses the framebuffer memory directly... How it does this is another question.
oh OK ... at least we have a start :D let me guess, it's not open source ?
No, it's not open source. :( It should be, but I don't know why Jimmy never released it.

http://www.jimmysoftware.com/Software/Doom4CE/compatibility.asp

[url]mailto:jimmy@jimmy.com[/url]
anyway I'll rewrite my GDI code, it can only get better :D
Well the palette is definitely changing. Particularly when the LucasArts logo comes up. Colors seem to be inversed though or channels swapped??? Most of the colours are pretty much the same as pre1. Some more screenshots are up at http://members.optusnet.com.au/futaris01/pocketscumm-j820/050703-040pre2/
Hello Arisme, Futaris and all fans of Jornada 820.
Thank you for attempting to make this release for this great little handheld. :-)
Let's come to the subject:
I have the same result with pre1 than Futaris and the same with pre2 too:
Pre1 is finally better at this moment, because in pre2 all colors palette are changing in cycle in all the screen.
Unfortunately it's very very slow too. Looks like 2 Hz pictures :-(
But the sound seems good, I tried with the demo of Sam&Max; you gave as link in one topic.
Maybe I should try another one, because I know Jornada 820 can be faster. Especially Doom :-)
I can't help with advices about GDI and such things I'm not familiar, but I'm ready to Test and to give all information I have.
uh ok :? ... will try something else then

NOTE: GAPI HPC only supports the following devices: Vadem Clio C1000 (Sharp PV6000), Sharp Telios 7000 (Intermec 6651), HP 680/690/720, NEC MobilePro 780.


doesn't look good :?

wow, that was a long URL :D
the framebuffer is mapped by WinCE at 0xc0002e00+0x200


Is this helpful? I've got it from here: http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2002-June/010016.html

Greetings, Helge
mmh yes, could be - worth a try ...

for the moment, a version with a different palette approach - just check the selection screen because it will crash just after :wink:

http://arisme.free.fr/PocketScumm/daily ... _gdi_1.zip

I'll build a new version to access the frame buffer at the address you specified ...
Test version with FB access : http://arisme.free.fr/PocketScumm/daily ... ideo_1.zip

be sure to backup everything on your device before using it (possible random memory access == not good :wink:)
I've been doing some stuff with Francois-Rene Rideau, trying to get Linux running on the Jornada 820... So, I already tried that frame buffer address in GAPI HPC. I think part of the problem is the Jornada 820 uses a DSTN screen, so you have an upper and lower half at different addresses... If you look in the SA-1100 Manual, DBAR1 is at 0xb0100010 and DBAR2 is at 0xb0100018.
DBAR1 = 0xc0002e00.
DBAR2 = 0xc0028800.

The Jornada 820 seems to use the internal SA-1100 framebuffer - like the Intel Brutus Evaluation Board.

The relevant bits from the SA-1100 Manual:

11.7.8 DMA Channel 1 Base Address Register
DMA channel 1 base address register (DBAR1) is a 32-bit register that is used to specify the base
address of the off-chip frame buffer for DMA channel 1. The base address pointer register can be
both read and written. Addresses programmed in the base address register must be aligned on
quadword boundaries; the least significant four bits (DBAR1<3:0>) must always be written with
zeros. The user must initialize the base address register before enabling the LCD, and can also
write a new value to it while the LCD is enabled to allow a new frame buffer to be used for the next
frame. The user can change the state of DBAR1 while the LCD controller is active just after the
base address update (BAU) status bit is set with the LCD’s status register, which generates an
interrupt request. This status bit indicates that the value in the base address pointer has transferred
to the current address pointer register and that it is safe to write a new base address value. DMA
channel 1 is used to transfer frame buffer data from off-chip memory to the LCD’s input FIFO and
the palette RAM for single-panel mode, and for the top half of the screen in dual-panel mode. For
dual-panel operation, the user must perform the following sequence in order: disable the LCD
(LEN=0), program dual panel mode (SDS= 0 ® 1), write the upper panel DMA base address,
write the lower panel DMA base address, enable the LCD (LEN= 0 ® 1). Note that DBAR1 is not
reset and must be initialized before enabling the LCD; question marks indicate that the values are
unknown at reset.

11.7.10 DMA Channel 2 Base and Current Address Registers
DMA channel 2’s base and current address registers (DBAR2 and DCAR2) function exactly like
DMA channel 1’s except that they are used exclusively for dual-panel operation. (See the preceding
sections.) When SDS=1, DMA channel 2 is used to supply frame buffer data to the lower half of the
display. Note that the palette buffer, which resides within the first 16 or 256 entries of the frame buffer,
is utilized only by DMA channel 1. The user should not place palette entries into the frame buffer for
DMA channel 2. The base address for channel 2 points to the first encoded pixel values for the lower
half of the display. For dual-panel operation, the user must perform the following sequence in order:
disable the LCD (LEN=0), program dual-panel mode (SDS= 0 ® 1), write the upper panel DMA base
address, write the lower DMA base address and enable the LCD (LEN= 0 ® 1). The following figures
show the format of these registers; question marks indicate that the values are unknown at reset.


Running the original code with GAPI HPC or the test820_video_1 exe gives the same fatal application error:
Exception: 0xc0000005
Address: 0002a044

Are you trying to do a GXOpenDisplay at that address? I don't think that has any meaning under HPC Pro.
The GDI code gives the correct palette at the main PocketScumm screen, but when you try and run a game, the PocketScumm display is corrupt. Only the icons are rendered correctly. I think the window is only 300x240 or thereabouts. The right hand border is cutoff halfway through the T in PocketScumm.

The keyboard and icons are drawn correctly, but the display is blank, unless you click the Options Button. The options button brings up a poorly interlaced screen.

http://members.optusnet.com.au/futaris01/pocketscumm-j820/test820_gdi_1/ for screenshots

Trying to run COMI gives a Fatal Application Error. Memory Error? :)
ok nice ... in fact I just changed the part relevant to the UI rendering that's why it doesn't work with games ... but I'll go on as this seems to work :wink:

I'll check what happens with COMI (glad you have that game to test it :wink:)

Are you trying to do a GXOpenDisplay at that address? I don't think that has any meaning under HPC Pro.


no, just writing directly at that address ... page protection on CE is nice :D

I think part of the problem is the Jornada 820 uses a DSTN screen, so you have an upper and lower half at different addresses...


oh ... would explain why it's so hard to find a GAPI-like library for this device while there are no problems on 710s or 720s ... do you know if someone managed to use this framebuffer, even in Linux ?
btw I do not like the weird colors in the middle of the screen too much 8O looks like the 820 has only a 256 colors depth screen, while the 720 and 710 have 64 K colors ?

well, we'll see what happens - anyway you'll probably be the only handheld owner able to play COMI in its original resolution :wink:
here comes another rewrite of the GDI rendering ... this one should work, but there may be still some palette problems ... tell me how it looks :wink:

(this version will not work with COMI for the moment)

http://arisme.free.fr/PocketScumm/daily ... _gdi_2.zip
Well the GDI code (v2) works perfectly. :) The palette seems to be right. Only problem is GDI is SLOOOOOOOOOOW (maybe we get 10-15fps which isn't too bad). However, using GDI, I don't think there is enough CPU for MP3 voices or adlib music.

Fades/color palette cycling and scrolling, etc are slow, but otherwise GDI is ok, as long as you're not updating the entire screen :).

I'll put some screenshots up at http://members.optusnet.com.au/futaris01/pocketscumm-j820/test820_gdi_2/

Yep, the Jornada 820 uses a 640x480x256 color display. The reason is the SA-1100 LCD controller shares the LCD memory bus with everything else (PCMCIA, etc). The SA-1100 LCD controller just doesn't have the bandwidth for more colors.

We've fiddled with getting Linux running on the Jornada 820, but we're not at the stage of getting the Framebuffer working (yet). The memory map of the LCD seems to be similar to that below. Maybe the LCD controller wants 16-bit values for each pixel? I'm not sure atm. I've put some small detail below.

0xc0002e00 Palette 0x200 bytes
0xc0003000 Upper Half 0x12C00 bytes for 8-bit 640x240
0x25800 bytes for 16-bit 640x240
0x25800 bytes for 8-bit 640x480
0xc0028800 Bottom Half 0x12C00 bytes for 8-bit 640x240
0x25800 bytes for 16-bit 640x240
0x25800 bytes for 8-bit 640x480

Note that if 640x480x8 or 640x480x16 is used then the upper and lower halves of the screen are contiguous in memory.

There are a few other HPCs around that have large(r) displays. And there's always the Zaurus C700 (runs Linux at 640x480). So the Jornada 820 isn't the only "handheld" device that'll run COMI at 640x480.
Whoops, I logged out accidently in the above post. PocketMatrix was playing up before. :(

Here's the memory map again (in a legible form).

0xc0002e00 Palette
(0x200 bytes)
0xc0003000 Upper Half
(0x12C00 bytes for 8-bit 640x240)
(0x25800 bytes for 16-bit 640x240)
(0x25800 bytes for 8-bit 640x480)
0xc0028800 Bottom Half
(0x12C00 bytes for 8-bit 640x240)
(0x25800 bytes for 16-bit 640x240)
(0x25800 bytes for 8-bit 640x480)
ok then I guess it'll be GDI only for the moment :wink: did you try with COMI ?
Lo and behold, I try to ran COMI, and got nothing... Just the Loading... screen. The Jornada 820 only has 16MB of memory. Has anyone tried to run COMI on the Ipaq 3130 (Monopaq) ???

I've also had the Jornada 820 hang if I try to bring up the options menu during animation seqeuences in DOTT. But I haven't been able to reproduce the bug. It may have just been due to insufficient memory.
Hmm. Fatal Application Error if I try and load a second savegame. :(
what do you mean by second ? it works with the first ? do you have this problem for every game ? can you send me a copy of the saved game if you're able to reproduce this ?

The desktop ScummVM takes approximately 10 Mb in the introduction screen of COMI, but if I add a 5 Mb memory overhead for the 640x480 display yes, it's probably too big :?
Nope the problem was due to a particular savegame - near the end of DOTT. :( I will e-mail it to you soon.
Success! I have created a GAPI library for the Jornada 820. It's not crash hot, but it does work with PocketScumm. I put a copy up at http://members.optusnet.com.au/futaris01/pocketscumm-j820/GX-J820.zip

I did notice though that the PocketScumm user interface doesn't really support KfPalette too well. Everytime the palette changes the interface palette gets modified. Perhaps it would be best to use B&W interface toolbar?

The sound/mixer is also still a little quirky/jerky but I don't know how to go about fixing that. Perhaps it's a problem with the Mixing code in PocketScumm under WinCE 2.11? Or it could be a bandwidth problem. :(

Running COMI automatically puts the display in landscape mode, and it hangs. I'm running Test820 GDI 2 atm.

I'll put some screenshots up at http://members.optusnet.com.au/futaris01/pocketscumm-j820/GAPI/
Whoops, it looks like the screenshot program I was using (ScreenSnap v4.0) doesn't save the files with the correct palette when I run GAPI programs. I still put them up, but they're sorta trippy without the correct palette. :)

Anyway, GAPI works, but the mouse cursor corrupts the display sometimes. Additionally, pressing the start key will bring up the start menu, but it won't be overwritten again by PocketScumm. I haven't got any of the GAPI input routines going yet.

Not sure what to do about the above. Any suggestions?
Just a quick note, I've moved gapi for the Jornada 820 to http://members.optusnet.com.au/futaris01/gapi_j820/gapi_j820.zip
wow, you're making progress fast :D

I received the savegame and will test it in the evening ...

about the user interface, yes, it doesn't work well in paletted mode - I should use a different toolbar for the paletted devices (but it was never very high on my priority list :wink:)

you can try to play with the thread priority for the mixer to see if it makes things better (see the SoundThreadPriority parameter in the scummvm.ini file, it's the Windows constant used in SetThreadPriority)

the cursor issues should be fixed in the official 0.4.0 - the start menu isn't overwritten if you go to a new room ? it should be when the whole screen is painted (at least the part of the menu overlapping PocketScumm screen)

I don't know what happens with COMI but I'll investigate (I probably don't support 640x480 resolutions in GAPI just because I thought it would never happen :D) - how does it hangs ?
the saved game problem seems to be a bug in the engine (I'll see if it's fixed in the CVS head and submit a bug report if not)

btw the little question I forgot to ask : does your GAPI support a 640x480 resolution ? given the source I'd say no, but just to be sure :D
GAPI should support 640x480 fine, as it is returning the following values from GXGetDisplayProperties():
cxWidth = 640;
cyHeight = 480;

It was just a matter of slipping the correct values into the gx.cpp source file. The source is in gapi_j820.zip.

Although, I'm not sure if 640x480 works... I haven't written any test GAPI programs. :) However clicking way over to the right (on the same row as a game) in the PocketScumm menu works. :D

I suppose the 2x filters could now be used, assuming the code was updated to support it??? Is there anyway to set those sort of options from PocketScumm yet?

I'm now running 0.4.0...

The start menu doesn't overlap into the region that is used by PocketScumm, but I don't think that the rest of the display is updated by PocketScumm.

The cursor problem seems to be a bug in Windows CE or my GAPI. It occurs whenever the entire screen is updated, or the mouse cursor disappears. :( The cursor seems to buffer its surrounding pixels.

#define THREAD_PRIORITY_TIME_CRITICAL 0
#define THREAD_PRIORITY_HIGHEST 1
#define THREAD_PRIORITY_ABOVE_NORMAL 2
#define THREAD_PRIORITY_NORMAL 3
#define THREAD_PRIORITY_BELOW_NORMAL 4
#define THREAD_PRIORITY_LOWEST 5
#define THREAD_PRIORITY_ABOVE_IDLE 6
#define THREAD_PRIORITY_IDLE 7

Even setting SoundThreadPriority 0 or 1 doesn't help reduce the stuttering. :( Are you using the same MP3 decoder for HPC as PPC? I also tried running MI1 from a CF card, and still got the same problem. I think the adlib/midi emulation is also a little quirky (MI2). I can probably record some samples if that'll help. the Jornada 720 uses the same audio DAC (UCB1200), so I doubt that that's the problem.

COMI just seems to sit at the loading screen. Does its renderer support paletted (256 color) devices? I'd probably have to compile a debug version to find out more.
The cursor bug might be a bug in my code :wink: I never really tested it for a 640x480 resolution ... depends if it worked with the GDI rendering I guess :wink:

The version of the audio decoder build for the 820 is special (ie build with an HPC ARM configuration, all the other are build with a Palm size PC configuration or a Pocket PC/Smartphone configuration) - perhaps there are some problems in the optimization for this platform ?

about COMI problems yes, if you can build a debug build, I'm sure it would help a lot :D
I'm not sure if I'm being clear on the cursor problem. The Jornada 820 uses a touchpad device similar to the one found on a notebook. It doesn't use a touchscreen, hence it has a mouse cursor. Not many other devices have mouse cursors. About the only other way to have a mouse pointer on a WinCE device is to use a mouse on different HPC, or use Deje's USB HID-Driver @ http://www.deje.gmxhome.de/software.html. This cursor likes to leave behind stuff. Has anyone tried running PocketScumm, and used a USB mouse on their Pocket PC to control it??? How did you test the cursor code? I don't really know how the mouse cursor is supposed to be handled under GAPI.

The + cursor drawn when you're in the menus seems to be drawn ok.

Is there any reason why the Pocket PC ARM audio decoder can't be used on the HPC? Does the Jornada 720 use the HPC decoder or the PPC decoder?
oh ok, I was talking about the internally managed ScummVM cursor - you should find a way to disable the Jornada cursor, if there is any :)

I think that the Jornada 720 work with the PocketPC version ... probably because it doesn't have the same OS than the 820 and some exports are missing for the 820 (not sure about this, but it was the problem in the first place I guess since the old PocketPC build did not work with the 820)
futaris wrote:
Success! I have created a GAPI library for the Jornada 820. It's not crash hot, but it does work with PocketScumm. I put a copy up at http://members.optusnet.com.au/futaris01/pocketscumm-j820/GX-J820.zip


Hi.
I am spanish and I own a hpc hp 710. The GAPI of BitBank, is a incompability library in my european device but now, I can play with PocketSCUMM + GX 820 very good !!! :D
Thanks.
l337_S33k3r · 02 Jul 2003, 14:00 UTC
Is there any way to run PocketSCUMM on full screen on J820?
At the moment, No. However, it should just be a small matter to modify the PocketScumm source code to support 640x480, and to add 2x filter support to PocketScumm (so the graphics are scaled up). However there will probably still be the problem with the mouse cursor.
sure, but I'm not planning to modify the video code for the moment (it's too messy, will only be useful for one device and the filter would just probably slow everything down and make it non enjoyable)
can you tell me where I have to look into source code to modifiy screen size? I would like to modify it by myself (if it's not forbidden...).
Maybe <A HREF=mailto:kardaszon@poczta.onet.pl>mail me</A>
Thanks in advance
Of course it's not forbidden :wink: as anonymous CVS is buggy for the moment, I suggest you grab the latest code on http://scummvm.sourceforge.net/daily/ - I have some instructions to build the whole thing on my site http://arisme.free.fr/PocketScumm/download.html - if you just want to build PocketScumm quickly, I'll send you a link to a .zip file with the precompiled libs/include (I don't include it on my page for possible licences issues) ... but I warn you, the display code is quite messy 8)
Anonymous wrote:
modifiy screen size?


The screen size of my european jornada 720 is perfect. Good job! :wink: If you want, you can read a small review of PocketScumm for HandheldPC ARM in my web: http://usuarios.lycos.es/enjoy/pocketscumm.htm

Image
Many thanks Arisme, and enjoy gaming with PocketScumm. :D