Well..

Actually there was a first problem was not bmx but other package.
I did this change and now it works:

$ diff ./lime-sdk/lede/ar71xx/generic/sdk/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/compat-wireless-2017-01-31/include/linux/ath9k_platform.h \
./lede/ar71xx/generic/sdk/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/linux-4.4.74/include/linux/ath9k_platform.h 
52d51
<  const char *led_name;

Because it was throwing me a cmp error, I did that change and now it compiles (for ar71xx).

But for  brcm2708/bcm2709 (r-pi2) I run this:
J=1 V=s ./cooker -c brcm2708/bcm2709 --flavor=lime_default --profile=rpi-2

And it says:
Unknown package 'lime-full'.
....
Configuring ip6tables.
Configuring brcmfmac-firmware-43430-sdio.
Configuring ppp-mod-pppoe.
Collected errors:
 * opkg_install_cmd: Cannot install package lime-full.
Makefile:146: recipe for target 'package_install' failed
make[2]: *** [package_install] Error 255
Makefile:109: recipe for target '_call_image' failed
make[1]: *** [_call_image] Error 2
Makefile:202: recipe for target 'image' failed
make: *** [image] Error 2
make: Leaving directory '/home/nicopace/projects/redlibre/altermundi/librestack/lime-sdk/lede/brcm2708/bcm2709/ib'

Axel sent me a patch, but it didn't worked (https://gist.github.com/nicopace/b6ca47a0873208e14c56fa87525064cb).
/bmx7-r2017011101$ patch < patch
patching file hna.c
Hunk #1 FAILED at 34.
1 out of 1 hunk FAILED -- saving rejects to file hna.c.rej
patching file ip.c
Hunk #1 FAILED at 38.
1 out of 1 hunk FAILED -- saving rejects to file ip.c.rej
can't find file to patch at input line 31
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/lib/bmx7_tun/tun.c b/lib/bmx7_tun/tun.c
|index d4834cb..f2be6b3 100644
|--- a/lib/bmx7_tun/tun.c
|+++ b/lib/bmx7_tun/tun.c
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
patching file node.h
Hunk #1 FAILED at 23.
1 out of 1 hunk FAILED -- saving rejects to file node.h.rej

The failing code is here: https://www.dropbox.com/s/az65kfgzvhrsy6f/bmx7-r2017011101.tgz?dl=0
Any idea?

Regards,

On Thu, 2017-07-06 at 12:15 +0300, Nicolas Pace wrote:
(Adding Axel cause it is a a BMX7 compilation error... sorry axel for
sending you so many same emails)

I'm trying to compile Libremesh for Raspberry pi 2. I had an issue with
a diff file on ath9k (below).
And now there is a BMX7 compile error.

$ J=1 V=s ./cooker -b brcm2708/bcm2709 --flavor=lime_default --
profile=rpi-2
...
make[5]: Entering directory
'./lede/brcm2708/bcm2709/sdk/build_dir/target-arm_cortex-a7+neon-
vfpv4_musl_eabi/bmx7-r2017011101'
ccache_cc  -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-
parameter 
-Os -g3 -std=gnu99
-DGIT_REV=\"589ee21b49d370056a24d8931d663626608f3c12\"
-DAVL_5XLINKED  -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-
parameter -Os -g3 -std=gnu99
-DGIT_REV=\"589ee21b49d370056a24d8931d663626608f3c12\"
-DAVL_5XLINKED  -Os -pipe -mcpu=cortex-a7 -mfpu=neon-vfpv4 -fno-caller-
saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-
error=unused-result -mfloat-abi=hard
-iremap./lede/brcm2708/bcm2709/sdk/build_dir/target-arm_cortex-a7+neon-
vfpv4_musl_eabi/bmx7-r2017011101:bmx7-r2017011101 -Wformat
-Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-
z,now -Wl,-z,relro -fpic -I.
-I./lede/brcm2708/bcm2709/sdk/staging_dir/target-arm_cortex-a7+neon-
vfpv4_musl_eabi/usr/include -DCRYPTLIB=MBEDTLS_2_4_0 -DCORE_LIMIT=20000
-DTRAFFIC_DUMP -DNO_TRACE_FUNCTION_CALLS -DBMX7_LIB_IWINFO -c ip.c -o
ip.o
In file included from
./lede/brcm2708/bcm2709/sdk/staging_dir/toolchain-arm_cortex-a7+neon-
vfpv4_gcc-5.4.0_musl_eabi/include/linux/if_tunnel.h:6:0,
                 from ip.c:44:
./lede/brcm2708/bcm2709/sdk/staging_dir/toolchain-arm_cortex-a7+neon-
vfpv4_gcc-5.4.0_musl_eabi/include/linux/ip.h:85:8: error: redefinition
of 'struct iphdr'
 struct iphdr {
        ^
In file included from ip.c:41:0:
./lede/brcm2708/bcm2709/sdk/staging_dir/toolchain-arm_cortex-a7+neon-
vfpv4_gcc-5.4.0_musl_eabi/include/netinet/ip.h:25:8: note: originally
defined here
 struct iphdr {
        ^
ip.c: In function 'opt_dev':
ip.c:3458:10: warning: unused variable
'TODO_use_proc_for_getting_parent_ifname' [-Wunused-variable]
    IDM_T TODO_use_proc_for_getting_parent_ifname;
          ^
Makefile:32: recipe for target 'ip.o' failed
make[5]: *** [ip.o] Error 1
make[5]: Leaving directory
'./lede/brcm2708/bcm2709/sdk/build_dir/target-arm_cortex-a7+neon-
vfpv4_musl_eabi/bmx7-r2017011101'
Makefile:21: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory
'./lede/brcm2708/bcm2709/sdk/build_dir/target-arm_cortex-a7+neon-
vfpv4_musl_eabi/bmx7-r2017011101'
Makefile:186: recipe for target
'./lede/brcm2708/bcm2709/sdk/build_dir/target-arm_cortex-a7+neon-
vfpv4_musl_eabi/bmx7-r2017011101/.built' failed
make[3]: *** [./lede/brcm2708/bcm2709/sdk/build_dir/target-arm_cortex-
a7+neon-vfpv4_musl_eabi/bmx7-r2017011101/.built] Error 2
make[3]: Leaving directory './feeds/routing/bmx7'
package/Makefile:109: recipe for target
'package/feeds/routing/bmx7/compile' failed
make[2]: *** [package/feeds/routing/bmx7/compile] Error 2
make[2]: Leaving directory './lede/brcm2708/bcm2709/sdk'
package/Makefile:105: recipe for target
'./lede/brcm2708/bcm2709/sdk/staging_dir/target-arm_cortex-a7+neon-
vfpv4_musl_eabi/stamp/.package_compile' failed
make[1]: *** [./lede/brcm2708/bcm2709/sdk/staging_dir/target-
arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory './lede/brcm2708/bcm2709/sdk'
./lede/brcm2708/bcm2709/sdk/include/toplevel.mk:200: recipe for target
'world' failed
make: *** [world] Error 2
make: Leaving directory './lede/brcm2708/bcm2709/sdk'
-> Error compiling SDK