Hi guys,

I am trying to use the memory W25Q256JVEIQ, with SMARTS FS. To do it I
added the support for this memory in "drivers/mtd/w25.c". I just added the
code below
















*..#define W25_JEDEC_CAPACITY_256MBIT 0x19  /* 8192x4096 = 256Mbit memory
capacity */../* 256M-bit / 32M-byte (33,554,432) * * W25Q256JV (Standard
SPI) */else if (capacity == W25_JEDEC_CAPACITY_256MBIT)  {
priv->nsectors = NSECTORS_256MBIT;  }..*

The memory initialization seems to go well. I can run the mksmartfs
utility, mount and write to the filesystem. However when I reboot the board
I can't mount the filesystem again. The function smartfs_mount() returns
the error "ERROR: No low-level format found".

The documentation says that SMARTS FS is designed to work with 1M byte to
16M byte in size (though this is not a limitation). So I changed the
priv->nsectors from NSECTORS_256MBIT to NSECTORS_128MBIT to see if the
problem was with the size of the memory. After this change the file system
started to work as expected.

Should SMARTS FS work with memories larger than 16M, since in the docs it
is said that this is not a limitation? If SMART FS is limited to memories
smaller than 16M do you recommend another filesystem?

Thanks

Daniel Pereira de Carvalho

Reply via email to