public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* No space left on device
@ 2002-03-19 17:27 Sebastian
  2002-03-20 17:27 ` David Woodhouse
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian @ 2002-03-19 17:27 UTC (permalink / raw)
  To: linux-mtd

Hi,

I'm trying to use JFFS2 on a 512K AMD (AM29F040B) flash chip (8 erase
blocks) installed on the IBM Walnut board. I was able to create a JFFS2
image with mkfs.jffs2, erase the flash, and then copy the image to the flash
( about 200 bytes). I can mount the mtdblock and browse the files on the
JFFS2 file system, but I cannot make any changes to the existing files or
add new ones. Everytime I try to modify it I get the 'No space left on
device' error. I had a quick look through the JFFS2 code and I see that
there has to be at least 5 free erase blocks (+ data) for the FS to function
properly ... but I have 8! I tried changing JFFS2_RESERVED_BLOCKS_BASE from
3 to 1 (which gives a total of 3 blocks for minimum requirement) and it
still didn't work. Am I missing something here? Do I have to pad my image
with 0xFF and make it 512K before I copy it? Is there another way to make
the image and copy it to the flash ... etc?

Regards,
Sebastian Vaitus

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-03-27 19:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-19 17:27 No space left on device Sebastian
2002-03-20 17:27 ` David Woodhouse
2002-03-27 18:49   ` Sebastian
2002-03-27 19:13     ` David Woodhouse
2002-03-27 19:58       ` Sebastian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox