Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By brutzler
#25666 The Windows-version from igrr can do this...

Code: Select allC:\ArduinoEsp8266>mkspiffs.exe --version
mkspiffs.exe  version: 0.1-1-gad96e33


Will try later on your image and my "homebrew" mkspiffs.exe
User avatar
By martinayotte
#25679 Yes, this is because the Makefile is doing "git describe" during official builds and that provides the tags number as the version. Since you and me are simply building a snapshot, "git describe" doesn't return such tag, so VERSION variable becomes empty.
User avatar
By brutzler
#25692 Made some tests:
mkspiffs.exe is my own compiled
mkspiffs_igrr.exe is the version from yesterday
spiffstest.bin is my binary from yesterday
spiffstest_martin is the binary from martin
spiffstest_ new.bin is a binary created with my new mkspiffs.exe


Code: Select allC:\ArduinoEsp8266>mkspiffs -c spiffs spiffstest_new.bin
/testspiffs.txt

C:\ArduinoEsp8266>mkspiffs -l spiffstest_new.bin
26      /testspiffs.txt

C:\ArduinoEsp8266>mkspiffs_igrr -l spiffstest_new.bin
26      /testspiffs.txt

C:\ArduinoEsp8266>mkspiffs -l spiffstest_martin.bin
788594688       etalic.png
788594688       ourlou.txt
788594688       EADME.md

C:\ArduinoEsp8266>mkspiffs_igrr -l spiffstest_martin.bin
788594688       etalic.png
788594688       ourlou.txt
788594688       EADME.md

C:\ArduinoEsp8266>mkspiffs -l spiffstest.bin
--> here the program always crashing with a windows error

C:\ArduinoEsp8266>mkspiffs_igrr -l spiffstest.bin
26      /testspiffs.txt


Only the spiffstest_martin.bin shows me files on the ESP after flashing. But the listing with mkspiffs.exe looks unnormal
On my spiffstest_new its the other way round. expected listing, but no files in flash.
User avatar
By martinayotte
#25697
Code: Select all788594688       etalic.png
788594688       ourlou.txt
788594688       EADME.md

The output of my binary seems to be a bit odd, filesizes are garbage and first character of the filenames are skipped.
It is like MingW is not getting the "spiffs_dirent" struct aligned properly ... :(

EDIT : I've seen this while googling : http://stackoverflow.com/questions/2401 ... with-mingw
Maybe you should try what this folk mentioned : adding "-mno-ms-bitfields" to the GCC compile flags in the Makefile