-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Init phy data to default if invalid in flash partition to avoid bootloops (IDFGH-4812) #6610
Init phy data to default if invalid in flash partition to avoid bootloops (IDFGH-4812) #6610
Conversation
Thanks for your contribution. |
Hi @0xFEEDC0DE64, What is your esp-idf commit ID? |
Hi @HarveyRong-Esp, I don't get the question? the git hash of the branch? i branched off the 4.4 release tag |
@0xFEEDC0DE64 FWIW, there is no v4.4 release tag yet, as we have just started working on this version. The latest release is v4.2 and latest pre-release is v4.3-beta1. There is a v4.4-dev tag in the repository which indicates the point when 4.4 development starts, but it is not related to a release. (this likely doesn't affect the issue you are seeing, clarifying this just in case) |
On the topic of your issue, didn't |
I enabled secure boot and flash encryption on development mode, maybe the phy data didn't flash automatically when using |
Do you think it is ok to have a crash if the phy partition ever corrupts somehow? I still think it should at least ignore invalid data or reset it to default somehow. |
…oops Signed-off-by: ronghulin <ronghulin@espressif.com> Merges #6610
Changes merged with 63a7a84, thanks for contribution again. |
…oops Signed-off-by: ronghulin <ronghulin@espressif.com> Merges #6610
…oops Signed-off-by: ronghulin <ronghulin@espressif.com> Merges #6610
I just had a case of endless bootloop crashes because I enabled the menuconfig option to store PHY init data in a dedicated partition instead of NVS.
This happens because
esp_phy_load_cal_and_init()
callsabort()
whenesp_phy_get_init_data()
returns a nullptr. I added a menuconfig option to reset invalid PHY init data to default when it cannot be verified successfully to avoid such bootloops.Also I think I fixed a few memory leaks on the way be deleting the pointer when it was returning NULL;