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>

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

A bit from the Phindow FAQ I used to maintain back in my Tech.
Support days:

Issue (C.1): Phindows server failing with “Connection Error 19”
Source: various
Response: Error 19 is ENODEV, which means phrelay was unable
to connect to or create a Photon session. This can have
various meanings:

  1. There are not enough Photon licenses on the QNX
    node.
  2. You may have run out of memory, or
    processes, or sessions – check the output of
    sin, and adjust the appropriate
    resource in your boot image.

Something to check, anyway.



Norbert Black
QSSL Training Services

A bit from the Phindow FAQ I used to maintain back in my Tech.
Support days:

Issue (C.1): Phindows server failing with “Connection Error 19”
Source: various
Response: Error 19 is ENODEV, which means phrelay was unable
to connect to or create a Photon session. This can have
various meanings:

  1. There are not enough Photon licenses on the QNX
    node.
  2. You may have run out of memory, or
    processes, or sessions – check the output of
    sin, and adjust the appropriate
    resource in your boot image.

Something to check, anyway.

I checked this FAQ when I got the error. My license file has a valid
phrt.###
entry and I can run ph (see original post for messages) which gives a sin
of:

sin

SID PID PROGRAM PRI STATE BLK CODE DATA
– – Microkernel — ----- — 12976 0
0 1 sys/Proc32 30f READY — 122k 1175k
0 2 sys/Slib32 10r RECV 0 53k 4096
0 4 /bin/Fsys 29r RECV 0 77k 6537k
0 5 /bin/Fsys.diskonchip 28r RECV 0 28k 36k
0 8 idle 0r READY — 0 40k
0 15 file://1/bin/Dev 24f RECV 0 32k 94k
0 19 file://1/bin/Dev.pty 20r RECV 0 12k 32k
0 22 file://1/bin/Pipe 10r RECV 0 16k 32k
0 24 file://1/bin/Dev.ser 20r RECV 0 16k 32k
0 27 file://1/bin/syslogd 10o RECV 0 36k 32k
0 31 file://1/bin/Pcmcia.generic 20f RECV 0 49k 28k
0 34 file://1/bin/Net 23r RECV 0 32k 73k
0 37 file://1/bin/Net.ether589 20r RECV 0 28k 36k
0 39 file://1/bin/Fsys.ata 21o RECV 0 24k 20k
0 54 file://1/bin/Socklet 10r RECV 0 114k 151k
0 67 file://1/bin/inetd 10o RECV 68 36k 36k
0 72 file://1/bin/tinit 10o RECV 0 16k 20k
0 84 file://1//datamanapp2 11o RECV 0 98k 114k
0 90 file://1/bin/telnetd 10o RECV 93 26k 53k
1 92 file://1/bin/sh 10o REPLY 15 47k 36k
0 110 file://1/bin/telnetd 10o RECV 113 26k 53k
2 112 file://1/bin/sh 10o WAIT -1 47k 40k
2 125 file://1/
/photon/bin/Photon 10r RECV 0 57k 28k
3 129 file://1/*/bin/phfontpfr 10r RECV 0 126k 262k
2 147 file://1/bin/Input 12o RECV 0 30k 28k
4 149 file://1/usr/photon/bin/pwm 10o REPLY 0 81k 49k
2 150 file://1/bin/Input 10o RECV 0 30k 28k
5 288 file://1/usr/photon/bin/pdm 10o REPLY 125 135k 163k
2 424 file://1/bin/sin 10o REPLY 1 45k 49k

So, it looks like all the lights are on but no one is home…:slight_smile:

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>

Lee R. Copp <Lee.R.Copp@michiganscientific.com> wrote:

A bit from the Phindow FAQ I used to maintain back in my Tech.
Support days:

Issue (C.1): Phindows server failing with “Connection Error 19”
Source: various
Response: Error 19 is ENODEV, which means phrelay was unable
to connect to or create a Photon session. This can have
various meanings:

  1. There are not enough Photon licenses on the QNX
    node.
  2. You may have run out of memory, or
    processes, or sessions – check the output of
    sin, and adjust the appropriate
    resource in your boot image.

Something to check, anyway.

I checked this FAQ when I got the error. My license file has a valid
phrt.###
entry and I can run ph (see original post for messages) which gives a sin
of:
[snip]
2 125 file://1//photon/bin/Photon 10r RECV 0 57k 28k
3 129 file://1/
/bin/phfontpfr 10r RECV 0 126k 262k
2 147 file://1/bin/Input 12o RECV 0 30k 28k
4 149 file://1/usr/photon/bin/pwm 10o REPLY 0 81k 49k
2 150 file://1/bin/Input 10o RECV 0 30k 28k
5 288 file://1/usr/photon/bin/pdm 10o REPLY 125 135k 163k
2 424 file://1/bin/sin 10o REPLY 1 45k 49k

So, it looks like all the lights are on but no one is home…> :slight_smile:

OK, it’s certainly not either of those, then. Out of my depth,
I’m afraid. Hopefully someone a bit more familiar with the
current Phindow source will be able to suggest something.

Best of luck.


Norbert Black
QSSL Training Services

