All of lore.kernel.org
 help / color / mirror / Atom feed
From: ramprasad <ramprasad@ncoretech.com>
To: linux-mtd@lists.infradead.org
Subject: Samsung nand flash on pxa
Date: Sat, 10 Sep 2005 17:13:18 +0530	[thread overview]
Message-ID: <4322C6D6.2010805@ncoretech.com> (raw)

Hi,
	I am working on 2.6.12 kernel with the latest mtdsnap shot.I have 
Samsung nand chip K9F1208UoM and it is on GPIO.Nand chip is detecting 
and i am able to mount also. when i mount i get this error messages ,but 
it mounts.

BOOT messages....

NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 
3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 0 at 0x00000000
Bad eraseblock 185 at 0x002e4000
cmdlinepart partition parsing not available
Using static partition definition
Creating 2 MTD partitions on "edb7312-nand":
0x00000000-0x00800000 : "EP7312 Nand Flash"
mtd: Giving out device 4 to EP7312 Nand Flash
0x00800000-0x04000000 : "EP7312 Nand Flash"
mtd: Giving out device 5 to EP7312 Nand Flash
pxa2xx_udc: version 14-Dec-2003


Mount messages.....

#mount -t jffs2 /dev/mtdblock4 /mnt/cf/

nand_read_ecc: Failed ECC read, page 0x000000e0
nand_read_ecc: Failed ECC read, page 0x000000e0
mtd->read(0x400 bytes from 0x1c000) returned ECC error
nand_read_ecc: Failed ECC read, page 0x00000120
nand_read_ecc: Failed ECC read, page 0x00000120
mtd->read(0x400 bytes from 0x24000) returned ECC error
nand_read_ecc: Failed ECC read, page 0x000001c0
mtd->read(0x400 bytes from 0x38000) returned ECC error
nand_read_ecc: Failed ECC read, page 0x000002e0
nand_read_ecc: Failed ECC read, page 0x000002e0
mtd->read(0x400 bytes from 0x5c000) returned ECC error
nand_read_ecc: Failed ECC read, page 0x00000320
nand_read_ecc: Failed ECC read, page 0x00000320
mtd->read(0x400 bytes from 0x64000) returned ECC error
nand_read_ecc: Failed ECC read, page 0x000003c0
mtd->read(0x400 bytes from 0x78000) returned ECC error
nand_read_ecc: Failed ECC read, page 0x000004e0
nand_read_ecc: Failed ECC read, page 0x000004e0
mtd->read(0x400 bytes from 0x9c000) returned ECC error
nand_read_ecc: Failed ECC read, page 0x00000520
nand_read_ecc: Failed ECC read, page 0x00000520
mtd->read(0x400 bytes from 0xa4000) returned ECC error

NAND write gives me this......

./nandwrite -j -f /dev/mtd4 nand.jffs2

MTD_open
MTD_ioctl
MTD_ioctl
MTD_ioctl
Writing data to block 0
MTD_ioctl
Bad block at 0, 1 block(s) from 0 will be skippedMTD_ioctl
 

Writing data to block 4000
MTD_write
MTD_write
MTD_write
MTD_write
MTD_write
MTD_write
MTD_write
MTD_write
MTD_write
MTD_write
MTD_write
MTD_write
MTD_write
MTD_write
MTD_write


NANDTEST gives me this


[root@Sarva /root]#./nandtest /dev/mtd4
MTD_open
MTD_ioctl
This will erase the first block of device, continue? y
 

Performing Flash Erase of length 16384 at offset 0...MTD_ioctl
 

nand_erase: Device is write protected!!!
 

MTD Erase failure
: Input/output errorMTD_close
 

[root@Sarva /root]#./nandtest /dev/mtd4
MTD_open
MTD_ioctl
This will erase the first block of device, continue? y
 

Performing Flash Erase of length 16384 at offset 0...MTD_ioctl
 

nand_erase: attempt to erase a bad block at page 0x00000000
 

MTD Erase failure
: Input/output errorMTD_close
 



After mounting if i try to write any thing it writes ,when i REBOOT the 
system nothing remains on the chip.Could  any body give me some pointers.

Thanks in advance,
Ramprasad

                 reply	other threads:[~2005-09-10 11:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4322C6D6.2010805@ncoretech.com \
    --to=ramprasad@ncoretech.com \
    --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.