[Pkg-ofed-devel] how to build MTHCA IB driver into 2.6.28 kernel

Guy Coates gmpc at sanger.ac.uk
Mon Mar 1 09:11:40 UTC 2010


Toru Nishimura wrote:
> Folks,
> 
> It's necessary for me to build the entire IB stack and driver
> into a custom PPC32 kernel.
> 
> Q. How can I merge 1.4.2 kernel side IB codes into stock
> Linux kernel source tree?   Just copy and replace kernel
> source subtree with the corresponding ofa-kernel-source,
> and them "make menu config && make"?
> 

Hi Toru,

Unfortunately the ofa-kernel build process is rather more complicated
than that.  The source tree gets patched with a number of patches which


What version is your kernel based on? OFED 1.4.2 supports up to kernel
2.6.26; if you have a later kernel version, you will run into difficulties.


The stock linux kernel contains some, but not all, of the  infiniband
modules present in OFED, so you may be able to get away with not having
to rebuild everything. However, you may find that you are missing some
feature and protocols available in OFED.


If you are using a 2.6.26 based kernel, you should be able to build the
kernel modules following the procedure here.

http://pkg-ofed.alioth.debian.org/howto/infiniband-howto-3.html

You can use module-assistant to build against customised kernels.
To build against your custom kernel, call module-assistant with:

module-assistant -t -k /path/to/kernel-source build ofa-kernel.

However, before you do that, you will need to add a configure  section
in the rules  file for the PPC32 architecture (~line 85 in the
ofa-kernel rules file).

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 Pkg-ofed-devel mailing list