Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - network driver startup script problem: (5 Items)
   
network driver startup script problem  
I had the following scripts in my rc.local:

io-net -d speedo -p tcpip
waitfor /dev/io-net/en0
mount -T io-net /lib/dll/npm-qnet-compat.so bind=en0
ifconfig en0 *.*.*.*


But when the target started, it gave me the following error:
Unable to init dll devn-speedo: Resource busy
...

But after logged in, i retried "io-net -d speedo -p tcpip", no problem then.

thx
Eric
RE: network driver startup script problem  

> -----Original Message-----
> From: Eric Dong [mailto:eric.dongxx@gmail.com]
> Sent: June 29, 2008 5:14 AM
> To: drivers-networking
> Subject: network driver startup script problem
> 
> I had the following scripts in my rc.local:
> 
> io-net -d speedo -p tcpip
> waitfor /dev/io-net/en0
> mount -T io-net /lib/dll/npm-qnet-compat.so bind=en0

The mount command is not correct. It has to be:

 mount -T io-net -o bind=en0 /lib/dll/npm-qnet-compat.so

> ifconfig en0 *.*.*.*
> 
> 
> But when the target started, it gave me the following error:
> Unable to init dll devn-speedo: Resource busy

Sounds to me an io-net (with devn-speedo loaded) is already running. QNX
native start by default will scan the hardware and start proper driver.
Did you do anything to prevent that? You can try to a "slay io-net" at
the beginning of your rc.local see if that help.

> ...
> 
> But after logged in, i retried "io-net -d speedo -p tcpip", no problem
then.
> 
> thx
> Eric
> 
> _______________________________________________
> Networking Drivers
> http://community.qnx.com/sf/go/post9829
Re: RE: network driver startup script problem  
thx, still the problem.
basically, i wanna start two network cards, one wired, the other wireless, both with the tcpip stack. my script as 
follows:

io-net -d speedo -p tcpip -p qnet-compat bind=en0
waitfor /dev/io-net/en0
ifconfig en0 *.*.*.* netmask ...
mount -o channel=11,network=mywork,mode=adhoc -T io-net devn-orinoco.so 
waitfor /dev/io-net/en1
ifconfig en1 *.*.*.* netmask ...

thx
Eric
RE: RE: network driver startup script problem  
If you boot you target, login as root, and run your script, does it
works? Personally, I would put a "waitfor /dev/socket/1" after waiting
for en0 comes up.

Also, the string after "mount -o" (channel=11,network=mywork,mode=alhoc)
should be no space before and after comma. It looks okay in your script,
but I just want to double check.

> -----Original Message-----
> From: Eric Dong [mailto:eric.dongxx@gmail.com]
> Sent: June 30, 2008 9:16 AM
> To: drivers-networking
> Subject: Re: RE: network driver startup script problem
> 
> thx, still the problem.
> basically, i wanna start two network cards, one wired, the other
wireless, both
> with the tcpip stack. my script as follows:
> 
> io-net -d speedo -p tcpip -p qnet-compat bind=en0
> waitfor /dev/io-net/en0
> ifconfig en0 *.*.*.* netmask ...
> mount -o channel=11,network=mywork,mode=adhoc -T io-net
devn-orinoco.so
> waitfor /dev/io-net/en1
> ifconfig en1 *.*.*.* netmask ...
> 
> thx
> Eric
> 
> _______________________________________________
> Networking Drivers
> http://community.qnx.com/sf/go/post9852
Re: RE: RE: network driver startup script problem  
thx, u are right. when i logged in, i ran the rc.local, the script worked. but during the boot stage, still the same 
error. 

another strange problem, after setup the orinoco wifi card, i tried the ping function from another adhoc host, initially
 the qnx machine could respond, but after that, it seemed that the orinoco wifi card stops working. what is the reason 
here? only after a few ping packets, and the card didnot work any more?

Eric