micropython/tools/mpremote/mpremote
iabdalkader 9e9be83fd6 tools/mpremote: Allow .img for ROMFS file and validate ROMFS image.
Currently the tool allows writing an invalid ROMFS image, with a bad header
or images smaller than minimum size, and only checks the image extension.

This commit allows deploying a ROMFS with either a ".img" or ".romfs"
extension (in the future support may be added for other extensions that
have different semantics, eg a manifest), and validates the image header
before writing.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-04-08 00:27:55 +10:00
..
__init__.py tools/mpremote: Use hatch to build mpremote package. 2023-02-24 11:40:22 +11:00
__main__.py tools/mpremote: Allow running mpremote with python -m. 2022-03-30 15:29:26 +11:00
commands.py tools/mpremote: Allow .img for ROMFS file and validate ROMFS image. 2025-04-08 00:27:55 +10:00
console.py all: Fix cases of Python variable assigned but never used. 2023-05-02 16:36:05 +10:00
main.py tools/mpremote: Add romfs query, build and deploy commands. 2025-03-06 12:52:35 +11:00
mip.py tools/mpremote: Make mip install skip /rom*/lib directories. 2025-03-27 17:10:00 +11:00
repl.py tools/mpremote: Detach mpremote from pyboard.py. 2023-06-02 17:42:13 +10:00
romfs.py tools/mpremote: Add romfs query, build and deploy commands. 2025-03-06 12:52:35 +11:00
transport_serial.py tools/mpremote: Optimise readline support in mount. 2025-02-28 14:14:39 +11:00
transport.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00