Request updated/unified patch for OFED v3.2 update

Hans Petter Selasky hps at selasky.org
Tue Apr 26 06:29:37 UTC 2016


On 04/25/16 18:41, David P. Discher wrote:
> 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.

You'll have to use:

options LINUXKPI

When building all into the kernel.

--HPS

>
> 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
>

It might be easier if you have a git checkout of the FreeBSD kernel.

git am xxx

handles these issues automatically.

--HPS



More information about the freebsd-infiniband mailing list