jffs2

Can the logical erase block size of an MTD device be increased?

社会主义新天地 提交于 2019-12-12 02:52:24
问题 The minimum erase block size for jffs2 (mtd-utils version 1.5.0, mkfs.jffs2 revision 1.60) seems to be 8KiB: Erase size 0x1000 too small. Increasing to 8KiB minimum However I am running Linux 3.10 with an at25df321a, m25p80 spi32766.0: at25df321a (4096 Kbytes), and the erase block size is only 4KiB: mtd5 Name: spi32766.0 Type: nor Eraseblock size: 4096 bytes, 4.0 KiB Amount of eraseblocks: 1024 (4194304 bytes, 4.0 MiB) Minimum input/output unit size: 1 byte Sub-page size: 1 byte Character

O_DIRECT support on a jffs2 Linux filesystem

你离开我真会死。 提交于 2019-12-11 07:03:03
问题 Im trying to use O_DIRECT to open a file and we're using jffs2 fd = open(filename, O_RDONLY|O_DIRECT|O_SYNC); But i only get an "invalid argument" error. I have also tried the solutions in this SO link but to no avail. Ofcourse i have also put in "-D_GNU_SOURCE" in building the source. I've read that O_DIRECT is not supported on tmpfs, but couldn't find support or un-support for jffs2. If someone could give me proof or un-proof for jffs2 support and/or any other thing i'm missing to make O