Prebake vfs partition
Hello, I'm compiling micropython v1.18.0 in the port ESP32 with my scripts as frozen codes, but I need to store some data files (for example html files) in the vfs partition for scripts to work normally. I've tried to use rshell to copy the files after the firmware has been written in the flash, but it is slow and sometimes fails becuase the main program start to execute and then reset the board because it doesn't find the required files. So, there is a way to prebake (or prefilled) the vfs partition when the micropython firmware is built, so the firmware already has my scripts and the required data files?
Feature-request: Put the GENERIC download on the ESP32 web page, and move all non-critical modules to vfs
Please put the ESP32_GENERIC link into this page: https://micropython.org/download/?port=esp32
Please make the ESP32_GENERIC build only contain these modules in the firmware (with suitable adjustments if needed so auto-detect when needed, so the firmware works on boards potentially missing that hardware):
Dual-core, External Flash, External RAM, DAC, WiFi
Please move all of these (plus any others) into the VFS partition, and allow us to specify the pin(s) etc they use ourselves:
Audio Codec, BLE, Battery Charging, CAN, Camera, Display, Environment Sensor, Ethernet, Feather, IMU, JST-PH, JST-SH, LoRa, Microphone, PoE, RGB LED, SDCard, Secure Element, USB, USB-C, microSD, mikroBUS...
Please make 2 release available: the main one, which includes the VFS partition (flashing this will erase all user files), and a minimal one, which does not include the VFS partition (flashing this leaves user files alone).
The above feature-requests maximize all tradeoffs between code-size, feature-support, and hardware-support, while simultaneously reducing the vastly unnecessary number of builds and firmware releases: everyone can use the same firmware on all boards, with just different VFS for all the different boards out there.
I expect this would be a minor change to the build process (omitting the step which merges the .mpy modules into the firmware, and replacing it with one which puts them into a vsf.bin file instead).