BeagleBone ports and kernel module

Ian Lepore ian at FreeBSD.org
Fri Nov 29 15:10:50 UTC 2013


On Fri, 2013-11-29 at 22:35 +0800, 我是昭明 wrote:
> I have built the kernel and the root file system from the source tree at svn://svn.freebsd.org/base/projects/armv6/ and make the freebsd system boot successfully on the BeagleBone board. And the next step is to make some changes to the kernel. I want to make some modules to serve this purpose. The freeBSD system ported to the BeagleBone somehow cannot make the module, it says cannot find the source tree. So I tried to make the module on the freeBSD 9.1 running on the virtual box 4.2.6. The virtual box runs on i386 PC. I tried to change into cross compile through:
> cd  /usr/src
> make TARGET=arm TARGET_ARCH=arm buildenv
> make -DNO_CLEAN kernel-toolchain
> and the module built can not been loaded through kldload on the ported freebsd, and the error suggests the reason is that the version of the two freeBSD system is not the same, how can I solve this problem? please help.
> 

The source code at projects/armv6 is very out of date; everything from
that branch was merged into head months ago.  Use either stable/10 or
head (best support is currently on head).

When cross-building for Beaglebone use TARGET_ARCH=armv6

-- Ian




More information about the freebsd-arm mailing list