Valeriy E. Ushakov | 12 Aug 2006 15:25
Picon

Re: Few Jornada 690 questions

On Sat, Aug 12, 2006 at 14:23:37 +0200, Adam Wysocki via ArcaBit wrote:

> 1. When I boot without a serial console, immediately after hpcboot 
> attempts to boot the kernel Jornada says:
> 
> Booting WARM...
> Exception Event Code = 40
> TLB Miss/Invalid (load)
> 
> And reboots back to WinCE. When I boot with a serial console, it boots 
> fine. My Jornada is French, but I don't like it's keyboard layout, so 
> I've selected in hpcboot "European", maybe this is the case (does it 
> affect only the keyboard layout?).

Which hpcboot version are you using?

> 2. Suspending works okay, but unsuspending does not turn the display
> on.  I suspect it can be related to booting with a serial console.

Yes, it's a bug in the driver for the hd64461 video.

> 3. Is there a program or other possibility to turn the display off 
> and on? I've tried wsconsctl -da, but no option seems to be related.

I have written small wsblank utility (attached) to turn it on/off.
Yes, this functionality should really be integrated into wsconsctl.

> 4. I've calibrated my touch panel using tpctl, but in X it still 
> seems to be uncalibrated. Maybe there's an other utility for X 
> and other for the console?
(Continue reading)

Valeriy E. Ushakov | 24 Sep 2006 03:59
Picon

Blanking the screen (Re: Few Jornada 690 questions)

On Sat, Aug 12, 2006 at 17:25:38 +0400, Valeriy E. Ushakov wrote:

> > 3. Is there a program or other possibility to turn the display off 
> > and on? I've tried wsconsctl -da, but no option seems to be related.
> 
> I have written small wsblank utility (attached) to turn it on/off.
> Yes, this functionality should really be integrated into wsconsctl.

screenblank in current has just grown -b/-u (one-off blank/unblank)
options.

SY, Uwe
--

-- 
uwe <at> ptc.spbu.ru                         |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen

Adam Wysocki via ArcaBit | 13 Aug 2006 11:19
Picon

Re: Few Jornada 690 questions

12.08.06 uwe <at> ptc.spbu.ru wrote:

Hi, and thanks for the quick reply :)

> > And reboots back to WinCE. When I boot with a serial console, it boots 
> > fine. My Jornada is French, but I don't like it's keyboard layout, so 
> > I've selected in hpcboot "European", maybe this is the case (does it 
> > affect only the keyboard layout?).
> 
> Which hpcboot version are you using?

Newest from the CVS (.exe.uue, not compiled by myself).

> > 2. Suspending works okay, but unsuspending does not turn the display
> > on.  I suspect it can be related to booting with a serial console.
> 
> Yes, it's a bug in the driver for the hd64461 video.

I've fixed it by copying some stuff from hd64461video_attach() to the 
power hook. I don't know if all of this is really necessary (probably 
not), but it works. Patch attached.

> > 3. Is there a program or other possibility to turn the display off 
> > and on? I've tried wsconsctl -da, but no option seems to be related.
> 
> I have written small wsblank utility (attached) to turn it on/off.
> Yes, this functionality should really be integrated into wsconsctl.

Thanks, it works. I've done some integration, check wsconsctl.patch.

(Continue reading)

Valeriy E. Ushakov | 14 Aug 2006 04:49
Picon

Re: Few Jornada 690 questions

On Sun, Aug 13, 2006 at 11:19:47 +0200, Adam Wysocki via ArcaBit wrote:

> > > And reboots back to WinCE. When I boot with a serial console, it boots 
> > > fine. My Jornada is French, but I don't like it's keyboard layout, so 
> > > I've selected in hpcboot "European", maybe this is the case (does it 
> > > affect only the keyboard layout?).
> > 
> > Which hpcboot version are you using?
> 
> Newest from the CVS (.exe.uue, not compiled by myself).

Hmm, I think the version in CVS has a few bugs.

Try this one:
  http://snark.ptc.spbu.ru/~uwe/netbsd/jornada/hpcboot13-sh3-2006-01-16.zip

(I hate it that hpcboot needs external proprietary tools to compile,
and so updated in the tree only infrequently.  I can never quite
rememer which of the source level fixes have made it into the
committed binary).

> > > 2. Suspending works okay, but unsuspending does not turn the display
> > > on.  I suspect it can be related to booting with a serial console.
> > 
> > Yes, it's a bug in the driver for the hd64461 video.
> 
> I've fixed it by copying some stuff from hd64461video_attach() to the 
> power hook. I don't know if all of this is really necessary (probably 
> not), but it works. Patch attached.

(Continue reading)

Adam Wysocki via ArcaBit | 16 Aug 2006 18:32
Picon

Re: Few Jornada 690 questions

14.08.06 uwe <at> ptc.spbu.ru wrote:

Hi :)

Sorry for the late reply, but I've been messing around with my hpc a bit 
- bought 2 GB card, noticed that FFS in NetBSD definitely doesn't like me 
(the kernel, on i386, occasionally panics when writing to the card) and 
finally ended up with good, old, Linux ext2 root filesystem on Jornada.

> Try this one:
>   http://snark.ptc.spbu.ru/~uwe/netbsd/jornada/hpcboot13-sh3-2006-01-16.zip

It still doesn't work, but it's not a big problem - as long as NetBSD 
eventually boots to the login prompt.

> That's a wrong approach.  I've just committed a fix as hd64461video.c
> rev 1.36.

It works - quite strange, because I tried unblanking with wsblank (remotely, 
via ssh, so no typing mistakes are possible) which, as I see in the ioctl 
handler, also calls hd64461video_on, and it didn't worked. Anyway, now it's 
okay, thanks.

> > http://gallery.miauk.net/n/0014/dsc006.jpg
> > http://gallery.miauk.net/n/0014/dsc007.jpg
> > http://gallery.miauk.net/n/0014/dsc008.jpg
> > http://gallery.miauk.net/n/0014/dsc009.jpg
> 
> Strange.  I can only suggest to try some printf-debugging in j6x0tp.c
> Does it work better (if slighly off) if you don't calibrate the screen
(Continue reading)

Valeriy E. Ushakov | 16 Aug 2006 23:55
Picon

Re: Few Jornada 690 questions

Oops, forgot to answer the last question.

On Wed, Aug 16, 2006 at 18:32:31 +0200, Adam Wysocki via ArcaBit wrote:

> is there a method to load my custom font?

You can compile a custom kernel with a custom font.  E.g. I have in
mine:

    options FONT_VT220KOI8x10_KOI8_R

Check sys/dev/wsfont/wsfont.c and other files in that directory for
examples.

Alternatively you can uncomment

    pseudo-device wsfont

and use wsfontload(8) to load fonts (I haven't tried that with jornada
myself).

SY, Uwe
--

-- 
uwe <at> ptc.spbu.ru                         |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen

Alain Robillard | 24 Aug 2006 03:27
Picon
Favicon

Xhpc - middle and right click

Hello all,

the question was already raised in this mailling list but I couldn't find
the answer : in the documentation for Xhpc, it is sais that :

     The pointing device can be the touch panel, or USB mouse.  Touch panel
     supported on NEC mobile Gear Series.  USB mouse supported on Sharp
     Telios.

     the touch panel can emulate 3-button mouse.

     -just touch
                 = click left button

     -[win] + touch + 2
                 = click middle button

     -[win] + touch + 3
                 = click right button
     Also, you can use 4th and 5th button.

I tried this with Xhpc and Matchbox (Generic Kernel 3.0.1) and couldn't find
the trick.  Applications like xpdf use sometimes the right click for special
functions (xpdf needs right click to load files).

Regards

Alain

(Continue reading)

Valeriy E. Ushakov | 16 Aug 2006 23:32
Picon

Re: Few Jornada 690 questions

On Wed, Aug 16, 2006 at 18:32:31 +0200, Adam Wysocki via ArcaBit wrote:

> > That's a wrong approach.  I've just committed a fix as hd64461video.c
> > rev 1.36.
> 

> It works - quite strange, because I tried unblanking with wsblank

Well, in that state the driver didn't turn the screen on, but it
thought it was *not* blanked, so an unblanking request from wsblank
would be "optimized away".  Blanking it first to force internal state
update was a workaround.

> By the way, what's the status of the IrDA and the sound card drivers? And 
> one more thing - is there a method to load my custom font?

I think there should be some mails from me in the archive.  To summarize:

* IrDA.

scif(4) has two problems: it's not bus_space'ified, so it doesn't
support two instances of itself, and there's a bug in the driver that
causes it to lose incoming chars.  The first problem is easy to fix,
it's a pretty machnical change.  I had those mods in my tree, but
didn't want to commit them b/c of the second problem.  The second
problem can be observed if you try to run ppp over the serial, or try
to make a dial-out connection, e.g. to cu to another unix box.
Incoming chars are lost.  I made a few light-hearted attempts to fix
it, thinking that it could be a simple bug, but to no avail so far.
So with the mods that address the first problem and allow you to
(Continue reading)

Adam Wysocki via ArcaBit | 21 Aug 2006 21:23
Picon

Re: Few Jornada 690 questions

17.08.06 uwe <at> ptc.spbu.ru wrote:

> There's no sound *card* in sh3 jornadas.  There's an on-chip 8-bit DAC
> and one of its channels is hooked to the speaker.  You need to feed
> the DAC directly from the CPU.  This means that you need to have 8K
> interrupts per second to play even crappy lo-fi 8KHz 8bit audio.

I tried to do it in userspace (I'm new to NetBSD so writing a custom 
driver could be kind of challenge for now) and even managed to output 
some sound (and learned the hard way that securelevel greater than 0 
prevents readwrite /dev/mem accesses), but it seems that there's no 
easy way to get the userspace code executed at 8000 Hz. NetBSD doesn't 
seem to have a realtime scheduler (seems strange, so maybe I'm wrong) 
and setitimer() and usleep() on this CPU just doesn't work at this 
frequency even when reniced to -20. Maximum archieved frequency, 
both using setitimer() and usleep(), was 32 Hz.

[gophi <at> hpcsh ~/src]$ make test && sudo nice -n -20 ./test
cc -O   -o test test.c
us=3122254 (should be 1000000), freq=32 (should be 100)

[gophi <at> hpcsh ~/src]$ make test2 && sudo nice -n -20 ./test2
cc -O   -o test2 test2.c
us=3119995 (should be 1000000), freq=32 (should be 100)

(test.c and test2.c attached)

> There is on-chip DMAC that can do timed transfers using internal 
> counter-timer, but attempts to use it wedge the machine ~immediately.

(Continue reading)


Gmane