ifconfig error

Hi,

I ran into a problem with the network configuration on QNX6.1:

We use an American Predator Raptor EBX board with a Intel 440BX chipset and
Intel 82559ER network controller.
(http://www.americanpredator.com/products/industrial_controllers/raptor_ebx.
html)

I created a bootimage containing the following lines:

io-net -d speedo -p tcpip &
waitfor /dev/io-net/en0 60
ifconfig en0 172.29.9.18 &

However at times the during bootup the following error message is reported:

ifconfig: socket: no such file or directory. On one particular board the
error is reproducible (4 out of 5 times of booting), on others the problem
is intermittend (every couple of days) on others again the error never
occured. Does anyone have suggestions?

Thanks,
Marcus

io-net -d speedo -p tcpip &
waitfor /dev/io-net/en0 60
ifconfig en0 172.29.9.18 &

io-net -d speedo -p tcpip
if_up -s 1 -r 60 en0
ifconfig en0 172.29.9.18

Drop the & on io-net, it will detach itself once it has done the loading
of the DLLs. The if_up actually ensures that the socket layer is aware
of the interface while the waitfor only ensures that the driver is loaded.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Chris,
do you by any chance know why the different mothervoards behave so
different. Apparently does the network driver on some machines load faster
than on others; and can it really take a minute or more to load the speedo
driver.

Thanks,
Marcus

“Chris McKillop” <cdm@qnx.com> wrote in message
news:bov562$rtv$1@nntp.qnx.com

io-net -d speedo -p tcpip &
waitfor /dev/io-net/en0 60
ifconfig en0 172.29.9.18 &


io-net -d speedo -p tcpip
if_up -s 1 -r 60 en0
ifconfig en0 172.29.9.18

Drop the & on io-net, it will detach itself once it has done the loading
of the DLLs. The if_up actually ensures that the socket layer is aware
of the interface while the waitfor only ensures that the driver is loaded.

chris


Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Marcus Daiber <mdaiber@ziimaging.com> wrote:

Chris,
do you by any chance know why the different mothervoards behave so
different. Apparently does the network driver on some machines load faster
than on others; and can it really take a minute or more to load the speedo
driver.

It will likly depend on the phy (phyiscal layer) and how it does the
negotiation with the other side of the connection. If you know the speed
and duplex of the connection ahead of time you can try to force it on the
command line to the driver, that can speed things up.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Chris,
something is not working there, I modified my build and tried your solution,
but I get only the two error messages:

if_up : socket : No such file or directory
ifconfig : socket : No such file or directory

When I start if_up on the command line after the boot is completed is get
the same error. However I can start ifconfig successfully. I will revert
back to my initial solution using waitfor and just remove the timeout.

Any other suggestions?

Thanks,
Marcus

“Chris McKillop” <cdm@qnx.com> wrote in message
news:bov562$rtv$1@nntp.qnx.com

io-net -d speedo -p tcpip &
waitfor /dev/io-net/en0 60
ifconfig en0 172.29.9.18 &


io-net -d speedo -p tcpip
if_up -s 1 -r 60 en0
ifconfig en0 172.29.9.18

Drop the & on io-net, it will detach itself once it has done the loading
of the DLLs. The if_up actually ensures that the socket layer is aware
of the interface while the waitfor only ensures that the driver is loaded.

chris


Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

In article <bp3i4g$bvp$1@inn.qnx.com>, mdaiber@ziimaging.com says…

Chris,
something is not working there, I modified my build and tried your solution,
but I get only the two error messages:

if_up : socket : No such file or directory
ifconfig : socket : No such file or directory

When I start if_up on the command line after the boot is completed is get
the same error. However I can start ifconfig successfully. I will revert
back to my initial solution using waitfor and just remove the timeout.

Any other suggestions?

Thanks,
Marcus

“Chris McKillop” <> cdm@qnx.com> > wrote in message
news:bov562$rtv$> 1@nntp.qnx.com> …

io-net -d speedo -p tcpip &
waitfor /dev/io-net/en0 60
ifconfig en0 172.29.9.18 &

io-net -d speedo -p ttcpip if=en0:172.29.9.18:255.255.0.0

:slight_smile:

Seriously

Did you include that library into image or is it already available from disk?

