Chris McKillop wrote:
J. Scott Franko <> jsfranko@switch.com> > wrote:
If you change it in the enum directory, netmanager will fail since it is
ment to be run with the small stack.
So the recommended way is to slay and rerun? Will that change in the final
release? Is it me, or does it seem much harder to administer QRTP than QNX4?
Seems much different that handling our own startup script (sysinit) in QNX4.
Seems like more things are harder to reach. In QNX4, I started the network if I
wanted it, but now NTO starts the network for me, and if I don’t like what its
running, I have to kill it before I can start my own configuration. Maybe it’s
just me.
Well, actually, you can just turn it off totally by removing the net
include file in /etc/system/enum and just run it once in /etc/rc.d/rc.local.
I would actually like to see it work such that io-net and the drivers are
started but protocols get mounted after the enumerators are finished.
The above doesn’t work. ./swapfile doesn’t get created. Is that a problem?
If its ok, then the only problem is the need to sleep after calling io-net, as
described below:
I tired it with net there, and rc.config to slay io-net, and start it again, and
ifconfig and found that my configuration set in phlip had half disappeared. The
device tab lost its info, but the network tab still contained its settings. I used
ifconfig by hand once, and I set it in phlip once, but both times it dissappeard on
reboot.
So I put an ifconfig and a route add default in my rc.local, and it worked once. Then
I moved the net file to orig_net and rebooted, and it failed the ifconfig and route
saying socket: file or directory not found, and I didn’t see the messages about adding
…/swapfile.
Then I put net back and got the ./swapfile messages back, but ifconfig and route were
again complaining about no such directory or file, refering to socket, which I assume
was /dev/socket diretory created by io-net. I put a 2 second sleep after running
io-net and that didnt’ work. Finally a 5 second sleep worked.
Here’s my rc.local file now (with ip’s changed to protect the innocent):
slay -f io-net
io-net -del900 -p tcpip -p pppmgr
sleep 5
ifconfig en0 <my_ip> netmask 255.255.255.0 up
route add default <my_gateway>
/usr/sbin/inetd
This works. Some previous examples had said to use -p ttcpip but i think that was a
typoe as that is the “tiny” stack. The helpviewer page on io-net doesn’t list tcpip
(only ttcpip and 2 others) as an option in is -p section, but this works.
Hope this helps some people get the giant stack started!
Scott
mount -Tio-net /x86/lib/dll/npm-tcpip.so
in rc.local.
chris
–
cdm@qnx.com > “The faster I go, the behinder I get.”
Chris McKillop – Lewis Carroll –
Software Engineer, QSSL