problems getting hostname to work

I’m having problems getting hostname to work in QNX6 running on a MCP750
PowerPC board. Basically, i’ve built a target QNX image which starts the
network (io-net) and QNET drivers and includes the necessary system
libraries, such as devn-tulip.so, npm-ttcpip.so, npm-qnet.so etc. So far
i’ve got the board booting into QNX however whenever I try and set the
hostname (via ‘hostname’) it returns nothing and a recheck of the set
hostname (ie. by typing ‘hostname’ on its own) similarly returns nothing.
Also a check of the set hostname via ‘uname -a’ always returns localhost
(regardless of what I put using hostname). Anyone got any ideas? Perhaps i’m
missing essential libraries in the build file? I can supply the build file
if necessary.

TIA,
Emlyn

The uname reports what you set in boot image (as -N parameter of
startup).
Hostname prints it too, but attempt to set new hostname on my MPC750
leads to all subsequent commands hanging forever (the ‘hostname xxx’
command returns but anything afterwards hangs).

Very amusing.

  • igor

Emlyn Garvey wrote:

I’m having problems getting hostname to work in QNX6 running on a MCP750
PowerPC board. Basically, i’ve built a target QNX image which starts the
network (io-net) and QNET drivers and includes the necessary system
libraries, such as devn-tulip.so, npm-ttcpip.so, npm-qnet.so etc. So far
i’ve got the board booting into QNX however whenever I try and set the
hostname (via ‘hostname’) it returns nothing and a recheck of the set
hostname (ie. by typing ‘hostname’ on its own) similarly returns nothing.
Also a check of the set hostname via ‘uname -a’ always returns localhost
(regardless of what I put using hostname). Anyone got any ideas? Perhaps i’m
missing essential libraries in the build file? I can supply the build file
if necessary.

TIA,
Emlyn