vfs_merge
Merge a MicroPython firmware and with source files into a single binary that can be flashed to a device.
Merge
- the files in
src/**/* - with the firmware in
firmware/<firmware.bin/uf2>
and write the resulting firmware image to :
- build/firmware.bin or build/firmware.uf2:
Esp32
vfsmerge --port esp32 --firmware ./firmware
INFO | Micropython Port: esp32
INFO | Source folder path: src
INFO | Firmware path: firmware\ESP32_GENERIC-20231005-v1.21.0.bin
INFO | Build path: build
INFO | Create littlefs image: build\littlefs.img
DEBUG | Create new filesystem with: 512 blocks of 4096 bytes = 2048Kb
INFO | Add files from src
DEBUG | Adding /foo.py
DEBUG | Adding /main.py
DEBUG | Adding /lib/bar.py
DEBUG | write filesystem to build\littlefs.img
INFO | Merge firmware and littlefs image into build\firmware_lfs.bin
DEBUG | running: esptool --chip esp32 merge_bin -o build\firmware_lfs.bin --flash_mode dio --flash_size 4MB 0x1000 firmware\ESP32_GENERIC-20231005-v1.21.0.bin 0x00200000 build\littlefs.img
esptool.py v4.6.2
Wrote 0x400000 bytes to file build\firmware_lfs.bin, ready to flash to offset 0x0
RP2 Pico_W
vfsmerge --port rp2-pico_w --firmware .\firmware\rp2-pico-w-20230426-v1.20.0.uf2
INFO | Micropython Port: rp2-pico_w
INFO | Source folder path: src
INFO | Firmware path: firmware\rp2-pico-w-20230426-v1.20.0.uf2
INFO | Build path: build
INFO | Create littlefs image: build\littlefs.img
DEBUG | Create new filesystem with: 212 blocks of 4096 bytes = 848Kb
INFO | Add files from src
DEBUG | Adding /foo.py
DEBUG | Adding /main.py
DEBUG | Adding /lib/bar.py
DEBUG | write filesystem to build\littlefs.img
DEBUG | Running D:\MyPython\vfs_merge\vfs_merge\picotool info -a firmware\rp2-pico-w-20230426-v1.20.0.uf2
DEBUG | Number of blocks: 2736
Program name: MicroPython
Board: pico_w
Number of families: 1
- Family RP2040 at 0x1000_0000
Number of ranges: 1
- Range 0: 0x1000_0000 - 0x100A_B000
LittleFS superblocks: 0
Pico drive info
- Drive start: 0x1012_C000
- Drive end: 0x1020_0000
INFO | Reading littlefs binary image from build\littlefs.img
DEBUG | Extend uf2 with: 3392 blocks
DEBUG | LittleFS image size: 3392 blocks
INFO | Writing 3392 blocks to littlefs.uf2
INFO | > Found LittleFS file system header in block 2736 at 0x1012_C000
INFO | > Found LittleFS file system header in block 2752 at 0x1012_D000
DEBUG | Writing 6128 blocks to build\firmware_lfs.uf2
DEBUG | Number of blocks: 6128
Program name: MicroPython
Board: pico_w
Number of families: 1
- Family RP2040 at 0x1000_0000
Number of ranges: 2
- Range 0: 0x1000_0000 - 0x100A_B000
- Range 1: 0x1012_C000 - 0x1020_0000
LittleFS superblocks: 2
- LittleFS superblock 0: block 2736 at 0x1012_C000
- LittleFS superblock 1: block 2752 at 0x1012_D000
Pico drive info
- Drive start: 0x1012_C000
- Drive end: 0x1020_0000
Metadata
Release files for vfs-merge 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vfs_merge-0.1.2.tar.gz | 805.3 kB | Without provenance | Details for vfs_merge-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vfs_merge-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for vfs_merge-0.1.2-py3-none-any.whl |
Total release size: 1.6 MB
Release files / vfs_merge-0.1.2.tar.gz
| Download URL | vfs_merge-0.1.2.tar.gz |
|---|---|
| Size | 805.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d08758b7f3bbe8cfb3ec21c9af0ea02eb1c15e382d0f935335bac700de83e268
|
|
BLAKE2b-256 checksum How to use checksums |
dc86e1a80379225c41ab36d0d2bb8c5bf9559a52da7fb997d56ad8b9e764328f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.7 Windows/10
|
Release files / vfs_merge-0.1.2-py3-none-any.whl
| Download URL | vfs_merge-0.1.2-py3-none-any.whl |
|---|---|
| Size | 811.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8663a4ce8fc2f0ebbd962f11e6d6455e5a80dd76668088a974cc55093230868a
|
|
BLAKE2b-256 checksum How to use checksums |
3cfbe3b4413dd85e265230213e863961dd5c7661d437afc9beb75b2a0b20a304
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.7 Windows/10
|
Security for vfs-merge 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.