← index #5394Issue #17544
Related · medium · value 1.655
QUERY · ISSUE

Freezing resources that are not Python scripts

openby RJSDevelopened 2019-12-07updated 2020-01-08
enhancement

I want to flash modules with html files together, but I can't read them.
e.g list
_boot.py
public/index.html

I modified makemanifest.py to pass other files types as path, I cheked existing it in the firmware.elf, and it exist, but I cant read it for send by http

May be exist way for read those files or what sorces can I modify for get this possibility?

CANDIDATE · ISSUE

Make ROMFS Bootable.

openby kwagyemanopened 2025-06-21updated 2025-06-23
enhancement

Description

The new ROMFS feature allows users to deploy their application with all necessary resources as a package. This is hugely valuable. However, while ROMFS partitions can contain code, they are not actively searched by default for code. I'd like to suggest that ROMFS partition(s) are searched whenever before/after frozen scripts.

E.g. pyexec_file_if_exists() searches frozen scripts first before the current path. Searching ROMFS should be added in between. When used from main.c to run "boot.py" and "main.py" this would ensure that the ROMS partition is considered and executed first.

Similarly, when searching for an import, before searching for frozen scripts, ROMFS is also interrogated.

...

Generally, the goal here is one where you can put your whole application on ROMFS and then /flash or /sdcard don't matter except for storing logs or config files.

Code Size

This can be an optional feature.

Implementation

I hope the MicroPython maintainers or community will implement this feature

Code of Conduct

Yes, I agree

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied