On Fri, May 29, 2015 at 12:36 AM, Dani Armada <dani.arm...@gmail.com> wrote:
> Hi BSDRP community, > > First of all I want to congratulate the people involved in this > project, it´s a very useful stuff I've been using for about one year and > it's being a big help. > Thanks, > The reason why I'm contacting you is because I want to run a linux > binary file but since the linux kernel module is not installed it doesn´t > work. I've tried many things to load linux.ko with kldload but it seems > that it's not possible without the src code of the system. > So the question is if there's any way to run linux binaries within > BSDRP. I need to run a linux binary that exports flows to a system, and > this system requires that the exportation is done through this binary file. > > > Because running linux binaries is a very specific usage, I don't think to add this feature in the default BSDRP image. But here is a small guide (not tested!) for generating your own version of BSDRP with linux kernel module support. >From a FreeBSD (10.1-amd64 advised), start by downloading BSDRP source code: svnlite co https://github.com/ocochard/BSDRP/trunk BSDRP cd BSDRP Then add linux module to the list of module to be compiled/installed: Edit file BSDRP/make.conf, and look for "SHARED_MODULES" line. You should found something like: SHARED_MODULES="netgraph rc4 if_tap carp if_bridge bridgestp if_lagg if_gre if_stf ipfw ipfw_nat ipdivert i2c libalias dummynet mlx4 mlxen pf pfsync pflog tmpfs" Simply add "linux" on this line, that should become: SHARED_MODULES="netgraph rc4 if_tap carp if_bridge bridgestp if_lagg if_gre if_stf ipfw ipfw_nat ipdivert i2c libalias linux dummynet mlx4 mlxen pf pfsync pflog tmpfs" And because linux module compatibility is 32bits only (on FreeBSD 10.1), perhaps you should add 32bits compatibility to the kernel: Edit file BSDRP/kernel/amd64 Look for a commented line: #options COMPAT_FREEBSD32 # Compatible with i386 binaries and remove the # in the beginning Then rebuild BSDRP: ./make After few hours, depending of your machine and Internet speed, you should obtain a customized BSDRP image with linux module. Regards,
------------------------------------------------------------------------------
_______________________________________________ Bsdrp-users mailing list Bsdrp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bsdrp-users