public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: James <jamessteward@optusnet.com.au>
To: Richard Genoud <richard.genoud@gmail.com>
Cc: linux-mtd <linux-mtd@lists.infradead.org>,
	Alessandro Rubini <rubini-list@gnudd.com>,
	michael <trimarchi@gandalf.sssup.it>
Subject: Re: Help needed with MTD on AT91SAM9263-EK please.
Date: Mon, 26 May 2008 08:50:45 +1000	[thread overview]
Message-ID: <1211755845.6724.29.camel@Ubuntu-Desktop> (raw)
In-Reply-To: <80b317760805230027n7cbf6ccbpc8289b4b3ad80714@mail.gmail.com>


On Fri, 2008-05-23 at 09:27 +0200, Richard Genoud wrote:
> 2008/5/23 James <jamessteward@optusnet.com.au>:
> > What tool chain are you using?
> i think it was buildroot + gcc3.4.6 and glib2.3.2, but i'm not sure.
> 
> On Fri, 2008-05-23 at 09:03 +0200, Alessandro Rubini wrote:
> > So you should only write the boot code with sam-ba, and write your
> > kernel and filesystem from either u-boot or linux. You'll probably
> > want to erase and re-program the boot loader from itself, to get rid
> > of remaining wrong sam-ba bits.
> I agree with Alessandro, don't rely to much on sam-ba for nand writing.
> That's why I asked you to do the test from linux (erase/mount/write/read)

root@at91sam9263ek:~/mtd-tools$ ./flash_eraseall -j /dev/mtd0
Erasing 128 Kibyte @ 3ee0000 -- 99 % complete. Cleanmarker written at
3ee0000.
root@at91sam9263ek:~/mtd-tools$ mount -t
jffs2 /dev/mtdblock0  /mnt/nand/
mtd->read(0x400 bytes from 0xa00000) returned ECC error
mtd->read(0x400 bytes from 0xdc0000) returned ECC error
mtd->read(0x400 bytes from 0xfa0000) returned ECC error
mtd->read(0x400 bytes from 0x13e0000) returned ECC error
mtd->read(0x400 bytes from 0x2000000) returned ECC error
mtd->read(0x400 bytes from 0x20e0000) returned ECC error
mtd->read(0x400 bytes from 0x2680000) returned ECC error
mtd->read(0x400 bytes from 0x2fc0000) returned ECC error
mtd->read(0x400 bytes from 0x3540000) returned ECC error
mtd->read(0x400 bytes from 0x3820000) returned ECC error
root@at91sam9263ek:~/mtd-tools$ umount /mnt/nand/

Then I tried this;
root@at91sam9263ek:~/mtd-tools$ ./nandwrite -a /dev/mtd0 ./fs.jffs2 
Writing data to block 0
Writing data to block 20000
Writing data to block 40000
<snip>
root@at91sam9263ek:~/mtd-tools$ mount -t
jffs2 /dev/mtdblock0  /mnt/nand/
mtd->read(0x1fc0c bytes from 0x3f4) returned ECC error
mtd->read(0x800 bytes from 0x3f800) returned ECC error
mtd->read(0x1f6d4 bytes from 0x2092c) returned ECC error
mtd->read(0x1f7dc bytes from 0x40824) returned ECC error
jffs2_scan_inode_node(): CRC failed on node at 0x0005b020: Read
0x31199cbf, calculated 0x81b0002e
mtd->read(0x1fbf0 bytes from 0x60410) returned ECC error
jffs2_scan_inode_node(): CRC failed on node at 0x00060a4c: Read
0x2072000c, calculated 0x207200ff
mtd->read(0x1f6d8 bytes from 0x80928) returned ECC error
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00094c88:
0x578a instead

<big snip - lots more>

Hardware failures?  Or have I not used the tools correctly?

Regards,
James.

  parent reply	other threads:[~2008-05-25 22:51 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-22  6:20 Help needed with MTD on AT91SAM9263-EK please James
2008-05-23  6:26 ` Richard Genoud
2008-05-23  6:38   ` James
2008-05-23  6:48     ` michael
2008-05-23  7:02       ` James
2008-05-23  7:12         ` michael
2008-05-23  7:13         ` michael
2008-05-23  7:19         ` michael
2008-05-23  7:28           ` James
2008-05-23  6:52     ` Richard Genoud
2008-05-23  7:05       ` James
2008-05-23  7:27         ` Richard Genoud
2008-05-23  7:32           ` James
2008-05-23  7:41           ` michael
2008-05-25 22:50           ` James [this message]
2008-05-27  7:42             ` Richard Genoud
2008-05-27 21:46               ` James
2008-05-28  6:24                 ` Richard Genoud
2008-05-28 22:52                   ` James
2008-05-28 22:59                     ` James
2008-05-29  6:41                       ` Richard Genoud
2008-05-29  6:46                         ` James
2008-05-30  2:05                           ` James
2008-05-23  7:03     ` Alessandro Rubini
2008-05-23  7:08       ` James
2008-05-23  7:09       ` James
2008-05-23  7:39         ` Alessandro Rubini
2008-05-23  7:42           ` James

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=1211755845.6724.29.camel@Ubuntu-Desktop \
    --to=jamessteward@optusnet.com.au \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard.genoud@gmail.com \
    --cc=rubini-list@gnudd.com \
    --cc=trimarchi@gandalf.sssup.it \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox