Window/Keyboard focus in Embedded Photon.

Background:
I’m attempting to embedd Photon on an Ampro LB/486SLC R1.03E w/386 Modular
BIOS. This is a PC/104 SBC and is quite ancient. The purpose of this
exercise is to see if we can provide an OS/app upgrade to an installed base
of a give device - without a HW update.
I’m using a 3/16/01 download of RTP - this is patch B I believe.
I AM able to boot and run Photon with ‘pterm’ running. From pterm I can run
other programs.

My Problem:
I’ve created a simple test photon program that simply has a text input box.
If I run this program from the pterm session, the text input box ‘looks’
like it has focus - but key presses do not show up in the text input box.
It’s as though my photon app does not have the focus.

Other Info:
*I am not running pwm or wmswitch.
*If I run my test Photon app from pterm on a desktop with a full blown RTP
install, I don’t have this prolem - the app gets focus and keypresses show
up in the text input box.
*Also, if I run phcalc from pterm on the embedded photon, phcalc receives
key input just fine.

My build file and the script used to load photon are listed below.

Any help is greatly appreciated,

Ed Theobald
Revis & Associates


\


My Build file:


THIS IS A MINIMAL NEUTRINO FLOPPY BOOT IMAGE BUILD FILE.

IT ALSO STARTS EIDE DRIVER AND MOUNTS THE HARD DRIVE.

type:

mkifs -v /boot/build/flbt01.bld /boot/fs/flbt.ifs

To look at the resulting image file, run this command:

dumpifs -v /boot/fs/flbt01.ifs

To copy to floppy (must be pre-formatted):

dinit -f /boot/fs/flbt01.ifs /dev/fd0

This ‘search=’ changes search path only for files included in this build

file.
[search=/sbin:/usr/sbin:/bin:/usr/bin:/lib:/lib/dll:/boot/sys]

[virtual=x86,bios +compress] .bootstrap = {
startup-bios
PATH=/proc/boot:/myph/photon/bin:/mybin LD_LIBRARY_PATH=/proc/boot:/mylib
procnto
}

[+script] .script = {
devc-con -e &
reopen /dev/con1
devb-eide
waitfor /dev/hd0t79 20
mount /dev/hd0t79 /
[+session] ksh
}
[type=link]/usr/lib/ldqnx.so.1=/proc/boot/libc.so
[type=link]/usr/lib/libcam.so.1=/proc/boot/libcam.so.1

libc.so
libcam.so
io-blk.so
cam-disk.so
fs-qnx4.so
cam-cdrom.so
fs-cd.so
pci-bios

[data=copy]
mount
devb-eide
devc-con
ksh
ls
cat

End of build file



\


My script to start photon and pterm:


this mounts the filesystem file that contains the base packages.

mount /boot/fs/qnxbase.qfs /pkgs/base

this brings about the base packages that give us /bin, /sbin, /usr/bin,

/usr/photon, etc.

(I’ve copied fs-pkg to the root so it is easier to get at! :slight_smile:

/fs-pkg -a/pkgs/base/safe-config/etc/system/package/packages

set our path and library-path to cover all options for active packages.

export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/photon/bin:/X11R6/bin
export
LD_LIBRARY_PATH=/usr/X11R6/lib:/usr/photon/lib:/usr/photon/dll:/lib:/lib/dll
:/usr/lib

set this before we attempt to load photon.

export PHOTON_PATH=/usr/photon
devc-pty -n 10
devc-ser8250

load photon server

Photon -g &
on -w /dev/photon -W10

Load input driver

devi-hirun kbd fd -d /dev/kbd

Load font server

phfontFA &
on -w /dev/phfont -W10

set graphics mode and load driver for svga

io-graphics -g640x480x16 -dldevg-svga.so -I0 -d0x0,0x0;

load programs

pterm &