[ofa-general] Re: OFED-1.2-20070502-0600 on Debian

Rick Jones rick.jones2 at hp.com
Thu May 3 10:32:10 PDT 2007


> rpm is not installed. I don't know how to solve this, Vlad
> might be able to answer tomorrow.

That would be cool.  Push comes to shove I can probably put my two systems on an 
external network if there is a need for a "laying on of hands."

>>should I be taking a different path to build here?
> 
> 
> Maybe, maybe not.
> 
> There *is* another way which should be enough to test IPoIB:
> try getting a kernel tarball from
> http://git.openfabrics.org/~vlad/builds/
> 
> If you unpack this, you can configure/make/make install.
> 
> Installer will backup your original modules under the prefix.
> Keep the source around and you'll be able to make uninstall
> to get back to original system.
> 
> Note 1: default configure settings are often not what you want:
> run ./configure --help first of all to see which modules to select
> (--with-ipoib-mod and --with-mthca-mod I think) and to set a prefix.
> Note 2: having quilt tool installed is recommended - will let you
> add/remove patches later.
> Note 3: this way you get no userspace. openfabrics tarballs
> are under the same directory, and a similiar method works there.
> external tarballs (MPI, bonding, etc) are supplied to us in SRPM
> format so this trick does not work for them.

Seems I found little joy there too, probably my own fault.  The environment is a 
Debian 4.0. The kernel is called:

hpcpc107:~/ofa_1_2_kernel-20070502-0200# uname -a
Linux hpcpc107 2.6.21.1-raj #1 SMP Tue May 1 14:11:27 PDT 2007 ia64 GNU/Linux


The sources to which are at:

/root/linux-2.6.21.1

My configure line was:

./configure --with-ipoib-mod --with-mthca-mod --with-sdp-mod --prefix=/root/save

I didn't save the first set of configure output :(  Subsequent configures give:

hpcpc107:~/ofa_1_2_kernel-20070502-0200# ./configure --with-ipoib-mod 
--with-mthca-mod --with-sdp-mod --prefix=/root/save
mkdir -p /root/ofa_1_2_kernel-20070502-0200/patches
touch /root/ofa_1_2_kernel-20070502-0200/patches/quiltrc
 
/root/ofa_1_2_kernel-20070502-0200/kernel_patches/fixes/add_orig_dgid_to_sysfs.patch
/usr/bin/quilt --quiltrc /root/ofa_1_2_kernel-20070502-0200/patches/quiltrc 
import 
/root/ofa_1_2_kernel-20070502-0200/kernel_patches/fixes/add_orig_dgid_to_sysfs.patch
Patch add_orig_dgid_to_sysfs.patch is applied

Failed executing /usr/bin/quilthpcpc107:~/ofa_1_2_kernel-20070502-0200#

Make then reports:

hpcpc107:~/ofa_1_2_kernel-20070502-0200# make
Building kernel modules
Kernel version: 2.6.21.1-raj
Modules directory: //lib/modules/2.6.21.1-raj/updates
Kernel sources: /lib/modules/2.6.21.1-raj/build
env EXTRA_CFLAGS="  -I/root/ofa_1_2_kernel-20070502-0200/include 
-I/root/ofa_1_2_kernel-20070502-0200/drivers/infiniband/include \
                 -I/root/ofa_1_2_kernel-20070502-0200/drivers/infiniband/ulp/ipoib \
                 -I/root/ofa_1_2_kernel-20070502-0200/drivers/infiniband/debug \
 
-I/root/ofa_1_2_kernel-20070502-0200/drivers/infiniband/hw/cxgb3/core \
                 -I/root/ofa_1_2_kernel-20070502-0200/drivers/net/cxgb3 \
                 -I/root/ofa_1_2_kernel-20070502-0200/drivers/net/rds " \
         make -C /lib/modules/2.6.21.1-raj/build 
SUBDIRS="/root/ofa_1_2_kernel-20070502-0200" KERNELRELEASE=2.6.21.1-raj \
                 EXTRAVERSION=.1-raj V=1  \
                 CONFIG_INFINIBAND= \
                 CONFIG_INFINIBAND_IPOIB=m \
                 CONFIG_INFINIBAND_IPOIB_CM=y \
                 CONFIG_INFINIBAND_SDP=m \
                 CONFIG_INFINIBAND_SRP= \
                 CONFIG_INFINIBAND_USER_MAD= \
                 CONFIG_INFINIBAND_USER_ACCESS= \
                 CONFIG_INFINIBAND_ADDR_TRANS= \
                 CONFIG_INFINIBAND_MTHCA=m \
                 CONFIG_INFINIBAND_IPOIB_DEBUG=y \
                 CONFIG_INFINIBAND_ISER= \
                 CONFIG_SCSI_ISCSI_ATTRS= \
                 CONFIG_ISCSI_TCP= \
                 CONFIG_INFINIBAND_EHCA= \
                 CONFIG_INFINIBAND_EHCA_SCALING= \
                 CONFIG_RDS= \
                 CONFIG_RDS_IB= \
                 CONFIG_RDS_TCP= \
                 CONFIG_RDS_DEBUG= \
                 CONFIG_INFINIBAND_IPOIB_DEBUG_DATA= \
                 CONFIG_INFINIBAND_SDP_SEND_ZCOPY= \
                 CONFIG_INFINIBAND_SDP_RECV_ZCOPY= \
                 CONFIG_INFINIBAND_SDP_DEBUG=y \
                 CONFIG_INFINIBAND_SDP_DEBUG_DATA= \
                 CONFIG_INFINIBAND_IPATH= \
                 CONFIG_INFINIBAND_MTHCA_DEBUG=y \
                 CONFIG_INFINIBAND_MADEYE= \
                 CONFIG_INFINIBAND_VNIC= \
                 CONFIG_INFINIBAND_VNIC_DEBUG= \
                 CONFIG_INFINIBAND_VNIC_STATS= \
                 CONFIG_CHELSIO_T3= \
                 CONFIG_INFINIBAND_CXGB3= \
                 CONFIG_INFINIBAND_CXGB3_DEBUG= \
                 LINUXINCLUDE=' \
                  \
                 -I/root/ofa_1_2_kernel-20070502-0200/include \
                 -I/root/ofa_1_2_kernel-20070502-0200/drivers/infiniband/include \
                 -Iinclude \
                 $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
                 -include include/linux/autoconf.h \
                 -include 
/root/ofa_1_2_kernel-20070502-0200/include/linux/autoconf.h \
                 ' \
                 modules
make[1]: Entering directory `/root/linux-2.6.21.1'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (           \
         echo;                                                           \
         echo "  ERROR: Kernel configuration is invalid.";               \
         echo "         include/linux/autoconf.h or include/config/auto.conf are 
missing.";      \
         echo "         Run 'make oldconfig && make prepare' on kernel src to 
fix it.";  \
         echo;                                                           \
         /bin/false)
mkdir -p /root/ofa_1_2_kernel-20070502-0200/.tmp_versions
rm -f /root/ofa_1_2_kernel-20070502-0200/.tmp_versions/*
make -f scripts/Makefile.build obj=/root/ofa_1_2_kernel-20070502-0200
   Building modules, stage 2.
make -f /root/linux-2.6.21.1/scripts/Makefile.modpost
   scripts/mod/modpost -m  -i /root/linux-2.6.21.1/Module.symvers -I 
/root/ofa_1_2_kernel-20070502-0200/Module.symvers -o 
/root/ofa_1_2_kernel-20070502-0200/Module.symvers -w vmlinux
make[1]: Leaving directory `/root/linux-2.6.21.1'

so I go ahead and do as the output suggests, make oldconfig and make prepare in 
the kernel source directory, come back to the ofa kernel directory, type make 
and get:

...

make[1]: Entering directory `/root/linux-2.6.21.1'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (           \
         echo;                                                           \
         echo "  ERROR: Kernel configuration is invalid.";               \
         echo "         include/linux/autoconf.h or include/config/auto.conf are 
missing.";      \
         echo "         Run 'make oldconfig && make prepare' on kernel src to 
fix it.";  \
         echo;                                                           \
         /bin/false)
mkdir -p /root/ofa_1_2_kernel-20070502-0200/.tmp_versions
rm -f /root/ofa_1_2_kernel-20070502-0200/.tmp_versions/*
make -f scripts/Makefile.build obj=/root/ofa_1_2_kernel-20070502-0200
   Building modules, stage 2.
make -f /root/linux-2.6.21.1/scripts/Makefile.modpost
   scripts/mod/modpost -m  -i /root/linux-2.6.21.1/Module.symvers -I 
/root/ofa_1_2_kernel-20070502-0200/Module.symvers -o 
/root/ofa_1_2_kernel-20070502-0200/Module.symvers -w vmlinux
make[1]: Leaving directory `/root/linux-2.6.21.1'

again.

rick jones
still rather kernel clueless



More information about the general mailing list