[openib-general] Re: error compiling kernel...

Johann George johann at pathscale.com
Mon Nov 7 21:38:06 PST 2005


> I ran into the same problem while compiling with 2.6.14 kernel. I tried 
> removing infniband/include/rdma, but still the same :-(
> 
> Has anyone been able to compile gen2 with 2.6.14? Maybe I am missing 
> something?

Yes.  We just figure out how to; thanks to Roland.  Assume that
KERNEL_SOURCE_TREE is where you keep the 2.6.14 kernel sources you are
building and GEN2 is the location of the gen2 directory of your OpenIB
repository.  Here is what we did:

(1) Replace the infiniband directory on 2.6.14 with the infiniband directory
    from the repository (as you always do).
(2) Update the include directory in your kernel tree:
        cd $KERNEL_SOURCE_TREE/drivers/infiniband/include
        cp -p -r * ../../../include
    This just updated the scsi and rdma directories in include.
(3) Apply the fib-frontend patch to your kernel
        cd $KERNEL_SOURCE_TREE
        patch -p1 \
          <$GEN2/trunk/src/linux-kernel/patches/linux-2.6.14-fib-frontend.diff
    This exports a needed symbol: ip_dev_find

Now if you compile the kernel the usual way, all should work.

Johann



More information about the general mailing list