mkspiffs icon indicating copy to clipboard operation
mkspiffs copied to clipboard

Add ESP8266_RTOS_SDK bulid configuration

Open QB4-dev opened this issue 3 years ago • 1 comments

Hello. This is default configuration for https://github.com/espressif/ESP8266_RTOS_SDK I am using this config to craete spiffs images for ESP8266

QB4-dev avatar Mar 05 '21 10:03 QB4-dev

Thanks @QB4-dev, that works perfectly. I'm now able to flash the binary file built from mkspiffs ESP8266 RTOS SDK to ESP8266 board. Here are my steps:

With partitions.csv:

# Name,   Type, SubType, Offset,  Size, Flags
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
nvs,      data, nvs,     0x9000,  0x6000,
phy_init, data, phy,     0xf000,  0x1000,
factory,  app,  factory, 0x10000, 0xF0000,
storage,  data, spiffs,  0x210000, 1M,

Run this command to generate bin file data_output from all files inside folder data:

./mkspiffs -c data/ -b 4096 -p 256 -s 0x100000 data_output

Then flash

esptool.py -p /dev/ttyUSB0 write_flash 0x210000 data_output

All file inside folder data now can be read and written with ESP8266 RTOS SDK.

TranPhucVinh avatar Nov 20 '21 22:11 TranPhucVinh