-
Notifications
You must be signed in to change notification settings - Fork 56
Conversation
6a931cc
to
7056e64
Compare
Quite doesn't work yet, as the mbed_app.json isn't there in all cases now.
@teetak or @kimlep need some help! |
Pulled back in the mbed_app.json to root, that sorted it. But we'd have to consolidate into something else in the future, I think. But, seems we have loads of different kinds of solutions now. Some are in Jenkins directly, some are in Jenkinsfile etc. |
"macros": ["MBEDTLS_USER_CONFIG_FILE=\"mbedtls_mbed_client_config.h\""], | ||
"target_overrides": { | ||
"*": { | ||
"target.features_add": ["LWIP", "NANOSTACK", "COMMON_PAL"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not need nanostack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, it does! If one does NOT include Nanostack if fails:
jankii01@ubuntu:~/mbed/mbed-os-example-client$ ./build_all.sh
Building project mbed-os-example-client (K64F, GCC_ARM)
Scan: .
Scan: FEATURE_LWIP
Scan: FEATURE_UVISOR
Scan: FEATURE_COMMON_PAL
Scan: FEATURE_BLE
Scan: FEATURE_STORAGE
Scan: FEATURE_THREAD_BORDER_ROUTER
Scan: FEATURE_THREAD_ROUTER
Scan: FEATURE_LOWPAN_BORDER_ROUTER
Scan: FEATURE_LOWPAN_ROUTER
Scan: FEATURE_LOWPAN_HOST
Scan: FEATURE_NANOSTACK_FULL
Scan: FEATURE_NANOSTACK
Scan: FEATURE_THREAD_END_DEVICE
Scan: mbed
Scan: env
Compile [ 0.3%]: NanostackRfPhyAtmel.cpp
[ERROR] ./atmel-rf-driver/source/NanostackRfPhyAtmel.cpp:18:44: fatal error: nanostack/platform/arm_hal_phy.h: No such file or directory
compilation terminated.
-> it only works w/o NANOSTACK - IF YOU MOVE OUT THE other extra repos. This is due to the "compile all" nature of the mbed! If you move the extra RF-drivers to TARGET_IGNORE -folder, then it works. But that's another pain.
"macros": ["MBEDTLS_USER_CONFIG_FILE=\"mbedtls_mbed_client_config.h\""], | ||
"target_overrides": { | ||
"*": { | ||
"target.features_add": ["LWIP", "NANOSTACK", "COMMON_PAL"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not need nanostack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, does. Unless you start to move esp, atmel etc. out of the main folder..
"macros": ["MBEDTLS_USER_CONFIG_FILE=\"mbedtls_mbed_client_config.h\""], | ||
"target_overrides": { | ||
"*": { | ||
"target.features_add": ["LWIP", "NANOSTACK", "LOWPAN_ROUTER", "COMMON_PAL"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LWIP not needed here
"macros": ["MBEDTLS_USER_CONFIG_FILE=\"mbedtls_mbed_client_config.h\""], | ||
"target_overrides": { | ||
"*": { | ||
"target.features_add": ["LWIP", "NANOSTACK", "THREAD_ROUTER", "COMMON_PAL"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LWIP not needed here
"mbed-mesh-api.thread-config-channel": 18, | ||
"mbed-mesh-api.thread-config-panid": "0xBAAB", | ||
"lwip.ipv4-enabled": false, | ||
"lwip.ipv6-enabled": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lwip specifications not needed
"wifi-rx": "PA_12" | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file needed for something? It should be deleted INMO.
Instead the root folder should have minimal configuration for IPV4 LWIP as baseline. (So that the application will always build for something).
"macros": ["MBEDTLS_USER_CONFIG_FILE=\"mbedtls_mbed_client_config.h\""], | ||
"target_overrides": { | ||
"*": { | ||
"target.features_add": ["NANOSTACK", "LOWPAN_ROUTER", "COMMON_PAL"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nanostack not needed
@@ -72,6 +72,9 @@ def buildStep(target, compilerLabel, toolchain, configName, connectiontype) { | |||
deleteDir() | |||
dir("mbed-os-example-client") { | |||
checkout scm | |||
// Make us "backwards compatible" the easy way... | |||
execute ("cp configs/example.json mbed_app.json") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really needed. We instead need to have basic mbed_app.json in main folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking we shouldn't have any default mbed_app.json in the repo, but rather just copy always one and start from there. That way any potential sed -operations would not touch any trackable items and git operations can be a bit easier then.
I am seeing SOCKET_MODE : TCP again with 6lowpan ( same as with #139 ). |
Per Marcelo Salazar's proposal add configuration examples to a configs-folder. By default the repo does not anymore have an mbed_app.json at all, but one should copy one of the example configs, potentially modify it and use it. Jenkinsfile was modified to do the copy operation at the beginning. Add the emac for UBLOX to Wifi configs. Add mbedignore files to avoid the compilation problems. Reference: #137
Remove the LWIPs from those, remove the example.json and mbed_app.json under Configs -folder Add more builds for the build_all.sh.
Mesh-networking ONLY supports UDP, others support both. Table to illustrate this.
No need to copy the example.json, because we keep (for now at least) the mbed_app.json in the root.
The ``` needs to be on it's own line. Still a bit more tweaking on the UPD/TCP.
"wifi-rx": "PA_12" | ||
}, | ||
"UBLOX_EVK_ODIN_W2": { | ||
"target.device_has": ["EMAC"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EMAC is defined for ODIN by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copied that from the mbed-os-example-wifi, that's on also there.
To be removed from both, then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bigger issue seems to be our WiFi stacks don't support IPv6 at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix wifi example , here's a reference to targets.json file, you cna see EMAC there defined (wifi ON by default). https://github.com/ARMmbed/mbed-os/blob/master/targets/targets.json#L1310
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bigger issue seems to be our WiFi stacks don't support IPv6 at all?
has not been tested neither verified (some bits are missing there) thus for now, unsupported
Based on review comment - it is on by default for ODIN, no need to add it there (ref: Martin Kojtal).
"wifi-rx": "PA_12" | ||
}, | ||
"UBLOX_EVK_ODIN_W2": { | ||
"target.device_has": ["EMAC"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, EMAC defined by a target
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will remove it. And the whole wifi_v6.json.
Seems the WiFi stacks do not support IPv6 yet, so drop those from the build_all.sh. There were also some bad namings for binaries, so fixed those as well.
This reverts commit a9a3580.
Per Marcelo Salazar's proposal add configuration examples to a configs-folder.
By default the repo does not anymore have an mbed_app.json at all, but one should
copy one of the example configs, potentially modify it and use it.
Jenkinsfile was modified to do the copy operation at the beginning.
Add the emac for UBLOX to Wifi configs.
Reference:
#137