-
Notifications
You must be signed in to change notification settings - Fork 100
NFAQ (Not Frequently Asked Questions)
Easy...
- Create a new repository on your github account. Let's call it "TTGO-Wiki".
- Clone the rdzTTGOsonde wiki repository to your local machine:
git clone https://github.com/dl9rdz/rdz_ttgo_sonde.wiki.git
- Remove the original remote and add your new github repo as the new origin
git remote rm origin
git remote add origin https://github.com/<your github account name>/TTGO-Wiki.git
git push -u origin master
4a. Make your changes locally and then commit and push them to the github account
4b. Or edit the Wiki files online at github.com
- Send me a link to your repository, with a short description of your changes (e-mail or issue on gitlab)
Easy...
First you need to find out where the SPIFFS is in your image (if you use images from rdzsonde.moo.com dated before Oct 27, 2019, or using an old version of Arduino IDE, its probably at 0x291000; otherwise, it should be at 0x290000). You can just pick a value and try, or you can read the ESP's partition table:
python <path>/esptool.py -p <port> -b 460800 read_flash 0x8000 0xC000 parttable.bin
python <path>/gen_esp32part.py parttable.bin parttable.csv
grep spiffs parttable.csv
(replace <path>
with the place where these two tools are installed, and <port>
with the serial port your board is connected to). You should get an output such as:
spiffs,data,spiffs,0x290000,1472K,
Second, you can extract the SPI flash file system (if your starting address is different to 0x290000, replace 0x290000 with the address you obtained above, and 0x170000 with the size until the end of the flash (0x400000-start address, or use above size 1472k=1472*1024byte=1507328=0x170000). For start at 0x291000, the size is 0x16F000.
python esptool.py -p /dev/tty.SLAB_USBtoUART -b 460800 read_flash 0x290000 0x170000 flash.bin
mkspiffs -b 4096 -p 256 -s 1507328 -u out flash.bin
You will get all files in the "out" folder.