All of lore.kernel.org
 help / color / mirror / Atom feed
From: thomaspang@shaw.ca
To: linux-mtd@lists.infradead.org
Subject: Unable to access JFFS2 filesystem
Date: Tue, 23 Dec 2003 11:25:27 -0800	[thread overview]
Message-ID: <357032fbc0.2fbc035703@shaw.ca> (raw)

I repost this message as I do not get any response.

I integrated the MTD snapshot dated 2003/12/11 into my linux kernel 2.4.22.

Couple questions:

-  cfi_cmdset_0002: Disabling fast programming due to code brokenness.  Any patch to cfi_cmdset_0002.c to fix this.

- What may be causes of those jffs2_scan_eraseblock(): Mgaic bitmask 0x1985 not found at ...?   I have browsed the linux-mtd thread and still haven't figured it out.

- When I accessed the mounted JFFS2 file system, I got "Chip not ready after erase suspended".  Subsequent access gives "Input/output error".

Your help is greatly appreciated.


I turned on the CFI debugging flag and below show the detailed information of the flash that I am using.

Number of erase regions: 3
Primary Vendor Command Set: 0002 (AMD/Fujitsu Standard)
Primary Algorithm Table at 0040
Alternative Vendor Command Set: 0000 (None)
No Alternate Algorithm Table
Vcc Minimum:  2.7 V
Vcc Maximum:  3.6 V
No Vpp line
Typical byte/word write timeout: 16 µs
Maximum byte/word write timeout: 512 µs
Full buffer write not supported
Typical block erase timeout: 1024 ms
Maximum block erase timeout: 16384 ms
Chip erase not supported
Device size: 0x800000 bytes (8 MiB)
Flash Device Interface description: 0x0002
  - supports x8 and x16 via BYTE# with asynchronous interface
Max. bytes in buffer write: 0x1
Number of Erase Block Regions: 3
  Erase Region #0: BlockSize 0x2000 bytes, 8 blocks
  Erase Region #1: BlockSize 0x10000 bytes, 126 blocks
  Erase Region #2: BlockSize 0x2000 bytes, 8 blocks
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit mode

phys_mapped_flash: Found 1 x16 devices at 0x2000000 in 16-bit mode
 Amd/Fujitsu Extended Query Table at 0x0040
  Silicon revision: 2
  Address sensitive unlock: Required
  Erase Suspend: Read/write
  Block protection: 1 sectors per group
  Temporary block unprotect: Supported
  Block protect/unprotect scheme: 4
  Number of simultaneous operations: 119
  Burst mode: Not supported
  Page mode: Not supported
  Vpp Supply Minimum Program/Erase Voltage: 8.5 V
  Vpp Supply Maximum Program/Erase Voltage: 9.5 V
  Top/Bottom Boot Block: 8x8KiB sectors at top & bottom, no WP
phys_mapped_flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 2
Using word write method
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
...
Using physmap partition definition
Creating 4 MTD partitions on "phys_mapped_flash":
0x00000000-0x00800000 : "Physically mapped flash"
mtd: Giving out device 0 to Physically mapped flash
0x00000000-0x00400000 : "boot"
mtd: Giving out device 1 to boot
0x00400000-0x00500000 : "root"
mtd: Giving out device 2 to root
0x00500000-0x00800000 : "fs"
mtd: Giving out device 3 to fs
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 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Fast Floating Point Emulator V0.9 (c) Peter Teichmann.
mtdblock_open
ok
VFS: Mounted root (cramfs filesystem).
Freeing init memory: 48K
init started:  BusyBox v0.60.5 (2003.12.11-19:24+0000) multi-call binary

...

The system is successfully booted up.

# uname -a
Linux (none) 2.4.22 #67 Tue Dec 23 10:50:28 PST 2003 armv5EJb unknown

# more /proc/mtd
dev:    size   erasesize  name
mtd0: 00800000 00010000 "Physically mapped flash"
mtd1: 00400000 00010000 "boot"
mtd2: 00100000 00010000 "root"
mtd3: 00300000 00010000 "fs"

# mount -t jffs2 /dev/mtdblock3 /mnt
mtdblock_open
ok
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00051000: 0xc38f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00051004: 0xfa34 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00051008: 0x18d9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005100c: 0xea31 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00051010: 0xd01e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00051014: 0x3a50 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00051018: 0xc271 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005101c: 0x017f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00051020: 0x7a20 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00051024: 0x9eb2 instead
Further such events for this erase block will not be printed
# cd mnt
# ls
Chip not ready after erase suspended: status = 0x1985
error -5 reading node at 0x0000003c in get_inode_nodes()
jffs2_get_inode_nodes() for ino 2 returned -5
ls: ./20031209: Input/output error
Chip not ready after erase suspended: status = 0x1985
error -5 reading node at 0x00000278 in get_inode_nodes()
jffs2_get_inode_nodes() for ino 3 returned -5
ls: ./20031210: Input/output error
Chip not ready after erase suspended: status = 0x1985
error -5 reading node at 0x000006cc in get_inode_nodes()
jffs2_get_inode_nodes() for ino 4 returned -5
ls: ./20031211: Input/output error
Chip not ready after erase suspended: status = 0x1985
error -5 reading node at 0x00000af0 in get_inode_nodes()
jffs2_get_inode_nodes() for ino 5 returned -5
ls: ./20031217: Input/output error
Chip not ready after erase suspended: status = 0x1985
error -5 reading node at 0x00001254 in get_inode_nodes()
jffs2_get_inode_nodes() for ino 6 returned -5
ls: ./20031218: Input/output error
Chip not ready after erase suspended: status = 0x1985
error -5 reading node at 0x00001524 in get_inode_nodes()
jffs2_get_inode_nodes() for ino 7 returned -5
ls: ./20031219: Input/output error
# ls
ls: ./20031209: Input/output error
ls: ./20031210: Input/output error
ls: ./20031211: Input/output error
ls: ./20031217: Input/output error
ls: ./20031218: Input/output error
ls: ./20031219: Input/output error


(Please note that 2003XXXX are simply plain text files in the JFFS2 filesystem)



- Thomas

             reply	other threads:[~2003-12-23 19:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-23 19:25 thomaspang [this message]
2003-12-24  9:39 ` Unable to access JFFS2 filesystem David Vrabel
2003-12-30 17:32 ` Thayne Harbaugh
  -- strict thread matches above, loose matches on Subject: below --
2003-12-30 18:39 thomaspang
2004-01-02 11:12 ` David Vrabel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=357032fbc0.2fbc035703@shaw.ca \
    --to=thomaspang@shaw.ca \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.