Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added NONOS SDK 3.0.0 ~ 3.0.5 (again)#8736

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mcspr merged 12 commits intoesp8266:masterfrommetarutaiga:nonos-sdk-300
Dec 6, 2022

Conversation

@metarutaiga
Copy link
Contributor

I push the PR again.
I used the 3.0.5, it seems stable.

In Addition, the patch i don't know it needed after 3.0.0
// # WPA2-Enterprise patch which replaces a double-free with nop, see#8082
// # special vPortFree to recover leaked memory

@mcsprmcspr mentioned this pull requestDec 3, 2022
6 tasks
@mcsprmcspr merged commit93537f9 intoesp8266:masterDec 6, 2022
mcspr pushed a commit that referenced this pull requestDec 16, 2022
## WPA2 Enterprise connectionsReferences - merged PRs:*#8529*#8566 - these occurred with connect/disconnect with WPA-Enterprise*#8736 (comment)The NON-OS SDK 3.0.x has breaking changes to the [`pvPortMalloc`](https://github.com/espressif/ESP8266_NONOS_SDK/blob/bf890b22e57a41d5cda00f9c8191f3f7035a87b4/include/mem.h#L42) function. They added a new `bool` argument for selecting a heap. ```cppvoid *pvPortMalloc (size_t sz, const char *, unsigned, bool);```To avoid breaking the build, I added a new thin wrapper function `sdk3_pvPortMalloc` to `heap.cpp`. Edited new SDK LIBs to call `pvPortMalloc`'s replacement `sdk3_pvPortMalloc`.They also added `pvPortZallocIram` and `pvPortCallocIram`, which are not a problem to support. Support added to `heap.cpp`.Issues with WPA2 Enterprise in new SDKs:* v3.0.0 and v3.0.1 - have the same memory leak and duplicate free bugs from before* v3.0.2 through v3.0.5 - have the same memory leak; however, _no_ duplicate free crash.* memory leak can be seen by cycling through setup, connect, disconnect, and clear setup - repeatedly.Updated `wpa2_eap_patch.cpp` and binary patch scripts to handle v3.0.0 through v3.0.5.Patched SDKs v3.0.0 through v3.0.5## Duplicate Non-32-bit exception handlerIssue: At v3.0.0 and above `libmain.a` supplies a built-in exception handler (`load_non_32_wide_handler`) for non-32-bit access. Our non-32-bit access handler (`non32xfer_exception_handler`) overrides it. Solution: Add "weak" attribute to symbol `load_non_32_wide_handler`. Adjust the build to default to the SDK's built-in non-32-bit handler.  If there is a need to use our non-32-bit handler, make the selection from the Arduino IDE Tools menu `Non-32-Bit Access: "Byte/Word access to IRAM/PROGMEM (very slow)"`.With SDKs v3.0.0 and above a "non-32-bit exception handler" is always present.
@slonopotamusslonopotamus mentioned this pull requestMar 12, 2023
6 tasks
hasenradball pushed a commit to hasenradball/Arduino that referenced this pull requestNov 18, 2024
* Added NONOS SDK 3.0.0 ~ 3.0.5* Added user_pre_init* rf_cal[0] !=0x05,is 0x00* # Remove mem_manager.o from libmain.a to use custom heap implementation, and time.o to fix redefinition of time-related functions# Rename `hostname` and `default_hostname` symbols* user_rf_pre_init* Add system_func1() called by system_restart_local()* Add commit log text* Fixed user_rf_pre_init* Style* pio sdksCo-authored-by: TAiGA <>Co-authored-by: Maxim Prokhorov <prokhorov.max@outlook.com>
hasenradball pushed a commit to hasenradball/Arduino that referenced this pull requestNov 18, 2024
## WPA2 Enterprise connectionsReferences - merged PRs:*esp8266#8529*esp8266#8566 - these occurred with connect/disconnect with WPA-Enterprise*esp8266#8736 (comment)The NON-OS SDK 3.0.x has breaking changes to the [`pvPortMalloc`](https://github.com/espressif/ESP8266_NONOS_SDK/blob/bf890b22e57a41d5cda00f9c8191f3f7035a87b4/include/mem.h#L42) function. They added a new `bool` argument for selecting a heap. ```cppvoid *pvPortMalloc (size_t sz, const char *, unsigned, bool);```To avoid breaking the build, I added a new thin wrapper function `sdk3_pvPortMalloc` to `heap.cpp`. Edited new SDK LIBs to call `pvPortMalloc`'s replacement `sdk3_pvPortMalloc`.They also added `pvPortZallocIram` and `pvPortCallocIram`, which are not a problem to support. Support added to `heap.cpp`.Issues with WPA2 Enterprise in new SDKs:* v3.0.0 and v3.0.1 - have the same memory leak and duplicate free bugs from before* v3.0.2 through v3.0.5 - have the same memory leak; however, _no_ duplicate free crash.* memory leak can be seen by cycling through setup, connect, disconnect, and clear setup - repeatedly.Updated `wpa2_eap_patch.cpp` and binary patch scripts to handle v3.0.0 through v3.0.5.Patched SDKs v3.0.0 through v3.0.5## Duplicate Non-32-bit exception handlerIssue: At v3.0.0 and above `libmain.a` supplies a built-in exception handler (`load_non_32_wide_handler`) for non-32-bit access. Our non-32-bit access handler (`non32xfer_exception_handler`) overrides it. Solution: Add "weak" attribute to symbol `load_non_32_wide_handler`. Adjust the build to default to the SDK's built-in non-32-bit handler.  If there is a need to use our non-32-bit handler, make the selection from the Arduino IDE Tools menu `Non-32-Bit Access: "Byte/Word access to IRAM/PROGMEM (very slow)"`.With SDKs v3.0.0 and above a "non-32-bit exception handler" is always present.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mcsprmcsprmcspr left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@metarutaiga@mcspr

[8]ページ先頭

©2009-2025 Movatter.jp