Follow this page to configure a PC running QNX Operating System into the Mechatronics QNX Network. This page guides you with an example configuration of a machine with the IP address crb14.ces.clemson.edu.
You need to be logged in as 'root' to make all the changes. You will need to modify the following files.
/etc/hosts
/etc/resolv.conf
/etc/config/network
/etc/config/sysinit
The steps......
Change the values in bold typeface to reflect the IP address of your machine. Remember that the IP address for all machines here is of the form 130.127.172.xxx where xxx is a value that is 10 higher than the crb number. For example, the IP address for crb24.ces.clemson.edu would be 130.127.172.34 .
Notice that the third, fourth and the fifth line in the file are commented out. We shall uncomment it in step 7.
You should be able to see the results of pinging into another machine, as shown below...
Ctrl c to quit pinging.
The network should now be up and running...hopefully.
Now, append the lines '/etc/config/network' to this file if all checks of step 5 were successful. Adding that line enables the machine to get connected to the network during boot up.
where the node is the node number of the machine...for crb14, it would be 14.
b) FTP the directory /etc/licenses from node 1(server) to your machine and put it in the same location(/etc/).
c) FTP the file /etc/config/netmap from node 1 to your machine and put it in the same location (/etc/config).
Edit the 'netmap' file to make sure that the enrty for node 1 (that is the first entry) and the entry for your node exists.
The machine has a network card that has it's 'MAC address' hardwired in it. The QNX server uses this MAC address to communicate with your machine. You must make sure that the MAC address of your machine matches with the entry for your node in the /etc/config /netmap file. Do the following :
TO QNX ADMINISTRATOR : Open the /etc/config/netmap file and enter the right MAC address for the machine. Update the netmap with the command
netmap -f
A sample netmap file is shown below:
c) Try the following commands from console.
After netmap -f
command you should be able to see node 1 and our node with the command alive
. After netmap -F //1/...
command you should be able to see all nodes with the command alive
. If everything works fine, uncomment the "netmap" and "nameloc" lines in the /etc/config/network script.
d) Update the licenses. Type the following command
license //1/etc/licenses
license -r
This will update the network licenses for all the components in the installed system.
The output of the list command should look something like:
./ hard.ata.1 ws.arcxir ws.ether503 ws.ether8003 ws.tr164a ../ hard.macros.1 ws.arc20 ws.ether1000 ws.ether509 ws.ether9000 floppy install.1 ws.arcnet ws.ether2100 ws.ether7231 ws.fddidfe
/boot/sys/boot $ /boot/sys/boot -v /boot/sys/Proc32 $ /boot/sys/Proc32 -l 1 /boot/sys/Slib32 $ /boot/sys/Slib32 /boot/sys/Slib16 $ /boot/sys/Slib16 /bin/Fsys $ /bin/Fsys /bin/Fsys.eide $ /bin/Fsys.eide fsys -Ndsk0 -n0=hd0. -n5=cd0. eide -a1f0 -i14 /bin/mount $ /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 / /bin/sinit $ /bin/sinit TERM=qnxm
Note
: the user's build file may appear different than above depending on which base build file (e.g.,install.1
, hard.1
, hard.ata.1
, etc.) was selected. To reduce potential errors, the user should select the build file that most resembles the above script.
crbxx
should be amended to appear as:
$ /boot/sys/Proc32 -l 14 -i 5 -P 26
(note: the file system is case sensitive. Also note that the number in bold is the node number. Type the correct node number for your machine.The - p
will set Proc32
to execute at priority 26. The option -i 5 sets IRQ 5 as the most important IRQ in the system (this will be the IRQ triggered by the hardware timer on the MultiQ or STG board).
crbxx
. The operating system image corresponding to the build file for example crb14
now needs to be built with the following commands:
cd /boot buildqnx build/crb14 images/crb14 cp images/crb14 /.boot
The 2nd line builds the system image, and the 3rd copies it to the directory /.boot, making it the image that will be loaded by default when the system boots.
/.boot
), then press ESCAPE
key during the boot phase to utilize the original system image /.altboot
). Proc32
is actually running at priority 26 with the following command:
sin -P Proc32
which should return the following:
SID PID PROGRAM PRI STATE BLK CODE DATA 0 1 /boot/sys/Proc32 26f READY --- 122k 3264k
TO QNX ADMINISTRATOR : Run the following commands as root to update all nodes from the QNX server CRB01.
cd /usr/net/admin
update_all_nodes