Skip to content
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

tools/esp32: Refactor generation of QEMU-compatible image #4701

Merged
merged 2 commits into from Oct 19, 2021

Conversation

gustavonihei
Copy link
Contributor

Summary

This PR intends to refactor the generation of the QEMU-compatible binary image for ESP32 by using the merge_bin builtin function from esptool.py.

The initial motivation for this is the need to provide a different offset for the partition table binary, which the current mk_qemu_img.sh script does not support.
The added bonus is that this new implementation relies on esptool.py, resulting in a cleaner implementation.

Impact

Only for ESP32-based defconfigs executing on QEMU.

Testing

Validated with esp32-devkitc:nsh and esp32-devkic:spiflash examples on QEMU.

Use the merge_bin builtin function from esptool.py.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
Copy link
Member

@Ouss4 Ouss4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Ouss4 Ouss4 merged commit b998528 into apache:master Oct 19, 2021
@gustavonihei gustavonihei deleted the feature/mergebin_qemu branch October 19, 2021 21:24
@jerpelea jerpelea added this to To-Add in Release Notes - 10.3.0 Mar 15, 2022
@jerpelea jerpelea moved this from To-Add to In Progress in Release Notes - 10.3.0 Mar 15, 2022
@jerpelea jerpelea moved this from In Progress to added in Release Notes - 10.3.0 Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants