Repository navigation
omip skips what the firmware froze; WSL flashes a usbipd board with Linux esptool - #265
Merged
Merged
Conversation
A board attached to WSL with usbipd got Windows esptool and a Windows path for its image, which can't open /dev/ttyUSB0. Only a COM port goes to the Windows side now.
…he board does mcuctl omip copied every package in the tree, frozen or not. Now it asks the board, by the same rule as omnipython's omip: a frozen package is skipped, a partly frozen one gets only the modules it lacks, and modules a frozen _omip_left_out names are left out on purpose. A target ahead of .frozen on sys.path still gets everything.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #264.
mcuctl omipcopied every package in a dependency tree onto the board, including the ones its firmware already had frozen in. On an rp2--modules allbuild that was 490 KB of copies that never get imported. It now asks the board, with the same rule asomip.installon the board (PyDevices/omnipython#844):_omip_left_outnames are left out on purpose..frozenonsys.path, everything is still copied.The board-side probe was run on unix MicroPython and on an ESP32 Audio Kit, and gave the expected frozen, missing and built-in states.
firmware flashunder WSL always ran Windows esptool and handed it a Windows path, so a board attached with usbipd (/dev/ttyUSB0) couldn't be flashed:OSError(22, 'Incorrect function.'). Only aCOMnport goes to the Windows side now. An Audio Kit on/dev/ttyUSB0was erased and flashed this way, and the hash verified.Tests:
test_omip.py(5 new; 3 fail without the change) and a newtest_wsl_esptool.py.test_s2_rom_usbandtest_app_image_offsetpass.