Trying to build my first system for the WP7603 and hitting an issue. It looks like mksys can’t find the wifiService app. I created a simple system to show the problem. It consists of two hello-world-style apps and one that uses the WiFi Client Service. Each of the three apps successfully build on their own. When I try to build the system it fails because it can’t find the “server app ‘wifiService’.”
The file structure and some of their content is listed below. I’ve also included a ZIP file of the whole system at the bottom.
When building I’ve tried many variations of the --interface-search option to mksys as well as interfaceSearch option in the system definition file. Hopefully it’s not a bug and I’m just misunderstanding something. Thanks for any input!
I got it to compile and figured I’d share what I did in case anyone else came across it. I went back to the docs and focused on the definition files. The section about bindings in the Application Definition says …
If server-side code was built using the ifgen tool and a compiler or using the mk tools and this executable was added to your app using a requires: or bundles: section, the tool reading your .adef file won’t know about the server-side interface. Use this work-around if you need to bind to one of those interfaces inside your own app:
This would bind the known client-side interface clientExe.clientComponent.clientInterface to the unknown server-side le_data interface served by a pre-built executable inside the current app.
So I modified the System Definition as well as the Component for the testWifiApp app …
Updated System Defintion
#include "$LEGATO_ROOT/default.sdef"
apps: {
testApp1
testApp2
testWifiApp
}
appSearch: {
$CURDIR/apps/testApp1
$CURDIR/apps/testApp2
$CURDIR/apps/testWifiApp
}
// need to search for interfaces since the apps/components
// don't use the full path
interfaceSearch: {
${LEGATO_ROOT}/interfaces/wifi
}
Will It Work
I only got it to compile and didn’t really do anything with the wifi code. Hopefully I didn’t just trick it into compiling and the wifiService app is actually available once I start implementing it.
With 20one no because wifiService appears in the default apps.
The bind with the * doesn’t work: I just checked.
What did you do to make available wifiService with FW13? Have I to add something in the linux kernel module?
Sorry @jyijyi can you kindly say to me what did you do in you project of FW13 to make wifiService available? For example did you add libraries, kernel…etc?
I know but the fact is that I can’t make wifi available on FW 13 and I can’t make available green mangOH project on FW16 for dependancies problem. I need both on a same project
If I know how to make wifiService available on FW 13 for me is ok
sorry @jyijyi I can now make available WiFi on FW version 13, ok. But I was wondering a thing. You gave me your mangOH_2_7_19 on FW13 to make available mux, spi and can. It works, ok. But: is there exist a version for Legato FW 16 version? I compiled my project looking to yours and it works on FW 13 and 13.1 but I can’t make it available on the last version of legato: It gives me lots of errors , it can’t find for example .sinc files. Has someone ever solved this issue? I don’t think it is a good thing not to compile a project on the latest SW versions released, at least for the other HWs I have always worked with this in mind. Sorry for the inconvenience