Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
1,528 Views

How to install batman-adv module

Jump to solution

I'm trying to install batman-adv mesh networking module. This is what I tried.

1. Download opkg package from http://repo.opkg.net/edison/repo/edison/kernel-module-batman-adv_3.10.17-r0_edison.ipk repo.

2. Install said .ipk file with opkg (at this point, opkg did not give any error but batman-adv module still doesn't show up on lsmod, so proceeded to install manually)

3. Copy batman-adv.ko from

/lib/modules/3.10.17-yocto-standard/kernel/net/batman-adv/ to /lib/modules/$(uname -r)

4. Run modprobe -f batman-adv

Got "modprobe: ERROR: could not insert 'batman_adv': Exec format error"

modinfo of batman-adv.ko is

filename: /lib/modules/3.10.17-poky-edison+/batman-adv.koversion: 2013.2.0description:B.A.T.M.A.N. advancedauthor: Marek Lindner <</span>mailto:lindner_marek@yahoo.de lindner_marek@yahoo.de>, Simon Wunderlich

rz.tu-chemnitz.de>

license: GPLsrcversion:66711903985B5CAAE0DAF30

depends:

intree: Yvermagic: 3.10.17-yocto-standard SMP preempt mod_unload ATOM

/proc/version/ is Linux version 3.10.17-poky-edison+ (sys_dswci@tlsndgbuild004) (gcc version 4.9.1 (GCC) ) # 1 SMP PREEMPT Fri Jun 19 12:06:40 CEST 2015

How do I proceed?


Accepted Solutions
Highlighted
Novice
112 Views

CMata_Intel PabloM_Intel

Pablo the solution you linked does not solve my problem as I'm intending to compile from external source that is newer than what is included in the Intel package.

I successfully compiled and installed batman-adv by

  1. Following the instructions /thread/60446?start=0&tstart=0 here (make sure you use 32bit Linux) to generate a Debian package containing the Linux headers for 3.10.17 Yocto standard.
  2. And then /thread/62873?start=0&tstart=0 this to install the headers on the Edison.
  3. Download the latest batman-adv source from https://downloads.open-mesh.org/batman/releases/ here and 'make' from Edison itself and then 'make install' to install the module.

Attached is the .deb package and the batman-adv.ko 2015.1 with debug logging enabled.

View solution in original post

0 Kudos
8 Replies
Highlighted
Valued Contributor II
112 Views

Hi,

have you tried to use a command below (without -f argument)?

Commandmodprobe batman-adv

BR,

xbolshe

Highlighted
Novice
112 Views

I was using -f because I wanted it to ignore the version magic. If I omit the -f flag, modprobe gives me this

[30808.013298] batman_adv: version magic '3.10.17-yocto-standard SMP preempt mod_unload ATOM ' should be '3.10.17-poky-edison+ SMP preempt mod_unload ATOM 'modprobe: ERROR: could not insert 'batman_adv': Exec format error

0 Kudos
Highlighted
Valued Contributor II
112 Views

Need to have a driver compiled for your linux image.

You are trying to install a driver compiled for another linux image: http://repo.opkg.net/edison/repo/edison/kernel-vmlinux_3.10.17-r0_edison.ipk http://repo.opkg.net/edison/repo/edison/kernel-vmlinux_3.10.17-r0_edison.ipk

The best way is a creation of own linux image with B.A.T.M.A.N. driver using

a source code available on https://software.intel.com/iot/hardware/edison/downloads IoT - Intel® Edison Board Download | Intel® Developer Zone

BR,

xbolshe

0 Kudos
Highlighted
Employee
112 Views

Hi myopenid,

Do you have updates on this? Have you tried with xbolshe's suggestions?

Regards,

Charlie

0 Kudos
Highlighted
Novice
112 Views

Hi CMata_Intel

How do I compile a kernel module for Edison from source?

I'm attempting to compile batman-adv 2015.1 from https://downloads.open-mesh.org/batman/releases/batman-adv-2015.1/batman-adv-2015.1.tar.gz https://downloads.open-mesh.org/batman/releases/batman-adv-2015.1/batman-adv-2015.1.tar.gz

Thanks.

0 Kudos
Highlighted
Employee
112 Views

Hi myopenid,

There's a guide that covers this topic thoroughly (even with the same module). Here's the link: https://software.intel.com/en-us/blogs/2015/02/27/intel-edison-adding-kernel-modules-to-yocto-exampl... https://software.intel.com/en-us/blogs/2015/02/27/intel-edison-adding-kernel-modules-to-yocto-exampl.... It's really well explained so you shouldn't have any issues following the steps.

Regards,

PabloM_Intel

0 Kudos
Highlighted
Novice
112 Views

See https://github.com/esialb/yocto-3.10-edison esialb/yocto-3.10-edison · GitHub for an easy way to custimize, build, and install a 3.10.65 yocto kernel with Intel Edison patches

More details here:

0 Kudos
Highlighted
Novice
113 Views

CMata_Intel PabloM_Intel

Pablo the solution you linked does not solve my problem as I'm intending to compile from external source that is newer than what is included in the Intel package.

I successfully compiled and installed batman-adv by

  1. Following the instructions /thread/60446?start=0&tstart=0 here (make sure you use 32bit Linux) to generate a Debian package containing the Linux headers for 3.10.17 Yocto standard.
  2. And then /thread/62873?start=0&tstart=0 this to install the headers on the Edison.
  3. Download the latest batman-adv source from https://downloads.open-mesh.org/batman/releases/ here and 'make' from Edison itself and then 'make install' to install the module.

Attached is the .deb package and the batman-adv.ko 2015.1 with debug logging enabled.

View solution in original post

0 Kudos