Request updated/unified patch for OFED v3.2 update

David P. Discher dpd at dpdtech.com
Mon Apr 25 22:05:57 UTC 2016


A couple notes that frustrated the hell out me this weekend:

I could not get the modules to compile in-kernel.  They have to be loadable modules.  I kept getting linking errors, to what looks like references in the linux modules.

I could not get the patch set to apply cleanly to r298482. It did apply cleanly to r298518.

Patch doesn’t create directors, so you must create these directories *before* patch:

	mkdir -p contrib/ofed/libmlx5
	mkdir -p contrib/ofed/libmlx5/config
	mkdir -p contrib/ofed/libmlx5/debian
	mkdir -p contrib/ofed/libmlx5/debian/patches
	mkdir -p contrib/ofed/libmlx5/debian/source
	mkdir -p contrib/ofed/libmlx5/scripts/expose_libmlx5_headers
	mkdir -p contrib/ofed/libmlx5/src
	mkdir -p contrib/ofed/librdmacm/include/infiniband
	mkdir -p contrib/ofed/usr.lib/libmlx5
	mkdir -p sys/modules/mlx5ib


If you get some new files in /usr/src, then you missed a directory.

The patch command line I used was :

 patch --remove-empty-files -F 30 -i /z/home/dpd/OFEDv32/patch.diff

patch.diff was created with:

cat D5790.diff.txt D5791.diff.txt D5792.diff.txt D5793.diff.txt D5794.diff.txt D5795.diff.txt D5796.diff.txt D5797.diff.txt D5798.diff.txt D5799.diff.txt > patch.diff


Everything compiled, however I messed up my test systems, so I haven’t been able to test anything yet.

-
David P. Discher
http://davidpdischer.com/
AIM: DavidDPD | Y!M: daviddpdz
Mobile: 408.368.3725



> On Apr 23, 2016, at 2:51 PM, David P. Discher <dpd at dpdtech.com> wrote:
> 
> yup.  That fixed it … compiling now.
> 
> Thanks !
> 
> 
> -
> David P. Discher
> http://davidpdischer.com/
> AIM: DavidDPD | Y!M: daviddpdz
> Mobile: 408.368.3725
> 
> 
> 
>> On Apr 23, 2016, at 2:52 PM, Hans Petter Selasky <hps at selasky.org> wrote:
>> 
>> On 04/23/16 23:40, David P. Discher wrote:
>>> I had to refresh all the patches, and they finally applied cleanly … however make failed:
>>> 
>>> make: "/usr/src/share/mk/src.libnames.mk" line 560: /usr/src: Missing or incorrect value for LIBMLX5DIR in src.libnames.mk: contrib/ofed/usr.lib/libmlx5
>>> 
>>> It looks like "contrib/ofed/usr.lib/libmlx5” is completely missing.
>>> 
>>> Tried to remove libmlx5 (since I don’t have a mlx5 card) from the make files, but seems to all over the place.
>>> 
>> 
>> I think you maybe need to create that directory before applying the patches.
>> 
>> --HPS
>> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-infiniband/attachments/20160425/2e8bfff9/attachment.sig>


More information about the freebsd-infiniband mailing list