On Tuesday 03 November 2015 07:05:16 Justin Oursler wrote:
Hello,
Can someone help get me started in cross-compiling batman-adv and batctl? Specifically, I'm wanting to run it on a Beaglebone running Debian (http://beagleboard.org/project/debian/). I already have the arm-gnueabihf toolchain.
Why not compiling batctl and batman-adv on the beagleboard? This would make the whole procedure a looooo[...]ooot easier. Just install build-essential, libnl-3-dev, pkg-config and the linux-headers for your kernel.
I don't know what kernel you currently have installed and where it comes from. But one of the kernels for this board comes from paulliu [1] and he gives you the kernel headers for his kernel in the linux-headers package [2].
Otherwise you would need the same toolchain used to build the kernel, kernel headers, config, libraries, ... and a lot of time and nerves. And when kernel headers and toolchain is not provided for your kernel then you have to build your own kernel anyway and then you can build your module against it [3].
Kind regards, Sven
[1] https://wiki.debian.org/InstallingDebianOn/TI/BeagleBone [2] https://people.debian.org/~paulliu/beaglebone/ [3] http://azkeller.com/blog/?p=129 (REMARK: KDIR is called KERNELPATH in batman-adv)