<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Copying ovms developers in, and some useful information here…</div><div class=""><br class=""></div><div class="">To get a copy of the FAT filesystem:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">$ cat partitions.csv</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class=""># OVMS 16MB flash ESP32 Partition Table</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class=""># Name, Type, SubType, Offset, Size</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">nvs, data, nvs, 0x9000, 0x4000</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">otadata, data, ota, 0xd000, 0x2000</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">phy_init, data, phy, 0xf000, 0x1000</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">factory, app, factory, 0x10000, 4M</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">ota_0, app, ota_0, , 4M</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">ota_1, app, ota_1, , 4M</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">store, data, fat, , 1M</span></font></div></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class=""><br class=""></span></font></div><div class=""><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">$ bc</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">65536+(3*4*1024*1024)</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">==> 12648448</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">1024*1024</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">==> 1048576</span></font></div></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class=""><br class=""></span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">$ ~/esp/esp-idf/components/esptool_py/esptool/esptool.py --port /dev/tty.SLAB_USBtoUART --baud 921600 read_flash 12648448 1048576 fatty</span></font></div><div class=""><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">esptool.py v2.2.1</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">…</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">1048576 (100 %)</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">Read 1048576 bytes at 0xc10000 in 12.9 seconds (649.4 kbit/s)…</span></font></div></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class=""><br class=""></span></font></div><div class=""><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">$ file fatty</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">fatty: DOS/MBR boot sector, code offset 0xfe+2, OEM-ID "MSDOS5.0", Bytes/sector 4096, FAT 1, root entries 512, sectors 250 (volumes <=32 MB) , Media descriptor 0xf8, sectors/FAT 1, sectors/track 63, heads 255, serial number 0x210000, unlabeled, FAT (1Y bit by descriptor)</span></font></div></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class=""><br class=""></span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">$ mkdir f</span></font></div><div class=""><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">$ losetup /dev/loop0 fatty</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">$ mount -t vfat /dev/loop0 f</span></font></div></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">$ ls -l f</span></font></div><div class=""><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">drwxr-xr-x 0 root root 4096 Jan 1 1980 ovms_config</span></font></div></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class=""><br class=""></span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">$ umount f</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">$ losetup -d /dev/loop0</span></font></div></blockquote><div class=""><br class=""></div><div class="">The above _should_ work, but I haven’t done much testing on it.</div><div class=""><br class=""></div>To wipe the entire flash, and re-flash with latest:<div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">make erase_flash</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class="">make flash</span></font></div></blockquote><div class=""><div><br class=""></div><div>You could probably just erase that one flash partition, but the above is quick and simple.</div><div><br class=""></div><div>Regards, Mark.</div><div><br class=""></div><br class=""></div></body></html>