27.12.2014 Views

QLogic OFED+ Host Software User Guide, Rev. B

QLogic OFED+ Host Software User Guide, Rev. B

QLogic OFED+ Host Software User Guide, Rev. B

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8–gPXE<br />

Netbooting Over InfiniBand<br />

# start building modified image<br />

rm -rf new # for retries<br />

mkdir new<br />

cd new<br />

# extract previous contents<br />

gunzip -dc ../initrd-ib-${kern}.img | cpio --quiet -id<br />

# add infiniband modules<br />

mkdir -p lib/ib<br />

find /lib/modules/${kern}/updates -type f | \<br />

egrep<br />

'(iw_cm|ib_(mad|addr|core|sa|cm|uverbs|ucm|umad|ipoib|qib<br />

).ko|rdma_|ipoib_helper)' | \<br />

xargs -I '{}' cp -a '{}' lib/ib<br />

# Some distros have ipoib_helper, others don't require it<br />

if [ -e lib/ib/ipoib_helper ]; then<br />

helper_cmd='/sbin/insmod /lib/ib/ipoib_helper.ko'<br />

fi<br />

# On some kernels, the qib driver will require the dca<br />

module<br />

if modinfo -F depends ib_qib | grep -q dca; then<br />

cp $(find /lib/modules/$(uname -r) -name dca.ko) lib/ib<br />

dcacmd='/sbin/insmod /lib/ib/dca.ko'<br />

else<br />

dcacmd=<br />

fi<br />

# IB requires loading an IPv6 module. If you do not have<br />

it in your initrd, add it<br />

if grep -q ipv6 ../Orig-listing; then<br />

# already added, and presumably insmod'ed, along with any<br />

dependencies<br />

v6cmd=<br />

else<br />

echo -e 'Adding IPv6 and related modules\n'<br />

cp /lib/modules/${kern}/kernel/net/ipv6/ipv6.ko lib<br />

IFS=' ' v6cmd='echo "Loading IPV6"<br />

D000046-005 B 8-9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!