User Manual

echo “loading ipv6”
/sbin/insmod /lib/modules/ipv6.ko
echo “loading IB driver”
/sbin/insmod /lib/modules/ib/ib_addr.ko
/sbin/insmod /lib/modules/ib/ib_core.ko
/sbin/insmod /lib/modules/ib/ib_mad.ko
/sbin/insmod /lib/modules/ib/ib_sa.ko
/sbin/insmod /lib/modules/ib/ib_cm.ko
/sbin/insmod /lib/modules/ib/ib_uverbs.ko
/sbin/insmod /lib/modules/ib/ib_ucm.ko
/sbin/insmod /lib/modules/ib/ib_umad.ko
/sbin/insmod /lib/modules/ib/iw_cm.ko
Rev 2.1-1.0.6
Mellanox Technologies
230
Step 7. If you plan to give your IB device a static IP address, then copy ifconfig. Otherwise, skip
this step.
Step 8. If you plan to obtain an IP address for the IB device through DHCP, then you need to copy
the DHCP client which was compiled specifically to support IB;
Otherwise, skip this step.
To continue with this step, DHCP client v3.1.3 needs to be already installed on the machine
you are working with.
Copy the DHCP client v3.1.3 file and all the relevant files as described below.
Step 9. Create a configuration file for the DHCP client (as described in Section 4.3.3.1) and place it
under
/tmp/initrd_ib/sbin. The following is an example of such a file (called
dclient.conf):
dhclient.conf:
Step 10. Now you can add the commands for loading the copied modules into the file init. Edit the
file
/tmp/initrd_ib/init and add the following lines at the point you wish the IB
driver to be loaded.
host1$ cp /sbin/ifconfig /tmp/initrd_ib/sbin
host1# cp <path to DHCP client v3.1.3>/dhclient /tmp/initrd_ib/sbin
host1# cp <path to DHCP client v3.1.3>/dhclient-script /tmp/initrd_ib/sbin
host1# mkdir -p /tmp/initrd_ib/var/state/dhcp
host1# touch /tmp/initrd_ib/var/state/dhcp/dhclient.leases
host1# cp /bin/uname /tmp/initrd_ib/bin
host1# cp /usr/bin/expr /tmp/initrd_ib/bin
host1# cp /sbin/ifconfig /tmp/initrd_ib/bin
host1# cp /bin/hostname /tmp/initrd_ib/bin
# The value indicates a hexadecimal number
# For a ConnectX device interface "ib0" {send dhcp-client-identifier
ff:00:00:00:00:00:02:00:00:02:c9:00:00:02:c9:03:00:00:10:39;
}
The order of the following commands (for loading modules) is critical.