yocto: meta-wilc for sama5d2

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello. I'm trying to build wilc1000 for poky-atmel (morty branch) running on sama5d2.

I'm using tools from Yocto project, with meta-wilc layer (https://github.com/linux4sc/meta...).

Anyone has any tips?

bernardo@bernardo-ThinkCentre-Edge72:~/yocto/poky/build-atmel$ bitbake wilc1000
Loading cache: 100% |#############################################################################################################################################| Time: 0:00:00
Loaded 2741 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################################################################| Time: 0:00:00
Parsing of 2007 .bb files complete (2004 cached, 3 parsed). 2744 targets, 159 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal-4.8"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "sama5d2-xplained"
DISTRO            = "poky-atmel"
DISTRO_VERSION    = "2.2.2"
TUNE_FEATURES     = "arm armv7a vfp thumb neon       callconvention-hard       cortexa5"
TARGET_FPU        = "hard"
meta
meta-poky
meta-yocto-bsp    = "morty:7d5822bf4cb2089687c3c9a908cf4a4ef4e9a53a"
meta-atmel        = "morty:23794cfa9be55df931bf6f8a31d98d8cfe69f62b"
meta-wilc         = "master:2d94c078e179879f064bb02d704f972f45600053"
meta-java         = "morty:67e48693501bddb80745b9735b7b3d4d28dce9a1"
meta-oracle-java  = "morty:f44365f02b283c3fb362dc99e2e996d3f11e356e"
meta-supervisor   = "master:0c252169ad5464216573580c234ebe09cafc45fe"
meta-oe
meta-networking
meta-python
meta-multimedia   = "morty:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-homeassistant-backup = "master:02d8e867c21f1539965a734298ab0a139899901e"

