Hi,
I am working on updating some wifi-driver software. I am trying to build it for a wp85 board. I went through the setup here: Install the Application Framework - Legato Docs , and installed everything. Here is running cfgLegato which sets up the development environment variables:
mangoh@mangoh-virtualbox:~/repos/legato-af-16.10.3$ cfgLegato
Modules: wp85, wp750x
SDK Path: /home/mangoh/legato/packages/legato.sdk.17.6.0.wp85-wp75-native-x86_64-201707120921
Framework Path: /home/mangoh/legato/packages/legato.framework.17.6.0.wp85-wp750x-201707120855 - $LEGATO_ROOT
Toolchain Path: /home/mangoh/legato/packages/legato.toolchain.1.7.3.SWI9X15Y_07121000-wp85-wp750x-native-x86_64-201707120848 - $WP85_TOOLCHAIN_DIR $WP750X_TOOLCHAIN_DIR
Device Image Path: /home/mangoh/legato/packages/legato.device.image.7.12.10.00.wpX5-201707120854 - $LEGATO_DEVICE_IMAGE
Recovery tools Path: /home/mangoh/legato/packages/legato.recovery.4.0.6.1.linux-201704190909 - $LEGATO_RECOVERY
No toolchain found for target ‘ar7’.
Unable to find compatible cross-build toolchain for target ‘ar7’.
No toolchain found for target ‘ar86’.
Unable to find compatible cross-build toolchain for target ‘ar86’.
Toolchain specified for target ‘wp76xx’ is invalid.
Unable to find compatible cross-build toolchain for target ‘wp76xx’.
Toolchain specified for target ‘ar758x’ is invalid.
Unable to find compatible cross-build toolchain for target ‘ar758x’.
Toolchain specified for target ‘ar759x’ is invalid.
Unable to find compatible cross-build toolchain for target ‘ar759x’.
Toolchain specified for target ‘em75xx’ is invalid.
Unable to find compatible cross-build toolchain for target ‘em75xx’.
/home/mangoh/repos/legato-af-16.10.3
I cloned the repo here: GitHub - legatoproject/legato-WiFi: WiFi support for Legato and tried to make and got an error that a source file could not be found…:
********************* VERSION ********************
Legato WiFi version is 17.09.0-7-g5445645
make -C /home/mangoh/repos/legato-WiFi/service wp85
make[1]: Entering directory ‘/home/mangoh/repos/legato-WiFi/service’
mkapp -v -t wp85
-i /home/mangoh/repos/legato-WiFi/platformAdaptor/inc/
wifiService.adef
Env var ‘WP77XX_TOOLCHAIN_DIR=/opt/swi/y17-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi’ became ‘SHELL=/bin/bash’.
Environment variables are different this time.
Parsing file: ‘/home/mangoh/repos/legato-WiFi/service/wifiService.adef’.
Modelling application: ‘wifiService’
defined in ‘/home/mangoh/repos/legato-WiFi/service/wifiService.adef’
Application ‘wifiService’ contains executable ‘wifiService’.
Parsing file: ‘/home/mangoh/repos/legato-WiFi/service/daemon/Component.cdef’.
Modelling component: ‘daemon’
found at: ‘/home/mangoh/repos/legato-WiFi/service/daemon’
** ERROR:
/home/mangoh/repos/legato-WiFi/service/daemon/Component.cdef:15:4: error: Couldn’t find source file ‘/home/mangoh/repos/legato-WiFi/…/service/platformAdaptor/ti/pa_wifi_client_ti.c’
Makefile:10: recipe for target ‘wp85’ failed
make[1]: *** [wp85] Error 1
make[1]: Leaving directory ‘/home/mangoh/repos/legato-WiFi/service’
Makefile:86: recipe for target ‘/home/mangoh/repos/legato-WiFi/service/wifiService.wp85.update’ failed
make: *** [/home/mangoh/repos/legato-WiFi/service/wifiService.wp85.update] Error 2
Now, I don’t think it would make it much further than this step anyways, because when I go into some C files, such as the one in legato-WiFi(from the github link)/apps/sample/wifiWebAp/wifiWebApComponent/wifiWebAp.c, there is contained:
#include legato.h
#include interfaces.h
From cfgLegato, we can see that the framework path is here:/home/mangoh/legato/packages/legato.framework.17.6.0.wp85-wp750x-201707120855, and if we go a bit deeper, there is a legato.h library at $THAT_PATH/resources/legato/framework/c/inc/legato.h. But if we replace “legato.h” from the C files with this one, this .h file does not include the function declarations necessary for the wifi drivers…
My question is, did I install the legato framework correctly? If so, where could I go about getting the proper source files? Where can I find the proper .h files?
If there is any reference material that you have, please point me in the right direction!
Thank you in advacne