Phindows & 'black box' with no video, keyboard, mouse

Hi,

I’m trying to get phindows to connect to my QNX 4 ‘black box’ which has
been built from scratch by transfering ONLY the required files needed
for operation. My current ‘black box’ supports TCP/IP, ping, ftp, telenet,
PCMCIA network & flash, Disk-On-Chip, and serial PPP. Everything works
fine.

Now I need to hand transfer & setup photon to run on my ‘black box’ with
no video card or mouse or keyboard. I followed the guide found on qdn
at http://qdn.qnx.com/support/bok/solution.qnx?6453 but even though it
lists the supposed minimal files (I have added several more during
debugging) the ‘how’ is not layed out very well.

I have managed to get phrelay to respond to the phindows request but
phindows gives me:

Phindows - Accessing 192.168.0.103
Phindows - Waiting for phrelay on 192.168.0.103
Phindows - Rx Ready
Phindows - Rx Opened
Phindows - Preload Font Cache
Phindows - Preload Image Cache
Phindows - Send Connect
Phindows
Phindows - Connection Error 19

I think the problem is related to my crttrap file and the fact that it is
detecting
a:

vesabios.ms -i0x12;Pg.vga4 -HNqnx/crt -g640x480x4 -A0xA0000,0x10000 -WB80;#6
40,4
80,4,100,VGA 16 color

#!signature = D168E651

vesabios.ms -i0x12;Pg.vga4 -HNqnx/crt -g640x480x4 -A0xA0000,0x10000 -WB80;#6
40,4
80,4,100,VGA 16 color

even though it has no video card.

Shouldn’t there be a null type of setting I can use as my crttrap file?? I
would
think I could specify some ‘ghost’ super vga 1024x768x16 mode with normal
mouse
and keyboard without actually having the devices…

I can run ph by hand with debugging on and it gives me this:

ph -v -s

+ getopts n:svc opt -s -v

  • test -z -a -z
  • test ! -r /etc/config/trap/crt.1
  • test ! /dev/photon -ef /dev/photon
  • test root
  • Photon
  • test 0 -ne 0
  • typeset -i i=0
  • test ! /dev/photon -ef /dev/photon -a 0 -lt 5
  • unset i
  • test ! /dev/photon -ef /dev/photon
  • test ! /dev/phfont -ef /dev/phfont
  • phfont
  • typeset -i i=0
  • test ! /dev/phfont -ef /dev/phfont -a 0 -lt 5
  • sleep 1
    phfontphf: invalid font directory ‘//1/qnx4/photon/font’
  • let i=i+1
  • test ! /dev/phfont -ef /dev/phfont -a 1 -lt 5
  • sleep 1
  • let i=i+1
  • test ! /dev/phfont -ef /dev/phfont -a 2 -lt 5
  • sleep 1
  • let i=i+1
  • test ! /dev/phfont -ef /dev/phfont -a 3 -lt 5
  • sleep 1
  • let i=i+1
  • test ! /dev/phfont -ef /dev/phfont -a 4 -lt 5
  • sleep 1
  • let i=i+1
  • test ! /dev/phfont -ef /dev/phfont -a 5 -lt 5
  • unset i
  • test ! /dev/phfont -ef /dev/phfont
  • print Unable to start font server
    Unable to start font server
  • print Please confirm that Photon installed properly
    Please confirm that Photon installed properly
  • unset USER_NAME
  • exit 1

I created the /usr/photon/font like it said in the qdn but it
didn’t like it so I created the qnx4 folder and copied the
font files and this is what I get:

ph -v -s

  • getopts n:svc opt -v -s

  • let phsafe=1

  • PHWMSAFE=-n

  • getopts n:svc opt -v -s

  • test -z -a -z

  • test ! -r /etc/config/trap/crt.1

  • test ! /dev/photon -ef /dev/photon

  • test ! /dev/phfont -ef /dev/phfont

  • test

  • [ /dev/photon = /dev/photon ]

  • [ 1 = 0 ]

  • phin -TG -q

  • crttrap safe

  • phin -TK -q

  • test

  • test /dev/photon -ef /dev/photon

  • test root

  • export PHSTART=1

  • typeset+ -i phin i=0 -qPpwm

  • phin -TK -q
    ++ exec unset pwm i -n

  • typeset -i i=0

  • phin -qPpwm

  • test 0 -lt 30

  • sleep 1

  • let i=i+1

  • phin -qPpwm

  • test 1 -lt 30

  • sleep 1

  • let i=i+1

  • phin -qPpwm

  • test 2 -lt 30

  • sleep 1

  • let i=i+1

  • phin -qPpwm

  • test 3 -lt 30

  • test 29 -lt 30

  • sleep 1

  • let i=i+1

  • phin -qPpdm

  • test 30 -lt 30

  • unset i

  • [ 0 != 0 ]

  • test -r /etc/config/trap/run.1

  • test -r /etc/config/trap/run.1

  • [ 1 = 0 ]

  • unset USER_NAME

  • exit 0+ sleep 1

