All of lore.kernel.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] cannot recompile my openwrt image with last version of batman-adv 2017-4
@ 2017-12-25 17:36 laurent
  2017-12-25 19:24 ` Sven Eckelmann
  0 siblings, 1 reply; 3+ messages in thread
From: laurent @ 2017-12-25 17:36 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [B.A.T.M.A.N.] cannot recompile my openwrt image with last version of batman-adv 2017-4
  2017-12-25 17:36 [B.A.T.M.A.N.] cannot recompile my openwrt image with last version of batman-adv 2017-4 laurent
@ 2017-12-25 19:24 ` Sven Eckelmann
  2017-12-26  9:08   ` laurent
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Eckelmann @ 2017-12-25 19:24 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: laurent

[-- Attachment #1: Type: text/plain, Size: 697 bytes --]

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

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [B.A.T.M.A.N.] cannot recompile my openwrt image with last version of batman-adv 2017-4
  2017-12-25 19:24 ` Sven Eckelmann
@ 2017-12-26  9:08   ` laurent
  0 siblings, 0 replies; 3+ messages in thread
From: laurent @ 2017-12-26  9:08 UTC (permalink / raw)
  To: Sven Eckelmann, b.a.t.m.a.n

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-26  9:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-25 17:36 [B.A.T.M.A.N.] cannot recompile my openwrt image with last version of batman-adv 2017-4 laurent
2017-12-25 19:24 ` Sven Eckelmann
2017-12-26  9:08   ` laurent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.