Skip to content
Discussion options

You must be logged in to vote

Your firmware must have ROMFS partation. Try

>>> from esp32 import Partition as part
>>> part.find(1,0x8f)
[<Partition type=1, subtype=143, address=2162688, size=2031616, label=romfs, encrypted=0>]

If part.find(1,0x8f) return [] then you have no romfs partation in your flash.

$ mpremote a1 romfs query
ROMFS is not enabled on this device

Having romfs partation is not enough, you also need to enable it.
Build firmware using custom board mpconfigboard.h with:

// Enable ROMFS
#define MICROPY_VFS_ROM                     (1)
#define MICROPY_VFS_ROM_IOCTL               (1)

Now, firmware built with romfs-partation + MICROPY_VFS_ROM,
The import path will have /rom:

>>> import sys
>>> sys.path
['…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

Josverl
Sep 7, 2026
Collaborator Sponsor

You must be logged in to vote
2 replies
@VirtualWolf
Comment options

@Josverl
Comment options

Josverl Sep 9, 2026
Collaborator Sponsor

Comment options

You must be logged in to vote
2 replies
@shariltumin
Comment options

@VirtualWolf
Comment options

Answer selected by VirtualWolf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
4 participants