My bottom line:

How do I install photon by HAND with no video/mouse/keyboard??
How do I get it to work with Phindows??

Thanks…

~ Lee R. Copp
~ Project Engineer (EE/ME)
~ Michigan Scientific Corp.
~ 321 East Huron St.
~ Milford, MI 48381
~ 248-685-3939 x109 (V), 248-684-5406 (Fx)
~ http://www.michiganscientific.com
~ mailto:<Lee.R.Copp@MichiganScientific.com>

In article <93d8bs$94l$1@inn.qnx.com>,
Lee R. Copp <Lee.R.Copp@MichiganScientific.com> wrote:

Hi,

I’m trying to get phindows to connect to my QNX 4 ‘black box’ which has
been built from scratch by transfering ONLY the required files needed
for operation. My current ‘black box’ supports TCP/IP, ping, ftp, telenet,
PCMCIA network & flash, Disk-On-Chip, and serial PPP. Everything works
fine.

Now I need to hand transfer & setup photon to run on my ‘black box’ with
no video card or mouse or keyboard. I followed the guide found on qdn
at > http://qdn.qnx.com/support/bok/solution.qnx?6453 > but even though it
lists the supposed minimal files (I have added several more during
debugging) the ‘how’ is not layed out very well.

I have managed to get phrelay to respond to the phindows request but
phindows gives me:

Phindows - Accessing 192.168.0.103
Phindows - Waiting for phrelay on 192.168.0.103
Phindows - Rx Ready
Phindows - Rx Opened
Phindows - Preload Font Cache
Phindows - Preload Image Cache
Phindows - Send Connect
Phindows
Phindows - Connection Error 19

errno 19 is ‘No such device’
(probably looking for /dev/photon)

I think the problem is related to my crttrap file and the fact that it is
detecting

No. A separate Photon session started by phrelay will not run
crttrap nor inputtrap. phrelay acts as keyboard, mouse, and video
for its Photon session.

Change the phrelay commandline (probably in inetd.conf) and add
-D/tmp/debugfile -VVVVV
try connecting and then look at the errors in /tmp/debugfile


Garry Turcotte (R&D)
QNX Software Systems, Ltd.

On 9 Jan 2001 16:00:15 GMT, garry@qnx.com (Garry Turcotte) wrote:

errno 19 is ‘No such device’
(probably looking for /dev/photon)

Ok.

No. A separate Photon session started by phrelay will not run
crttrap nor inputtrap. phrelay acts as keyboard, mouse, and video
for its Photon session.

Ah…thanks. I was hoping it was something like that but the docs
weren’t to clear.

Change the phrelay commandline (probably in inetd.conf) and add
-D/tmp/debugfile -VVVVV
try connecting and then look at the errors in /tmp/debugfile

That did the trick. It needed the ph.setup file and I hadn’t
transferred it over. Once I did that phindows works fine
now.

Is there any way to change the video options?? Right now I
get 640x480 with 4 bit color which is ok but 1024x768 with
16bit color would be great. Since it is just a ‘virtual’ desktop
I would think you should be able to make it whatever you want.

Garry Turcotte (R&D)
QNX Software Systems, Ltd.

Thanks Garry…:slight_smile:

In article <3a5c78de.63283949@inn.qnx.com>,
Lee R. Copp <Lee.R.Copp@MichiganScientific.com> wrote:

Is there any way to change the video options?? Right now I
get 640x480 with 4 bit color which is ok but 1024x768 with
16bit color would be great. Since it is just a ‘virtual’ desktop
I would think you should be able to make it whatever you want.

You can resize the phindows window, or add -w 1024 -h 768
to the commandline. However, I believe phindows only
supports 8-bit colour.


Garry Turcotte (R&D)
QNX Software Systems, Ltd.

You can resize the phindows window, or add -w 1024 -h 768
to the commandline. However, I believe phindows only
supports 8-bit colour.

Resizing the phindows does the trick nicely since it gives you
a much larger window then what is visible. My QNX development
machine is a full blown PC with video/mouse/keyboard running
in 1024x768 with 24 bit color but my windows machine is running
1600x1200 with 32 bit color. So, I get to use 1600x1200 through
phindows to the smaller desktop…pretty cool.

Thanks again…

~ Lee R. Copp
~ Project Engineer (EE/ME)
~ Michigan Scientific Corp.
~ 321 East Huron St.
~ Milford, MI 48381
~ 248-685-3939 x109 (V), 248-684-5406 (Fx)
~ http://www.michiganscientific.com
~ mailto:<Lee.R.Copp@MichiganScientific.com>