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.
Thanks,
Justin
Hi Justin,
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.
if you are running a recent Debian then it should be part of your Linux kernel already, so you can just use it by loading the batman-adv module. You might also want to install the batctl package to control batman. No need to compile anything unless you want to upgrade to the latest version.
Cheers, Simon
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)
hoi,
ive done something similar for raspberry pi some days ago, also suggesting to build on thedevice directly ... see : http://viisauksena.de/blog/raspberry-pi-und-freifunk-freiburg-or-batman-adv-... and maybe https://cccfr.de/wiki/freifunk:debian
greetz, jens
On 03.11.2015 13:05, 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.
Thanks,
Justin
I second the compile-on-device approach. It adds a bit of complexity to your development chain, but it's oh-so-much simpler. A few years ago I spent a long while failing to get together all the requirements for cross-compiling to a beaglebone. I gave up and was compiling on the device within half an hour.
On 4 November 2015 at 09:36, jens jens@viisauksena.de wrote:
hoi,
ive done something similar for raspberry pi some days ago, also suggesting to build on thedevice directly ... see : http://viisauksena.de/blog/raspberry-pi-und-freifunk-freiburg-or-batman-adv-... and maybe https://cccfr.de/wiki/freifunk:debian
greetz, jens
On 03.11.2015 13:05, 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.
Thanks,
Justin
-- make the world nicer, please use PGP encryption
b.a.t.m.a.n@lists.open-mesh.org