All of lore.kernel.org
 help / color / mirror / Atom feed
From: eugene.kozlov@promwad.com
To: "howhowwork" <howhowwork@163.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: samsung nand jffs2 errors
Date: Fri, 19 Jan 2007 16:39:27 +0200 (EET)	[thread overview]
Message-ID: <59166.127.0.0.1.1169217567.squirrel@localhost> (raw)
In-Reply-To: <200701190824404064520@163.com>

Hi howhowwork

Yes i use flash_eraseall -j /dev/mtd/1 as you can see it in nanddump i
just forgot to write it in message

For me its not a clear to understand what is happening because when i
increase chip_delay - it not solve the problem but using delay between
jffs2_check_nand_cleanmarker solve this.

I have some question:
In nand.h:
 * @dev_ready:          [BOARDSPECIFIC] hardwarespecific function for
accesing device ready/busy line
 *                      If set to NULL no access to ready/busy is
available and the ready/busy information
 *                      is read from the chip status register

But i see only using chip_delay when ready/busy pin not available:
                if (!this->dev_ready) {
                        udelay (this->chip_delay);
                        return;
                }
So i need to realise in hardwarespicific function @dev_ready read from the
chip status register or this should be done in nand_base.c?????
Because if first it's need to implement read things from nand_base.c in
hardwarespecific function and this not good practice!!!!

thanx

> Hi  eugene
> To prepare jffs2 image i use: mkfs.jffs2 -o jffs2_image -s 512 -e 16384 -d
>> jffs2_dir -p 0x4000 -n
>> I erase flash with "flash_eraseall /dev/mtd/1" from mtd utils and copy
>> image to flash by nandwrite.
>
> "flash_eraseall /dev/mtd/1 " you maybe use "flash_eraseall -j  /dev/mtd/1"
> when jffs2 scan eraseblock ,it do not need to write the message "OOB Data:
> ff ff ff ff ff ff ff ff 85 19 03 20 08 00 00 00"
>
>
>
>
> howhowwork
> 2007-01-19
>

       reply	other threads:[~2007-01-19 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200701190824404064520@163.com>
2007-01-19 14:39 ` eugene.kozlov [this message]
2007-01-17 14:42 samsung nand jffs2 errors eugene.kozlov
2007-01-18 11:15 ` eugene.kozlov

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=59166.127.0.0.1.1169217567.squirrel@localhost \
    --to=eugene.kozlov@promwad.com \
    --cc=howhowwork@163.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.