[Yaffs] yaffs problem: !!!!!!!!! Allocator out !!!!!!!!!!!!!…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ start message.txt (text/plain)
+ proc yaffs.txt (text/plain)
Delete this message
Reply to this message
Author: Paul Wang
Date:  
To: Charles.Manning
CC: plima, bbarnett, gdagman, yaffs
Subject: [Yaffs] yaffs problem: !!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!
Hello,

Sorry to disturb, I saw you discussed this problem last month.
Is there any solution?

I meet this problem and have no idea what to do.
Currently I'm using Linux 2.6.12.
And it's a 32M nand flash with 3 mtdbolcks.
first 3M bytes              reserved
following 16M bytes         file system(cramfs)
last 13M bytes              yaffs

I can see it reports few bad blocks for the yaffs.
I always get this error message 
-----------------
yaffs tragedy: no more eraased blocks
!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!
---------------------
And what I did is just using VI to edit a file(no more than 30 bytes).

I have attached the /proc/yaffs file and the message during linux start up.

Really appreciate the help from you?

Thanks.
Paul

Booting image at 20180000 ...
   Image Name:   
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1843632 Bytes =  1.8 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
OK


Starting kernel ...

Linux version 2.6.12 (root@linux) (gcc version 3.4.1) #152 Tue Sep 19 15:37:06 MDT 2006
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Machine: Atmel AT91RM9200
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists
Kernel command line: root=/dev/mtdblock2 noinitrd init=/linuxrc console=ttyS0,115200 rootfstype=cramfs
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 4096 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB = 32MB total
Memory: 30464KB available (1484K code, 322K data, 92K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
SCSI subsystem initialized
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch ()
devfs: boot_options: 0x1
yaffs Sep 19 2006 15:36:43 Installing.
dam drivers
AT91 Watchdog Timer enabled (5 seconds)
ttyS0 at MMIO 0xfefff200 (irq = 1) is a AT91_SERIAL
ttyS1 at MMIO 0xfefc0000 (irq = 6) is a AT91_SERIAL
ttyS2 at MMIO 0xfefc4000 (irq = 7) is a AT91_SERIAL
ttyS3 at MMIO 0xfefc8000 (irq = 8) is a AT91_SERIAL
ttyS4 at MMIO 0xfefcc000 (irq = 9) is a AT91_SERIAL
io scheduler noop registered
io scheduler anticipatory registered
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
NET: Registered protocol family 24
eth0: Link now 100-FullDuplex
eth0: AT91 ethernet at 0xfefbc000 int=24 100-FullDuplex (12:34:56:78:9a:bc)
eth0: Davicom 9196 PHY (Copper)
No valid DiskOnChip devices found
NAND device: Manufacturer ID: 0x98, Chip ID: 0x39 (Toshiba NAND 8MiB 1,8V 8-bit)
flash size: 8 MiB
page size: 512 bytes
OOB area size: 16 bytes
sector size: 8 KiB
pages number: 16384
pages per sector: 16
bus width: 8
bits in sector size: 13
bits in page size: 9
bits in OOB size: 4
flash size with OOB: 8448 KiB
page address bytes: 3
sector address bytes: 2
options: 0x62
Scanning device for bad blocks
Creating 1 MTD partitions on "NAND 8MiB 1,8V 8-bit":
0x00000000-0x00800000 : "NAND simulator partition"
SmartMedia card inserted.
NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 1533 at 0x017f4000
Bad eraseblock 1534 at 0x017f8000
Bad eraseblock 1535 at 0x017fc000
Bad eraseblock 1965 at 0x01eb4000
Bad eraseblock 2046 at 0x01ff8000
Bad eraseblock 2047 at 0x01ffc000
Creating 3 MTD partitions on "NAND 32MiB 3,3V 8-bit":
0x00000000-0x00300000 : "AT91 NAND partition 1, kernel"
0x00300000-0x01300000 : "AT91 NAND partition 2, filesystem"
0x01300000-0x02000000 : "AT91 NAND partition 3a, storage"
udc: at91_udc version 8 March 2005
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 92K
eth0: Setting MAC address to 12:12:12:12:12:12
eth0: Link now 100-FullDuplex
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs: auto selecting yaffs1
block 318 is bad
block 319 is bad
block 320 is bad
block 750 is bad
block 831 is bad
block 832 is bad
Could not open boa.conf for reading.
Initializing random number generator... rm: unable to remove `/etc/random-seed': Read-only file system
urandom start: failed.
done.
Starting network...
Segmentation fault
/etc/init.d/S99App: 2: /app/autostart: not found
BusyBox v1.00 (2006.03.31-08:21+0000) multi-call binary

Usage: busybox [function] [arguments]...
or: [function] [arguments]...

    BusyBox 



Welcome to Linux World.

Linux login:# cat yaffs ?[J
YAFFS built:Sep 19 2006 15:36:43
$Id: yaffs_fs.c,v 1.53 2006/10/03 10:13:03 charles Exp $
$Id: yaffs_guts.c,v 1.40 2006/10/13 08:52:49 charles Exp $

Device 0 "AT91 NAND partition 3a, storage"
startBlock......... 0
endBlock........... 831
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 0
nTnodesCreated..... 100
nFreeTnodes........ 87
nObjectsCreated.... 100
nFreeObjects....... 95
nFreeChunks........ 26431
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 826
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 0
#