-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental ESP-IDF v5 #810
base: master
Are you sure you want to change the base?
Conversation
4961f93
to
ca0b2dc
Compare
ca0b2dc
to
2e25d8a
Compare
1402b05
to
1311f4e
Compare
1ad89a2
to
ef58ea9
Compare
e54513f
to
9f88281
Compare
Thanks, this is a great step forward, and works pretty well for me with esp-idf=5.0.1, given your caveats, as long as I have Without that, it fails to compile with .../main/ovms_command.cpp:1249:15: error: aggregate 'stat st' has incomplete type and cannot be defined
1249 | struct stat st; Not clear to me where this error is coming from, any ideas? |
Hello @jetpax, |
I added a missing header, which fixes the compilation. Tell me if it works for you ! |
Thanks @llange , that works great, and system seems much more stable. I do also get a compile error when I tried to turn off Duktape with In file included from /Users/jep/github/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/powermgmt/powermgmt_web.cpp:31:
/Users/jep/github/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/ovms_metrics.h:168:29: error: 'OvmsWriter' was not declared in this scope
168 | int OvmsMetricUnit_Validate(OvmsWriter* writer, int argc, const char* token, bool complete, metric_group_t group = GrpNone); The reason I was doing that was that I had a crash that I though might have been memory allocation related when I tried to turn on CAN tcpserver network streaming to use SavvyCAN, (though maybe Mongoose related?) In case it's of interest, here's the commands to replicate that crash:
Here's the Stack Trace decode
|
Hi @jetpax , thanks for the bug report ! Regarding the compilation error with CONFIG_OVMS_SC_JAVASCRIPT_NONE=y ; I confirm it happens also on my side, and it's not that easy to fix at the moment. I'll keep you informed when I have a working solution. |
aeb7813
to
c28b92f
Compare
951114b
to
3919e8e
Compare
b092373
to
01f95d3
Compare
3197172
to
42e0da6
Compare
f13707a
to
e202470
Compare
e202470
to
fa45d7c
Compare
Signed-off-by: Ludovic LANGE <[email protected]>
fa45d7c
to
d217ae2
Compare
wolfssl has been forked (https://github.com/openvehicles/wolfssl) and the subdirectory converted to a Git submodule. Additionally, it has been put one directory level below (in vehicle/OVMS.V3/components/wolfssl/wolfssl) to better separate the upstream code from our build glue (component.mk, CMakeLists.txt and configuration files) This way it's easier to track any changes made to the module, upgrade when upstram changes, or propose patches to upstream. We kept the existing version (v4.7.0-stable) - it will be upgraded later Signed-off-by: Ludovic LANGE <[email protected]>
Signed-off-by: Ludovic LANGE <[email protected]>
Signed-off-by: Ludovic LANGE <[email protected]>
There are some issues with newer versions (crash of the SSH console) so we keep v5.3.0 at the moment Signed-off-by: Ludovic LANGE <[email protected]>
Signed-off-by: Ludovic LANGE <[email protected]>
d217ae2
to
dc0b064
Compare
This PR is more or less ready for review.
It aims to bring compatibility with ESP-IDFv5, with the following caveats:
esp_flash_erase_region
needs some work)ssl.c:18011:22: error: size of array 'sha_test' is negative
wolfSSL/wolfssl#6028)Please note that:
v5.5.4-stable
, and needs a small patch to compile (see [Bug]: (sha512.c:1309:29: error: 'sha512' undeclared) wolfSSL/wolfssl#6024, [Bug]: esp32_sha.c:511:26: error: lvalue required as left operand of assignment wolfSSL/wolfssl#6026, ESP-IDFv5: Warning related to thefixed in master by ESP32 SHA384 fixes wolfSSL/wolfssl#6034)uint32_t
definition change wolfSSL/wolfssl#6029v1.4.6-stable
To be able to "test" this PR, you'll need:
v5.0
Ideally this may need to be broken down for better review - note that you should be able to review commit per commit as I tried to keep them consistent and compilable.