Hello,
I am trying to build a OS image for a cf-disk (IDE) on a x86 with QNX 6.3.2 PE.
Basically it is no problem, but I can’t get ksh and tinit to work together from my sysinit script.
(All apps are present on the cf disk.)
Here are snippets from my buildfile etc:
Buildfile:
[+script] startup-script = {
procmgr_symlink …/…/proc/boot/libc.so.2 /usr/lib/ldqnx.so.2
Not Needed for a 486
seedres
pci-bios &
waitfor /dev/pci
devb-eide &
waitfor /dev/hd0t77 10
mount /dev/hd0t77 /
waitfor /etc 10
[+session] ksh /etc/config/sysinit
}
/etc/config/sysinit:
#!/bin/sh
echo “Sysinit started”
export PATH=/sbin:/bin
devc-con -n4 &
reopen /dev/con1
pipe &
mqueue &
devc-pty &
export SYSNAME=nto
export TERM=qansi
tinit &
/etc/config/ttys:
con1 “/bin/ksh” qansi-m on
con2 “/bin/ksh” qansi-m on
con3 “/bin/ksh” qansi-m on
con4 “/bin/ksh” qansi-m on
I get no errors, but I can’t enter any command.
I see the message “Sysinit started”.
I also don’t get an “#” sign. I can switch to the 4 consoles, but I can’t
use them.
If I start the shells directly from the bootfile, all works fine.
What I basically want:
An OS image which only starts the IDE driver and mount /.
Then pass the control to a sysinit script.
The sysinit script should start (and restart using tinit) 4 consoles.
If that works, I want to add network etc.
But I can’t get these consoles to work from inside the sysinit script.
Thank you very much for the help !
Best regards
Fiffi