All,
I’ve finally been able to get tinit to work on an rtp target:
-
Make sure you have /etc/config/ttys in your target. Mine contains a
single entry:
/ser1 “/bin/login” qansi-m on
-
in the build file add:
[+session] PATH=/proc/boot:/bin LD_LIBRARY_PATH=/proc/boot tinit -D
/dev/null
- make sure you include login/logout in your build
Note that the -D option is not documented, nor is /etc/config/ttys. I have
no idea what the -D option does. Comments, anyone?
Issam
system
2
Issam Haddad <ihaddad@asurent.com> wrote:
All,
I’ve finally been able to get tinit to work on an rtp target:
-
Make sure you have /etc/config/ttys in your target. Mine contains a
single entry:
/ser1 “/bin/login” qansi-m on
-
in the build file add:
[+session] PATH=/proc/boot:/bin LD_LIBRARY_PATH=/proc/boot tinit -D
/dev/null
- make sure you include login/logout in your build
Note that the -D option is not documented, nor is /etc/config/ttys. I have
no idea what the -D option does. Comments, anyone?
The -D filename is the debug output. Without having this
the behaviour of the program is to immediately background
itself and turn into a daemon.
Thomas
Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com Neutrino Development Group
(613)-591-0931 http://www.qnx.com/~thomasf
I also found out that I need to start it without the [+session] construct,
otherwise, I’d lose the Ctrl-C handling…
<thomasf@qnx.com> wrote in message news:9jha70$hq5$2@nntp.qnx.com…
Issam Haddad <> ihaddad@asurent.com> > wrote:
All,
I’ve finally been able to get tinit to work on an rtp target:
-
Make sure you have /etc/config/ttys in your target. Mine contains a
single entry:
/ser1 “/bin/login” qansi-m on
-
in the build file add:
[+session] PATH=/proc/boot:/bin LD_LIBRARY_PATH=/proc/boot tinit -D
/dev/null
- make sure you include login/logout in your build
Note that the -D option is not documented, nor is /etc/config/ttys. I
have
no idea what the -D option does. Comments, anyone?
The -D filename is the debug output. Without having this
the behaviour of the program is to immediately background
itself and turn into a daemon.
Thomas
Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com > Neutrino Development Group
(613)-591-0931 > http://www.qnx.com/~thomasf