[ewg] Re: [PATCH OFED-1.5] NFSRDMA: NFS backport for 2.6.22

Jack Morgenstein jackm at dev.mellanox.co.il
Sat Jun 27 22:56:49 PDT 2009


On Thursday 25 June 2009 19:08, Jon Mason wrote:
> # ./ofed_scripts/ofed_makedist.sh
> # scp ofed_kernel-2.6.22.tgz  root at vic12:
> 
> The kernel source is now on my victim system
> 
> On the victim:
> # tar -xzvf ofed_kernel-2.6.22.tgz
> # cd ofed_kernel-2.6.22
> # ./configure --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mthca-mod --with-mlx4-mod --with-mlx4_en-mod --with-ipoib-mod --with-sdp-mod --with-nfsrdma-mod
> # make install > /dev/null
>
What are you running on the victim system?
I am compiling on a SuSe 10.0 system using gcc version: (GCC) 4.1.0 (SUSE Linux)

When I test out your patches, I do the following:

mkdir /tmp/of15
cd /tmp/of15
# Prepare and configure a copy of linux kernel 2.6.22 from kernel.org
tar xfj linux-2.6.22.tar.bz2
cd linux-2.6.22
./configure
make defconfig
make prepare
make scripts

# get and configure ofed-linux-2.6.22.tgz
cd ..
tar xfz /<wherever>/ofed_kernel-2.6.22.tgz
cd ofed_kernel-2.6.22
export WITH_BASIC_PACKAGES=" \
--with-ipoib-mod \
--with-user_mad-mod \
--with-user_access-mod \
--with-mthca-mod \
--with-mlx4-mod \
--with-mlx4_en-mod \
--with-core-mod \
--with-addr_trans-mod \
--with-sdp-mod \
--with-nfsrdma-mod \
"
export WITH_ALLPACKAGES=$WITH_BASIC_PACKAGES
./configure ${WITH_ALLPACKAGES} --kernel-sources=/tmp/of15/linux-2.6.22 --kernel-version=2.6.22

# Apply the patch manually (2 steps), using quilt
quilt import -f -p1 <your 2.6.22 patch>.patch
quilt push  # this gets the addons installed, and the backport patch file in place
quilt import -f -p1 kernel_patches/backport/rnfs_fs.patch  # apply your backport patch
quilt push

# make
make -k all > /dev/null

============================================
Note that in the ofed-linux-2.6.22 ./configure, I specify taking the kernel sources from the
linux-2.6.22 directory that I just un-tarred and configured.

-Jack



More information about the ewg mailing list