In order to access an embedded target using Phindows, you must ensure that your embedded target is properly configured and that your buildfile contains at least the minimum set of required components. This topic provides an example of a basic buildfile.
The following components are required in order to allow Phindows to connect to your embedded target:
phrelay stream tcp nowait root /path_name/phrelay phrelay -x
where path_name is the correct path to phrelay. By default, phrelay is located in the following location: /usr/bin/phrelay.
###########################################################
##
## NOTES: A simple build script to allow a Phindows
## connection on an embedded device.
##
###########################################################
###########################################################
## START OF BUILD SCRIPT
###########################################################
inetd
phrelay
/etc/services
/usr/photon/bin/Photon
/usr/photon/bin/phlogin
#or phlogin2
###########################################################
## START OF ph SCRIPT
###########################################################
export PATH=/proc/boot:/bin:/sbin:/usr/bin:/usr/sbin:/usr/photon/bin
export PHOTON_PATH=/usr/photon
export PHFONT=/dev/phfont
export HOME=/root
waitfor $PHOTON
if test ! $PHOTON -ef $PHOTON; then
print "Unable to start windowing kernel.\n"
exit 1
fi
pwm &
bkgdmgr &
sleep 1
shelf &
###########################################################
## font support
###########################################################
/usr/photon/font_repository/pcs12.phf
/usr/photon/font_repository/pcterm14.phf
/usr/photon/font_repository/pcterm12.phf
/usr/photon/font_repository/phcursor.phf
/usr/photon/font_repository/tt0005m_.ttf
/usr/photon/font_repository/tt2003m_.ttf
/usr/photon/font_repository/tt2001m_.ttf
These are the basic requirements for connecting to an embedded device with Phindows.