Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupt/unusable image created without "-b" option #61

Open
GarryG opened this issue Jan 24, 2019 · 1 comment
Open

Corrupt/unusable image created without "-b" option #61

GarryG opened this issue Jan 24, 2019 · 1 comment

Comments

@GarryG
Copy link

GarryG commented Jan 24, 2019

I tried to get mkspiffs to work on my Linux system, based off of the 0.2.2 / 0.3.7 release of the code. While images were created, I tried to use the options that the Arduino plugin used for creation of the spiffs image:

mkspiffs -c testdir -p 256 -b 8192 -s 1028096 spiffs.img

(default settings for a Wemos D1 R1 w/ 1M spiffs)

While the 0.2.0 version of mkspiffs creates an image without complaining when using these options, and the image is perfectly fine on the device itself, 0.2.2 complains about the -b option:

error: Image size should be a multiple of block size

Problem is, not using the option causes the image to be corrupt or at least unusable on the ESP, only a small part of the files are readable.

Not sure if either the "error" or the "should" is correct on that message, but at least there is some problem here that needs to be further analyzed ...

@bertrandlo
Copy link

bertrandlo commented Feb 3, 2019

@GarryG confirm the same situation. -p 256 -b 8192 -s 1028096 stop to work.

--version output
mkspiffs ver. 0.2.3-6-g983970e
Build configuration name: generic
SPIFFS ver. 0.3.7-5-gf5e26c4
Extra build flags: (none)
SPIFFS configuration:
SPIFFS_OBJ_NAME_LEN: 32
SPIFFS_OBJ_META_LEN: 0
SPIFFS_USE_MAGIC: 1
SPIFFS_USE_MAGIC_LENGTH: 1
SPIFFS_ALIGNED_OBJECT_INDEX_TABLES: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants