Hi Philip,
I write the image you provided and it booted without trouble. I set the
KERNELPATH to /usr/src/kernel. Then, I tried to build batman-adv module
but failed at first, as expected. I given an error;
/bin/sh: scripts/basic/fixdep: No such file or directory
Then I built all modules in kernel sources using the following commands;
cd /usr/src/kernel
make modules_prepare
make modules
make modules_install
That took some time, but at the end I can manage to build batman without
error. However, I couldn't use the build batman-adv.ko. When I tried to
insmod the module, I given an error;
modprobe: ERROR: could not insert 'batman_adv': Unknown
symbol in module, or unknown parameter (see dmesg)
And the kernel log was;
[ 1896.210237] batman_adv: Unknown symbol crc32c (err 0)
The output of 'cat /proc/kallsyms | grep crc' command;
c02cd8d8 t crc32c_cra_init
c0303250 t crc32_generic_shift
c03032d8 T crc32_le_shift
c03032e4 T __crc32c_le_shift
c03032f0 T crc32_le
c0303438 T __crc32c_le
c0303580 T crc32_be
c030a2f0 t crc32_validate
c091364c t crc32c_mod_init
And I assume that crc32c module is exists? I stuck at this point, and
googling didn't helped.
There is one more thing, I asked the kernel upgrade process to the ETTUS
Support, they replied with the following;
"Upgrading the kernel would require you to port our
drivers. That probably isn't feasible."
Regarding that answer, how could you managed to build image with kernel
4.9 for e310 devices?
Thank you again,
Best Regards,
Said U.
On 12/12/18 12:58 AM, Philip Balister wrote:
On 12/10/2018 04:20 PM, Philip Balister via USRP-users wrote:
On 12/10/2018 03:03 AM, Said Uçar via USRP-users wrote:
Hi Philip,
Thank you for your answer. I believe the first option is simpler than
the second. However, I'm not familiar to building and tweaking kernel.
Is there a documentation for building and tweaking kernel for E300
series? You are definitely right about the kernel version issue (batman
did most of its features after kernel 4), I would like to test older
version because it may be sufficient for us.
I don't have any docs that would help and don't know of any on the Ettus
site. I've had an idea that might help. I have a more recent build based
on the OpenEmbedded rocko branches that use a 4.9 kernel, I am adding
the kernel-devsrc package to the image. That should let you build the
kernel module on the device. No warranty though. The builder is running
now and it is a long job, I'll post a link to the updated images when
they are done.
OK, the sausage machine spit out new images to try:
https://www.dropbox.com/sh/6qfjjqlfzmyegyd/AABu45Ney1xRoen-NyJim5dGa?dl=0
Use bmaptool to write to an SD card:
sudo bmaptool copy long-file-name /dev/sdX
make sure the wic and bmap files are in the same directory.
Completely untested. But the kernel dev sources should be available for
building OOT kernel modules.
Good luck,
Philip
Philip
Best Regards,
On 12/7/18 9:48 PM, Philip Balister wrote:
On 12/05/2018 04:05 AM, Said Uçar via USRP-users wrote:
Hi all,
I'm trying to build batman-adv^[1] for E310 however it required the
kernel sources since it builds /batman-adv.ko/ kernel object. I built
the batctl^[2] and alfred^[3] without problem. I searched on the
internet for kernel sources however couldn't find it. Is there a way to
build batman for e310?
So a couple of approaches to take:
1) Build the E300 linux distro locally and add recipes for the kernel
module and other parts of the software.
2) Inspect the linux kernel recipe used on the E300 and build a local
git tree, and copy the kernel config from the build area. Then build the
module against those sources.
Both are fairly straightforward, but you'll need to figure out some
OpenEmbedded stuff. All the information is a available to you.
I did peek at the kernel module to see if it would build aainst a 3.14
kernel. They do have an ifdef for kernels below 4.0, but it is clear
most work is targeted at later kernels.
Good luck!
Philip
Here is the output of 'uname -a':
Linux ettus-e3xx-sg3 3.14.2-xilinx #1 SMP PREEMPT Thu Jan 7 14:49:20
PST 2016 armv7l GNU/Linux
[1] = https://git.open-mesh.org/batman-adv.git
[2] = https://git.open-mesh.org/batctl.git
[3] = https://git.open-mesh.org/alfred.git
Best Regards,
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
--
Said Uçar
/Software Engineer/
*GOHM Electronics & Software*
m: +905442613124
a: Bogazici University North Campus Teknopark 103
34470 Bebek/ISTANBUL
w: gohm.com.tr <http://gohm.com.tr> e: said.u...@gohm.com.tr
<mailto:said.u...@gohm.com.tr>
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com