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 of IB module block<br />

$v6cmd<br />

echo "loading IB modules"<br />

/sbin/insmod /lib/ib/ib_addr.ko<br />

/sbin/insmod /lib/ib/ib_core.ko<br />

/sbin/insmod /lib/ib/ib_mad.ko<br />

/sbin/insmod /lib/ib/ib_sa.ko<br />

/sbin/insmod /lib/ib/ib_cm.ko<br />

/sbin/insmod /lib/ib/ib_uverbs.ko<br />

/sbin/insmod /lib/ib/ib_ucm.ko<br />

/sbin/insmod /lib/ib/ib_umad.ko<br />

/sbin/insmod /lib/ib/iw_cm.ko<br />

/sbin/insmod /lib/ib/rdma_cm.ko<br />

/sbin/insmod /lib/ib/rdma_ucm.ko<br />

$dcacmd<br />

/sbin/insmod /lib/ib/ib_qib.ko<br />

$helper_cmd<br />

/sbin/insmod /lib/ib/ib_ipoib.ko<br />

echo "finished loading IB modules"<br />

# End of IB module block<br />

EOF<br />

# first get line number where we append (after last insmod<br />

if any, otherwse<br />

# at start<br />

line=$(egrep -n insmod init | sed -n '$s/:.*//p')<br />

if [ ! "${line}" ]; then line=1; fi<br />

sed -e "${line}r ../init-cmds" init > init.new<br />

# show the difference, then rename<br />

echo -e 'Differences between original and new init<br />

command script\n'<br />

diff init init.new<br />

mv init.new init<br />

chmod 700 init<br />

# now rebuilt the initrd image<br />

find . | cpio --quiet -H newc -o | gzip ><br />

../initrd-${kern}.img<br />

D000046-005 B 8-11

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

Saved successfully!

Ooh no, something went wrong!