[ewg] [RFC] OFED-3.2 kernel development

Vladimir Sokolovsky vlad at dev.mellanox.co.il
Thu Feb 23 03:28:09 PST 2012


Hi,
Here is the proposed structure for the OFED-3.2 kernel git tree:

The general idea is based on compat-wireless project https://lkml.org/lkml/2011/9/9/327 (suggested by Roland http://lists.openfabrics.org/pipermail/ewg/2011-December/017155.html).

There are 3 git trees involved:

Linux:
------
URL: git://git.openfabrics.org/compat-rdma/linux-3.2.git
Branch: for-ofed-3.2

- Linux kernel subtree that includes files relevant for the OFED project only. Based on v3.2. Used to shorten git clone time.
   Note: the regular Linux git tree can be used as well.

compat:
-------
URL: git://git.openfabrics.org/compat-rdma/compat.git
Branch: ofed

- Based on compat project (https://github.com/mcgrof/compat). The compat module provides functionality introduced in newer kernels to older kernels through a set of header files and exported symbols.
See https://github.com/mcgrof/compat/wiki for details.
- Used to replace kernel_addons in the previous OFED kernel tree.

compat-rdma:
------------
URL: git://git.openfabrics.org/compat-rdma/compat-rdma.git
Branch: master

Anything that is not general kernel compatibility but instead specific to OFED goes into compat-rdma.git.
After you've cloned all three trees, linux-next.git, compat.git and compat-rdma.git you need to change into the
compat-rdma directory and tell compat-rdma where you linux-next and
compat.git trees are. You do this with environment variables GIT_TREE and
GIT_COMPAT_TREE.

export GIT_TREE=/home/user/linux-next/
export GIT_COMPAT_TREE=/home/user/compat

./scripts/admin_rdma.sh - create OFED kernel tree under compat-rdma.

compat-rdma git tree includes ofed_scripts directory (openibd, ofed_patch.sh, get_backport_dir.sh, ...).
Backport patches located under backports/. Currently, backport patches for 3.1 and 3.0 are available.

Compilation procedure (same as before):
# configure <params>
# make
# make install


The first build of OFED-3.2 is available under http://www.openfabrics.org/downloads/OFED/ofed-3.2-daily/
Supported kernels: 3.2/3.1/3.0 (SLES11 SP2)


Regards,
Vladimir



More information about the ewg mailing list