[ofa-general] installing ofed-1.4

Guy Coates gmpc at sanger.ac.uk
Wed Jan 14 08:54:53 PST 2009


>>
>> these directories were apparently not created during preceeding
>> installation steps. however, the modules have indeed been built
>> correctly, here:
>>
>> /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.4/lib/modules/2.6.18-6-amd64/extra/drivers/net/cxgb3/
>>
>>
>> /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.4/lib/modules/2.6.18/extra/drivers/net/mlx4/
>>
>>
>> (containing kernel modules "cxgb3.ko" and "mlx4_core.ko", "mlx4_en.ko")
>>
>> there must be some confuson in the install script, or wherever those
>> paths come from.
>>
>> is there a way to adjust that?
>>

If you extract the kernel SRPM into a tarball with alien, you can run the kernel
module build manually.

alien -t  ofa_kernel-1.4-ofed1.4.src.rpm

(extract the resulting tarball)

Note that you have to run the ofed_patch.sh script first, as extra minor
versions numbers in the kernel confuses the patch script and it will try and
apply the SLES kernel patches rather than the vanilla kernel ones.


./ofed_scripts/ofed_patch.sh --kernel-version=2.6.18

./configure --kernel-sources=/usr/src/linux-headers-2.6.18-6 \
--kernel-version=2.6.18-6-amd64 \
--with-core-mod --with-ipoib-mod --with-ipoib-cm --with-sdp-mod \
--with-srp-mod --with-srp-target-mod \
--with-user_mad-mod --with-user_access-mod \
--with-addr_trans-mod --with-mthca-mod --with-mlx4-mod --with-mlx4_core-mod \
--with-mlx4_en-mod --with-mlx4_inf-mod --with-rds-mod --with-madeye-mod  \
--with-qlgc_vnic-mod --with-qlgc_vnic_stats-mod --with-cxgb3-mod \
--with-nes-mod

make && make install


If that is too much like hard work, there is a minimally tested deb at:

ftp://ftp.sanger.ac.uk/pub/gmpc/repository/etch/ofa-kernel-source_1.4-1_all.deb


You can then build the modules with module-assistant

dpkg -i ofa-kernel-source_1.4_all.deb
module-assistant prepare
module-assistant -t build ofa-kernel

Cheers,

Guy

-- 
Dr. Guy Coates,  Informatics System Group
The Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1HH, UK
Tel: +44 (0)1223 834244 x 6925
Fax: +44 (0)1223 496802


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 



More information about the general mailing list