OK, it’s certainly not either of those, then. Out of my depth,
I’m afraid. Hopefully someone a bit more familiar with the
current Phindow source will be able to suggest something.

I don’t think it is a Phindows problem. It seems more like
a photon or setup problem. I’m starting to wonder if this
can even be done. I mean, can you run photon without
a video/mouse/keyboard?? Everyone may be wondering
what the point would be but it seems pretty apparent that
a ‘virtual’ desktop or gui on a black box with an interface
provided by Phindows to the dominant OS on the planet
would be a good thing.

Best of luck.

Thanks.

Later…

~ 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 (Fax)
~ http://www.michiganscientific.com
~ mailto:<Lee.R.Copp@MichiganScientific.com>

Lee R. Copp <Lee.R.Copp@michiganscientific.com> wrote:

I mean, can you run photon without
a video/mouse/keyboard??

On the machine hosting the Photon session? Yep – happens all
the time. The normal setup is that you have a remote
display/input devices (via Phindows or phditto) providing a way
of seeing the Photon session. I’ve heard of this being used many
many times for diagnostic purposes on embedded systems that lack
displays and input devices, but need to provide diagnostics
displays to service personel.


Norbert Black
QSSL Training Services

On 9 Jan 2001 21:56:54 GMT, Norbert Black <nblack@qnx.com> wrote:

On the machine hosting the Photon session? Yep – happens all
the time. The normal setup is that you have a remote
display/input devices (via Phindows or phditto) providing a way
of seeing the Photon session. I’ve heard of this being used many
many times for diagnostic purposes on embedded systems that lack
displays and input devices, but need to provide diagnostics
displays to service personel.

Thats the goal I am shooting for. Another poster answered my question
on another thread. I turned on debugging for phrelay and it told me I
needed ph.setup so now I have things up and running. I’m in 640x480
4bit color but it is working. phrelay also acts as the
keyboard,video,mouse so that is cool. I would lilke to get phrelay to
provide 1024x768 with 16 bit color so any help on that would be
appreciated.

Thanks.

Previously, Norbert Black wrote in comp.os.qnx:

2 125 file://1//photon/bin/Photon 10r RECV 0 57k 28k
3 129 file://1/
/bin/phfontpfr 10r RECV 0 126k 262k
2 147 file://1/bin/Input 12o RECV 0 30k 28k
4 149 file://1/usr/photon/bin/pwm 10o REPLY 0 81k 49k
2 150 file://1/bin/Input 10o RECV 0 30k 28k
5 288 file://1/usr/photon/bin/pdm 10o REPLY 125 135k 163k
2 424 file://1/bin/sin 10o REPLY 1 45k 49k

Oooh… bad karma… Input should’nt be required on a phindows-only system since
Input manages local hardware (ie. mouse, keyboard).

The entire photon system should get started up by phrelay, all you need is
inetd and a phrelay line in inetd.conf. See my other response for the actual
files required for a QNX4/Photon “black box” scenario.

Cheers,
Camz.


Martin Zimmerman camz@passageway.com
Camz Software Enterprises www.passageway.com/camz/qnx/
QNX Programming & Consulting

Previously, Lee R. Copp wrote in comp.os.qnx:

I don’t think it is a Phindows problem. It seems more like
a photon or setup problem. I’m starting to wonder if this
can even be done. I mean, can you run photon without
a video/mouse/keyboard??

Yes, it can be done. I’ve done it several times on SBC’s before,
infact, for remote embedded systems Phindows & PPP wind up being
esential.

You will need:
/usr/photon/bin/Aplib_s11
/usr/photon/bin/Photon
/usr/photon/bin/ph.setup
/usr/photon/bin/phfont
/usr/photon/bin/phfontphf
/usr/photon/bin/phlib_s11
/usr/photon/bin/phlogin
/usr/photon/bin/phrelay
/usr/photon/bin/pwm
/usr/photon/font/fontdir
/usr/photon/font/fontext
/usr/photon/font/fontmap
/usr/photon/font/fontopt
/usr/photon/font/mappings

You will also need any fonts that your application uses, and possible
the fonts used by phlogin. If you stick to .phf fonts, this is all you need
if you use .pfr or .ttf fonts you will also need /usr/photon/bin/phfontpfr or
/usr/photon/bin/phfontttf.

I beleive there is a bug in phrelay that prevents it from properly loading
Aplib_s11 the first time, you will probably need to run that in the sysinit
of the unit.

Of course, you will also need /etc/config/phrelay configured for your specific
appliation if you don’t intend on running the entire environment. If you do
want the entire environment, they you’ll also need pdm and probably pterm.

You don’t need Input or any of the Pg.whatever graphics drivers since
they are never executed.

Cheers,
Camz.


Martin Zimmerman camz@passageway.com
Camz Software Enterprises www.passageway.com/camz/qnx/
QNX Programming & Consulting

Yes, it can be done. I’ve done it several times on SBC’s before,
infact, for remote embedded systems Phindows & PPP wind up being
esential.

Thanks. I’ll add your info to my resources. I have it working now and
I am slowly adding things to the ‘mix’ to see how far I can take it.

~ 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>