Initialising tasks: 100% |########################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: wilc1000-4.1+gitAUTOINC+577d564e94-4.1 do_compile: oe_runmake failed
ERROR: wilc1000-4.1+gitAUTOINC+577d564e94-4.1 do_compile: Function failed: do_compile (log file is located at /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/temp/log.do_compile.24354)
ERROR: Logfile of failure stored in: /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/temp/log.do_compile.24354
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 -C /home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-source M=/home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git CONFIG_ATMEL_SMARTCONNECT=y CONFIG_WILC1000=m CONFIG_WILC1000_SDIO=m KERNEL_PATH=/home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-source KERNEL_VERSION=4.9.36-00619-g7e82b52 CC=arm-poky-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd LD=arm-poky-linux-gnueabi-ld.bfd   AR=arm-poky-linux-gnueabi-ar  O=/home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-build-artifacts KBUILD_EXTRA_SYMBOLS=
| make: Entering directory '/home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-source'
| make[1]: Entering directory '/home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-build-artifacts'
|   LD      /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/built-in.o
|   CC [M]  /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.o
|   CC [M]  /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/linux_wlan.o
|   CC [M]  /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/linux_mon.o
|   CC [M]  /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_msgqueue.o
|   CC [M]  /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/host_interface.o
|   CC [M]  /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/coreconfigurator.o
|   CC [M]  /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wlan_cfg.o
|   CC [M]  /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_debugfs.o
|   CC [M]  /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wlan.o
|   CC [M]  /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_sdio.o
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:105:23: error: 'IEEE80211_BAND_2GHZ' undeclared here (not in a function)
|    .band             = IEEE80211_BAND_2GHZ, \
|                        ^
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:114:2: note: in expansion of macro 'CHAN2G'
|   CHAN2G(1,  2412, 0),
|   ^~~~~~
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c: In function 'refresh_scan':
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:244:66: error: incompatible type for argument 2 of 'ieee80211_channel_to_frequency'
|      freq = ieee80211_channel_to_frequency((s32)network_info->ch, IEEE80211_BAND_2GHZ);
|                                                                   ^~~~~~~~~~~~~~~~~~~
| In file included from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_netdevice.h:37:0,
|                  from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.h:11,
|                  from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:1:
| /home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-source/include/net/cfg80211.h:3869:5: note: expected 'enum nl80211_band' but argument is of type 'struct ieee80211_channel *'
|  int ieee80211_channel_to_frequency(int chan, enum nl80211_band band);
|      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:244:10: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
|      freq = ieee80211_channel_to_frequency((s32)network_info->ch, IEEE80211_BAND_2GHZ);
|           ^
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c: In function 'CfgScanResult':
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:412:69: error: incompatible type for argument 2 of 'ieee80211_channel_to_frequency'
|      s32Freq = ieee80211_channel_to_frequency((s32)network_info->ch, IEEE80211_BAND_2GHZ);
|                                                                      ^~~~~~~~~~~~~~~~~~~
| In file included from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_netdevice.h:37:0,
|                  from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.h:11,
|                  from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:1:
| /home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-source/include/net/cfg80211.h:3869:5: note: expected 'enum nl80211_band' but argument is of type 'struct ieee80211_channel *'
|  int ieee80211_channel_to_frequency(int chan, enum nl80211_band band);
|      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:412:13: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
|      s32Freq = ieee80211_channel_to_frequency((s32)network_info->ch, IEEE80211_BAND_2GHZ);
|              ^
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c: In function 'CfgConnectResult':
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:566:3: error: too few arguments to function 'cfg80211_disconnected'
|    cfg80211_disconnected(dev, pstrDisconnectNotifInfo->reason, pstrDisconnectNotifInfo->ie,
|    ^~~~~~~~~~~~~~~~~~~~~
| In file included from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_netdevice.h:37:0,
|                  from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.h:11,
|                  from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:1:
| /home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-source/include/net/cfg80211.h:5074:6: note: declared here
|  void cfg80211_disconnected(struct net_device *dev, u16 reason,
|       ^~~~~~~~~~~~~~~~~~~~~
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:566:3: warning: statement with no effect [-Wunused-value]
|    cfg80211_disconnected(dev, pstrDisconnectNotifInfo->reason, pstrDisconnectNotifInfo->ie,
|    ^~~~~~~~~~~~~~~~~~~~~
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c: In function 'disconnect':
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:842:3: error: too few arguments to function 'cfg80211_disconnected'
|    cfg80211_disconnected(dev, 0, NULL, 0, GFP_KERNEL);
|    ^~~~~~~~~~~~~~~~~~~~~
| In file included from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_netdevice.h:37:0,
|                  from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.h:11,
|                  from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:1:
| /home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-source/include/net/cfg80211.h:5074:6: note: declared here
|  void cfg80211_disconnected(struct net_device *dev, u16 reason,
|       ^~~~~~~~~~~~~~~~~~~~~
| ERROR: oe_runmake failed
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:842:3: warning: statement with no effect [-Wunused-value]
|    cfg80211_disconnected(dev, 0, NULL, 0, GFP_KERNEL);
|    ^~~~~~~~~~~~~~~~~~~~~
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c: In function 'WILC_WFI_p2p_rx':
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:1468:58: error: incompatible type for argument 2 of 'ieee80211_channel_to_frequency'
|    s32Freq = ieee80211_channel_to_frequency(curr_channel, IEEE80211_BAND_2GHZ);
|                                                           ^~~~~~~~~~~~~~~~~~~
| In file included from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_netdevice.h:37:0,
|                  from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.h:11,
|                  from /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:1:
| /home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-source/include/net/cfg80211.h:3869:5: note: expected 'enum nl80211_band' but argument is of type 'struct ieee80211_channel *'
|  int ieee80211_channel_to_frequency(int chan, enum nl80211_band band);
|      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:1468:11: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
|    s32Freq = ieee80211_channel_to_frequency(curr_channel, IEEE80211_BAND_2GHZ);
|            ^
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c: In function 'WILC_WFI_CfgAlloc':
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:2280:20: error: array subscript is not an integer
|   wdev->wiphy->bands[IEEE80211_BAND_2GHZ] = &WILC_WFI_band_2ghz;
|                     ^
| /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.c:2280:2: warning: statement with no effect [-Wunused-value]
|   wdev->wiphy->bands[IEEE80211_BAND_2GHZ] = &WILC_WFI_band_2ghz;
|   ^~~~
| make[2]: *** [/home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-source/scripts/Makefile.build:293: /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git/wilc_wfi_cfgoperations.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[1]: *** [/home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-source/Makefile:1490: _module_/home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/git] Error 2
| make[1]: Leaving directory '/home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-build-artifacts'
| make: *** [Makefile:150: sub-make] Error 2
| make: Leaving directory '/home/bernardo/yocto/poky/build-atmel/tmp/work-shared/sama5d2-xplained/kernel-source'
| ERROR: Function failed: do_compile (log file is located at /home/bernardo/yocto/poky/build-atmel/tmp/work/sama5d2_xplained-poky-linux-gnueabi/wilc1000/4.1+gitAUTOINC+577d564e94-4.1/temp/log.do_compile.24354)
ERROR: Task (/home/bernardo/yocto/poky/meta-wilc/recipes-kernel/driver/wilc1000_git_4.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 467 tasks of which 460 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/bernardo/yocto/poky/meta-wilc/recipes-kernel/driver/wilc1000_git_4.1.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.