Hello,
I had an openwrt image with batman-adv 2017-0 that compile fine but when I have updated to 2017-4 I got this error (it is a warning but treated as an error):
I am able to compile alone the module in the build forlder:
/home/user/gateworks-openwrt/build_dir/target-arm_mpcore+vfp_musl-1.1.12_eabi/linux-cns3xxx/batman-adv-2017.4/net/batman-adv/bat_iv_ogm.c:734:2: error: implicit declaration of function 'skb_put_data' [-Werror=implicit-function-declaration] skb_put_data(forw_packet_aggr->skb, packet_buff, packet_len); ^ cc1: some warnings being treated as errors make[5]: *** [/home/user/gateworks-openwrt/build_dir/target-arm_mpcore+vfp_musl-1.1.12_eabi/linux-cns3xxx/batman-adv-2017.4/net/batman-adv/bat_iv_ogm.o] Error 1 make[4]: *** [_module_/home/user/gateworks-openwrt/build_dir/target-arm_mpcore+vfp_musl-1.1.12_eabi/linux-cns3xxx/batman-adv-2017.4/net/batman-adv] Error 2 make[4]: Leaving directory `/home/user/gateworks-openwrt/build_dir/target-arm_mpcore+vfp_musl-1.1.12_eabi/linux-cns3xxx/linux-4.4' make[3]: *** [/home/user/gateworks-openwrt/build_dir/target-arm_mpcore+vfp_musl-1.1.12_eabi/linux-cns3xxx/batman-adv-2017.4/.built] Error 2 make[3]: Leaving directory `/home/user/gateworks-openwrt/feeds/routing/batman-adv' make[2]: *** [package/feeds/routing/batman-adv/compile] Error 2 make[2]: Leaving directory `/home/user/gateworks-openwrt' make[1]: *** [/home/user/gateworks-openwrt/staging_dir/target-arm_mpcore+vfp_musl-1.1.12_eabi/stamp/.package_compile] Error 2 make[1]: Leaving directory `/home/user/gateworks-openwrt' make: *** [world] Error 2
Thank you
Laurent
On Montag, 25. Dezember 2017 18:36:56 CET laurent wrote: [...]
I am able to compile alone the module in the build forlder:
/home/user/gateworks-openwrt/build_dir/target-arm_mpcore+vfp_musl-1.1.12_eabi/linux-cns3xxx/batman-adv-2017.4/net/batman-adv/bat_iv_ogm.c:734:2: error: implicit declaration of function 'skb_put_data' [-Werror=implicit-function-declaration] skb_put_data(forw_packet_aggr->skb, packet_buff, packet_len); ^
Please use a batman-adv package which is compatible for your OpenWrt version. Or use LEDE (master) with openwrt-routing. Don't try to compile openwrt-routing master (which is for LEDE master) against OpenWrt Chaos Calmer.
Kind regards, Sven
Hello,
I was using the openwrt package feed for my version, but finally it works by cleaning properly the old version and re update the feed again, I had also corrected a small error line 324 in the new "compat-hacks.h" for 2017.4 :
static inline void (struct timer_list *timer, void (*callback)(struct timer_list *), unsigned int flags) { __setup_timer(timer, (TIMER_FUNC_TYPE)callback, (TIMER_DATA_TYPE)timer, flags); }
by
static inline void *timer_setup(struct timer_list *timer, void (*callback)(struct timer_list *), unsigned int flags) { __setup_timer(timer, (TIMER_FUNC_TYPE)callback, (TIMER_DATA_TYPE)timer, flags); }
it is fine now.
I am doing this upgrade because I had some trouble by settings 5 fixed nodes in our place and making a robot passing at 6km/h near them, the route was not stable. So i am trying to have the new version to begin to tune some parameters. The robot is using 1.5Mbs bandwidth and it stream UDP h264 video packet, the other side is sending only a few tcp control packets. A long time ago I was using ubiquity hardware but now for batman-adv we have bought gateworks hardware, they are more maintained.
i am still have this feeling that when all nodes see each-other the calculated route is not stable in my case (version IV or V).
Does batman-adv have like olsr an hysteresis parameter to stabilize the route once calculated ?
With 3 nodes all is ok.
I will make a new test and post a new thread with more infos
Best Regards,
Laurent
On 25/12/2017 20:24, Sven Eckelmann wrote:
On Montag, 25. Dezember 2017 18:36:56 CET laurent wrote: [...]
I am able to compile alone the module in the build forlder:
/home/user/gateworks-openwrt/build_dir/target-arm_mpcore+vfp_musl-1.1.12_eabi/linux-cns3xxx/batman-adv-2017.4/net/batman-adv/bat_iv_ogm.c:734:2: error: implicit declaration of function 'skb_put_data' [-Werror=implicit-function-declaration] skb_put_data(forw_packet_aggr->skb, packet_buff, packet_len); ^
Please use a batman-adv package which is compatible for your OpenWrt version. Or use LEDE (master) with openwrt-routing. Don't try to compile openwrt-routing master (which is for LEDE master) against OpenWrt Chaos Calmer.
Kind regards, Sven
b.a.t.m.a.n@lists.open-mesh.org