Skip to contentSkip to conversation

mtd + jffs2 error "No space left on device"

DISCUSSION Michel Fidelis 1 participant 1 message May 23, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hello,

I'm trying to mount a jffs2 file system on a MTD partition. My partition (/dev/mtd1) has 768 KB (0xc0000) (3 flash continuous sectors of 256 KB (0x40000) each one).
I'm thinking the problem is with the -p option in the mkfs.jffs2 command.

The steps I have done are:

1)eraseall /dev/mtd1 (if I use the erase command it just erases the first sector).
2)mkfs.jffs2 -p 0xc0000 -e 0x40000 -d jffs2dir -o jffs2.img (the image is created without erros)
3)cp jffs2.img /dev/mtd1 (it executes without erros) 4)mount -t jffs2 /dev/mtdblock1 /mnt (it executes without erros)

However, when I try to create some file on the /mnt file system I receive the following error: No space left on device.

The df /mnt output is:

Total 768 KB
free 0 KB
total nodes 0 KB
free nodes 0 KB

I'm working with a Motorola m5272c3 board which has an AMD Am29PL160C flash memory (2 MB). I'm using Kernel 2.4.x.

Can anybody help me?