Eduard

io-net -d speedo -p tcpip
if_up -s 1 -r 60 en0
ifconfig en0 172.29.9.18

Drop the & on io-net, it will detach itself once it has done the loading
of the DLLs. The if_up actually ensures that the socket layer is aware
of the interface while the waitfor only ensures that the driver is loaded.

chris


Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

\

Marcus Daiber <mdaiber@ziimaging.com> wrote:

Chris,
something is not working there, I modified my build and tried your solution,
but I get only the two error messages:

if_up : socket : No such file or directory

You did take the & away from the end of io-net command line right?

chris

\

Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Yes Sir,

I simply copied and pasted your solution.

Thanks,
Marcus

“Chris McKillop” <cdm@qnx.com> wrote in message
news:bp4d99$7as$1@nntp.qnx.com

Marcus Daiber <> mdaiber@ziimaging.com> > wrote:
Chris,
something is not working there, I modified my build and tried your
solution,
but I get only the two error messages:

if_up : socket : No such file or directory

You did take the & away from the end of io-net command line right?

chris

\

Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Eduard,

yes libsocket is installed.

Thanks,

Marcus

“ed1k” <ed1k@humber.bay> wrote in message
news:MPG.1a1f62e7a5362b85989705@inn.qnx.com

In article <bp3i4g$bvp$> 1@inn.qnx.com> >, > mdaiber@ziimaging.com > says…
Chris,
something is not working there, I modified my build and tried your
solution,
but I get only the two error messages:

if_up : socket : No such file or directory
ifconfig : socket : No such file or directory

When I start if_up on the command line after the boot is completed is
get
the same error. However I can start ifconfig successfully. I will revert
back to my initial solution using waitfor and just remove the timeout.

Any other suggestions?

Thanks,
Marcus

“Chris McKillop” <> cdm@qnx.com> > wrote in message
news:bov562$rtv$> 1@nntp.qnx.com> …

io-net -d speedo -p tcpip &
waitfor /dev/io-net/en0 60
ifconfig en0 172.29.9.18 &

io-net -d speedo -p ttcpip if=en0:172.29.9.18:255.255.0.0

:slight_smile:

Seriously

[quote:“if_up docu”]
The if_up utility requires the libsocket.so shared library.

Did you include that library into image or is it already available from
disk?

Eduard



io-net -d speedo -p tcpip
if_up -s 1 -r 60 en0
ifconfig en0 172.29.9.18

Drop the & on io-net, it will detach itself once it has done the
loading
of the DLLs. The if_up actually ensures that the socket layer is
aware
of the interface while the waitfor only ensures that the driver is
loaded.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I
get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/




[/quote]

Eduard,

It is part of the build.

Marcus
“ed1k” <ed1k@humber.bay> wrote in message
news:MPG.1a1f62e7a5362b85989705@inn.qnx.com

In article <bp3i4g$bvp$> 1@inn.qnx.com> >, > mdaiber@ziimaging.com > says…
Chris,
something is not working there, I modified my build and tried your
solution,
but I get only the two error messages:

if_up : socket : No such file or directory
ifconfig : socket : No such file or directory

When I start if_up on the command line after the boot is completed is
get
the same error. However I can start ifconfig successfully. I will revert
back to my initial solution using waitfor and just remove the timeout.

Any other suggestions?

Thanks,
Marcus

“Chris McKillop” <> cdm@qnx.com> > wrote in message
news:bov562$rtv$> 1@nntp.qnx.com> …

io-net -d speedo -p tcpip &
waitfor /dev/io-net/en0 60
ifconfig en0 172.29.9.18 &

io-net -d speedo -p ttcpip if=en0:172.29.9.18:255.255.0.0

:slight_smile:

Seriously

[quote:“if_up docu”]
The if_up utility requires the libsocket.so shared library.

Did you include that library into image or is it already available from
disk?

Eduard



io-net -d speedo -p tcpip
if_up -s 1 -r 60 en0
ifconfig en0 172.29.9.18

Drop the & on io-net, it will detach itself once it has done the
loading
of the DLLs. The if_up actually ensures that the socket layer is
aware
of the interface while the waitfor only ensures that the driver is
loaded.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I
get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/




[/quote]