[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JFFS2: powerfailtesting again



David Woodhouse wrote:

> vserov@xxxxxxx.com said:
> >  By the way do you know what the kernel message 'Chip not ready after
> > erase suspended' means ?
>
> It means that the chip didn't report its willingness to talk to us after we
> told it to stop erasing for a while and give us some data.
>
> It's possible that the chip you're using doesn't actually support erase
> suspend, and the driver is attempting it anyway. Can you change the "#if 0"
> at about line 117 of cfi_cmdset_0001 to "#if 1" and report what it says
> about your flash chip?

Hi, David.

I had attached log to this message. BTW flash chip i'm using is bit unusual.
It reports cmdset #3 which is not supported, but works (appears not quite
well) with cmdset #1. I've patched for this cfi_probe.c :

diff -urNBbw linux-2.4.3-rmk2-np1/drivers/mtd/chips/cfi_probe.c
linux-2.4.3-rmk2-np1-infra/drivers/mtd/chips/cfi_probe.c
--- linux-2.4.3-rmk2-np1/drivers/mtd/chips/cfi_probe.c  Sat Apr 28 16:43:45
2001
+++ linux-2.4.3-rmk2-np1-infra/drivers/mtd/chips/cfi_probe.c    Fri Apr 27
17:35:00 2001
@@ -627,6 +627,7 @@
                 */
 #ifdef CONFIG_MTD_CFI_INTELEXT
        case 0x0001:
+       case 0x0003:
                return cfi_cmdset_0001(map, primary, base);
 #endif
 #ifdef CONFIG_MTD_CFI_AMDSTD

Regards,
Vladimir.

DRAM banks detected: 00000404
Infra PBX booting...
Uncompressing Linux............................................. done, booting the kernel.
Linux version 2.4.5-rmk1 (serov@xxxxxxx.3 20010315 (release)) #2   29 14:25:25 MSD 2001
Processor: Intel StrongARM-1100 revision 11
Architecture: Intel Brutus (SA1100 eval board)
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 1 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: rw dram_banks=0x00000404 
Relocating machine vectors to 0xffff0000
Calibrating delay loop... 124.51 BogoMIPS
Memory: 16MB 16MB = 32MB total
Memory: 30704KB available (1198K code, 234K data, 40K init)
Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
pty: 256 Unix98 ptys configured
Real Time Clock Driver v1.10d
Software Watchdog Timer: 0.05, timer margin: 60 sec
block: queued sectors max/low 20336kB/6778kB, 64 slots per queue
loop: loaded (max 8 devices)
PPP generic driver version 2.4.1
PPP Deflate Compression module registered
PPP BSD Compression module registered
SA1100 flash: probing for 3 partitions (buswidth = 2)
SA1100: Found 1 x16 devices at 0x0 in 16-bit mode
  Feature/Command Support: 000E
     - Chip Erase:         unsupported
     - Suspend Erase:      supported
     - Suspend Program:    supported
     - Legacy Lock/Unlock: supported
     - Queued Erase:       unsupported
     - Instant block lock: unsupported
     - Protection Bits:    unsupported
     - Page-mode read:     unsupported
     - Synchronous read:   unsupported
  Supported functions after Suspend: 01
     - Program after Erase Suspend: supported
  Block Status Register Mask: 0003
     - Lock Bit Active:      yes
     - Valid Bit Active:     yes
  Vcc Logic Supply Optimum Program/Erase Voltage: 0.7 V
  Vpp Programming Supply Optimum Program/Erase Voltage: 0.0 V
JEDEC ID: 89 C5
0: offset=0x0,size=0x2000,blocks=8
1: offset=0x10000,size=0x10000,blocks=63
SA1100 flash access initialized
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
jffs2_scan_empty(): Empty block at 0x002e000c ends at 0x002e23f8 (with 0xe0021985)! Marking dirty
jffs2_scan_inode_node(): Data CRC failed on node at 0x002ee6dc: Read 0xa2689a7b, calculated 0x8fab2edc
jffs2_scan_inode_node(): Data CRC failed on node at 0x002fbc50: Read 0x25ec3476, calculated 0x230d303d
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 40K
serial console detected.  Disabling virtual terminals.
init started:  BusyBox v0.52pre (2001.05.14-13:03+0000) multi-call binary
mounted /proc, /tmp, /dev/pts
created /var/etc /var/log /var/run /var/tmp
started syslogd
sh-2.03#