Start Photon at the boot

Hi all,

I boot on a card flash, and I have all the files I need on the card.

When I start Photon manualy after the boot all is OK.
But when I try to start Photon automatically at the boot It does not work.

My buildfile of my boot image finished with :

Start /etc/rc.d/rc.local

[+session] sh /etc/rc.d/rc.local

Start Photon

[+session] start_photon &

Start the main shell

reopen /dev/con1
[+session] sh

In my file /etc/rc.d/rc.local I start my audio and network drivers

This is my start_photon script :

Photon &
on -w /dev/photon -W10

phfontFF -d /usr/photon/font_repository -c 20K -j -s 50K -F 10 -S 50 &
on -w /dev/phfont -W10

if test $ROTATION == 180; then

io-graphics -Tdevg-rotate90.so:devg-rotate90.so -g640x480x16 -dldevg-cyrix.s
o -I0 -d0x1078,0x104
else
io-graphics -g640x480x16 -dldevg-cyrix.so -I0 -d0x1078,0x104
fi

devi-hirun kbd fd -d/dev/kbd ps2 mousedev

pwm &
wmswitch &
pterm &


When I do “./ start_photon” at the command line, Photon start and pwm,
wmswitch, pterm are started.
When I do as I show you before, Photon started but pwm, wmswitch, pterm are
NOT started and i’m blocked in Photon (the only way to go back is
CTRL+SHIFT+ALT+BACKSPACE.

Thanks in advance for any advice.

Jeff HOFFMEYER

Some thoughts.
Possibly you are missing an &.
Start from the shell, and type in your command one by one exactly like they are in your script.
Possibly run the start_photon also in rc.local?
Or move it to last in your boot script.
See if you can open a shell via serial port or telnet, and inspect
the system state while it’s “blocked”.

On Fri, 22 Mar 2002 14:16:19 +0100, “Jeff HOFFMEYER” <jean-francois.hoffmeyer@schiller.fr> wrote:

Hi all,

I boot on a card flash, and I have all the files I need on the card.

When I start Photon manualy after the boot all is OK.
But when I try to start Photon automatically at the boot It does not work.

My buildfile of my boot image finished with :

Start /etc/rc.d/rc.local

[+session] sh /etc/rc.d/rc.local

Start Photon

[+session] start_photon &

Start the main shell

reopen /dev/con1
[+session] sh

In my file /etc/rc.d/rc.local I start my audio and network drivers

This is my start_photon script :

Photon &
on -w /dev/photon -W10

phfontFF -d /usr/photon/font_repository -c 20K -j -s 50K -F 10 -S 50 &
on -w /dev/phfont -W10

if test $ROTATION == 180; then

io-graphics -Tdevg-rotate90.so:devg-rotate90.so -g640x480x16 -dldevg-cyrix.s
o -I0 -d0x1078,0x104
else
io-graphics -g640x480x16 -dldevg-cyrix.so -I0 -d0x1078,0x104
fi

devi-hirun kbd fd -d/dev/kbd ps2 mousedev

pwm &
wmswitch &
pterm &


When I do “./ start_photon” at the command line, Photon start and pwm,
wmswitch, pterm are started.
When I do as I show you before, Photon started but pwm, wmswitch, pterm are
NOT started and i’m blocked in Photon (the only way to go back is
CTRL+SHIFT+ALT+BACKSPACE.

if start-photon is a script, den you might need to start it in the same way
as rc.local eg.
[+session] sh start_photon
not too sure of the syntax, you might havta trial & error a bit

Hope it helps,
Wen

“Jeff HOFFMEYER” <jean-francois.hoffmeyer@schiller.fr> wrote in message
news:a7faf2$g7n$2@inn.qnx.com

Hi all,

I boot on a card flash, and I have all the files I need on the card.

When I start Photon manualy after the boot all is OK.
But when I try to start Photon automatically at the boot It does not work.

My buildfile of my boot image finished with :

Start /etc/rc.d/rc.local

[+session] sh /etc/rc.d/rc.local

Start Photon

[+session] start_photon &

Start the main shell

reopen /dev/con1
[+session] sh

In my file /etc/rc.d/rc.local I start my audio and network drivers

This is my start_photon script :

Photon &
on -w /dev/photon -W10

phfontFF -d /usr/photon/font_repository -c 20K -j -s 50K -F 10 -S 50 &
on -w /dev/phfont -W10

if test $ROTATION == 180; then


io-graphics -Tdevg-rotate90.so:devg-rotate90.so -g640x480x16 -dldevg-cyrix.s
o -I0 -d0x1078,0x104
else
io-graphics -g640x480x16 -dldevg-cyrix.so -I0 -d0x1078,0x104
fi

devi-hirun kbd fd -d/dev/kbd ps2 mousedev

pwm &
wmswitch &
pterm &


When I do “./ start_photon” at the command line, Photon start and pwm,
wmswitch, pterm are started.
When I do as I show you before, Photon started but pwm, wmswitch, pterm
are
NOT started and i’m blocked in Photon (the only way to go back is
CTRL+SHIFT+ALT+BACKSPACE.

Thanks in advance for any advice.

Jeff HOFFMEYER
\