No space on jffs2 fs

MQuicquaro at necinfrontia.com MQuicquaro at necinfrontia.com
Thu Nov 29 17:18:02 EST 2001


I have a Motorola CF 5272 eval. board.
I am running uClinux 2.4 with mtd/jffs2.

I am currently using the topmost 1MB of flash
partitioned as decribed in Bernhard Kuhn's
uClinux flash device mini howto.

My root filesystem ends up in the last 256K of
flash.

I did a mkfs.jffs2 on my romfs/ directory, padding
it with 0xFFs and then loading it into my flash via
the dBUG "upuser" command.   Everything seems to work
ok except I cannot ever write to my jffs2 fs because
there is never any free space.

What could cause this?

Here is some output from my system:

-----------------------------------------------------------------------------------

uClinux/COLDFIRE(m5272)
COLDFIRE port done by Greg Ungerer, gerg at lineo.com
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
On node 0 totalpages: 1024
zone(0): 0 pages.
zone(1): 1024 pages.
zone(2): 0 pages.
Kernel command line: CONSOLE=/dev/ttyS0,19200 root=1f09
Calibrating delay loop... 43.62 BogoMIPS
Memory available: 3020k/4096k RAM, 0k/0k ROM (562k kernel code, 303k data)
kmem_create: Forcing size word alignment - vm_area_struct
kmem_create: Forcing size word alignment - mm_struct
kmem_create: Forcing size word alignment - filp
Dentry-cache hash table entries: 512 (order: 0, 4096 bytes)
Inode-cache hash table entries: 512 (order: 0, 4096 bytes)
kmem_create: Forcing size word alignment - inode_cache
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
kmem_create: Forcing size word alignment - bdev_cache
kmem_create: Forcing size word alignment - cdev_cache
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 1024 (order: 0, 4096 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
kmem_create: Forcing size word alignment - sock
Starting kswapd
kmem_create: Forcing size word alignment - file lock cache
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications
AB.
ColdFire internal UART serial driver version 1.00
ttyS0 at 0x10000100 (irq = 73) is a builtin ColdFire UART
ttyS1 at 0x10000140 (irq = 74) is a builtin ColdFire UART
kmem_create: Forcing size word alignment - blkdev_requests
block: 64 slots per queue, batch=8
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: FEC ENET Version 0.2, 00:cf:52:72:c3:01
fec: Phy @ 0x0, type 0x001378e2
physmap flash device: 200000 at ffe00000
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit mode
 Amd/Fujitsu Extended Query Table v1.0 at 0x0040
number of CFI chips: 1
0: offset=0x0,size=0x4000,blocks=1
1: offset=0x4000,size=0x2000,blocks=2
2: offset=0x8000,size=0x38000,blocks=1
3: offset=0x40000,size=0x40000,blocks=7
Creating 10 MTD partitions on "Physically mapped flash":
0x00000000-0x00004000 : "boot (16K)"
mtd: Giving out device 0 to boot (16K)
0x00080000-0x00100000 : "kernel (512K)"
mtd: Giving out device 1 to kernel (512K)
0x00100000-0x00200000 : "rootfs (1024K)"
mtd: Giving out device 2 to rootfs (1024K)
0x00004000-0x00006000 : "spare (8K)"
mtd: Giving out device 3 to spare (8K)
0x00006000-0x00008000 : "spare (8K)"
mtd: Giving out device 4 to spare (8K)
0x00040000-0x00080000 : "spare (256K)"
mtd: Giving out device 5 to spare (256K)
0x00000000-0x00200000 : "complete (2048K)"
mtd: Giving out device 6 to complete (2048K)
0x00100000-0x00140000 : "boot J13 (256K)"
mtd: Giving out device 7 to boot J13 (256K)
0x00140000-0x001c0000 : "kernel J13 (512K)"
mtd: Giving out device 8 to kernel J13 (512K)
0x001c0000-0x00200000 : "rootfs J13 (256K)"
mtd: Giving out device 9 to rootfs J13 (256K)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
kmem_create: Forcing size word alignment - ip_dst_cache
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing unused kernel memory: 20k freed
Shell invoked to run file: /etc/rc
Command: hostname uClinux-coldfire
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram0 /var
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: ifconfig lo 127.0.0.1
Command: route add -net 127.0.0.0 lo
SIOCADDRT: Invalid argument
pid 14: failed 1792
Command: dhcpcd -p -a eth0 &
[15]
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

For further information check:
http://www.uclinux.org/

Execution Finished, Exiting

Sash command shell (version 1.1.1)
/> eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX, 10HDX.

/> mount
/dev/root on / type jffs2 (ro)
proc on /proc type proc (rw)
/dev/ram0 on /var type ext2 (rw)
/> mount -orw,remount /
/> mount
/dev/root on / type jffs2 (rw)
proc on /proc type proc (rw)
/dev/ram0 on /var type ext2 (rw)
/> df /
Total Kbytes: 256
Free  Kbytes: 0
Total  nodes: 0
Free   nodes: 0
/> touch fubar
fubar: No space left on device
/>


More information about the linux-mtd mailing list