Thanks, will try that combo.<br><br>Nenad<br><br><br><div class="gmail_quote">On Sun, Oct 18, 2009 at 4:26 AM, Guy Coates <span dir="ltr">&lt;<a href="mailto:gmpc@sanger.ac.uk">gmpc@sanger.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">Nenad Kreculj wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m trying to build sdp driver for debian.<br>
&gt;<br>
&gt; My kernel is:<br>
&gt; Linux debian 2.6.30-2-686-bigmem #1 SMP Sat Sep 26 02:30:18 UTC 2009<br>
&gt; i686 GNU/Linux<br>
&gt;<br>
&gt; I followed this link for instructions:<br>
&gt; <a href="http://pkg-ofed.alioth.debian.org/howto/infiniband-howto-3.html" target="_blank">http://pkg-ofed.alioth.debian.org/howto/infiniband-howto-3.html</a><br>
&gt;<br>
&gt; Since my kernel is 2.6.30, I used OFED 1.4:<br>
&gt; ii  ofa-kernel-source                 1.4.2-2                  Source<br>
&gt; for InfiniBand kernel drivers<br>
&gt;<br>
&gt; &quot;module-assistant prepare&quot; followed by &quot;module-assistant clean<br>
&gt; ofa-kernel&quot; works, but module-assistant build ofa-kernel fails (all<br>
&gt; patches were applied without problems):<br>
&gt;<br>
&gt;  -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs<br>
&gt; -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration<br>
&gt; -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3<br>
&gt; -freg-struct-return -mpreferred-stack-boundary=2 -march=i686<br>
&gt; -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1<br>
&gt; -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare<br>
&gt; -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow<br>
&gt; -fno-stack-protector -fomit-frame-pointer -g<br>
&gt; -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow<br>
&gt; -DMODULE -D&quot;KBUILD_STR(s)=#s&quot; -D&quot;KBUILD_BASENAME=KBUILD_STR(cm)&quot;<br>
&gt; -D&quot;KBUILD_MODNAME=KBUILD_STR(ib_cm)&quot;  -c -o<br>
&gt; /usr/src/modules/ofa-kernel/drivers/infiniband/core/.tmp_cm.o<br>
&gt; /usr/src/modules/ofa-kernel/drivers/infiniband/core/cm.c<br>
&gt; /usr/src/modules/ofa-kernel/drivers/infiniband/core/cm.c: In function<br>
&gt; ‘cm_add_one’:<br>
&gt; /usr/src/modules/ofa-kernel/drivers/infiniband/core/cm.c:3741: error:<br>
&gt; implicit declaration of function ‘device_create_drvdata’<br>
&gt; /usr/src/modules/ofa-kernel/drivers/infiniband/core/cm.c:3743: warning:<br>
&gt; assignment makes pointer from integer without a cast<br>
&gt; make[6]: *** [/usr/src/modules/ofa-kernel/drivers/infiniband/core/cm.o]<br>
&gt; Error 1<br>
&gt; make[5]: *** [/usr/src/modules/ofa-kernel/drivers/infiniband/core] Error 2<br>
&gt; make[4]: *** [/usr/src/modules/ofa-kernel/drivers/infiniband] Error 2<br>
&gt; make[3]: *** [_module_/usr/src/modules/ofa-kernel] Error 2<br>
&gt; make[3]: Leaving directory `/usr/src/linux-source-2.6.30&#39;<br>
&gt; make[2]: *** [kernel] Error 2<br>
&gt; make[2]: Leaving directory `/usr/src/modules/ofa-kernel&#39;<br>
&gt; make[1]: *** [binary-modules] Error 2<br>
&gt; make[1]: Leaving directory `/usr/src/modules/ofa-kernel&#39;<br>
&gt; make: *** [kdist_build] Error 2<br>
&gt;<br>
&gt;<br>
&gt; On the same system, IB with IPoIB works just fine (two machines<br>
&gt; connected back-to-back, tested with netperf).<br>
&gt;<br>
&gt; Any suggestion how to fix the problem is most welcomed, or other<br>
&gt; approaches to building sdp driver.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Nenad<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Pkg-ofed-devel mailing list<br>
&gt; <a href="mailto:Pkg-ofed-devel@lists.alioth.debian.org">Pkg-ofed-devel@lists.alioth.debian.org</a><br>
&gt; <a href="http://lists.alioth.debian.org/mailman/listinfo/pkg-ofed-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/pkg-ofed-devel</a><br>
<br>
The short answer is that you should use the 2.6.26 lenny kernel +<br>
ofa-kernel modules + the userspace packages.<br>
<br>
If you step outside that combination, you run the risk of things breaking.<br>
<br>
The OFED 1.4.X ofa-kernel modules only supports kernel versions up to<br>
2.6.26; if you are using a later kernel you will need to use the<br>
infiniband drivers included in the vanilla kernel tree.<br>
<br>
However, the vanilla kernel infiniband modules do not yet contain some<br>
of the features that included  in OFED ofa-kernel modules (eg XRC). If<br>
you use the vanilla kernel modules you might find that some of the<br>
userspace utilities breaks.<br>
<br>
Cheers,<br>
<br>
Guy<br>
<br>
<br>
--<br>
Dr Guy Coates,  Informatics System Group<br>
The Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1HH, UK<br>
Tel: +44 (0)1223 834244 ex 6925<br>
Fax: +44 (0)1223 496802<br>
<font color="#888888"><br>
<br>
--<br>
 The Wellcome Trust Sanger Institute is operated by Genome Research<br>
 Limited, a charity registered in England with number 1021457 and a<br>
 company registered in England with number 2742969, whose registered<br>
 office is 215 Euston Road, London, NW1 2BE.<br>
</font></blockquote></div><br>