public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] NAND "bad block" support
Date: Mon, 6 Aug 2007 17:30:44 +0200	[thread overview]
Message-ID: <200708061730.44574.sr@denx.de> (raw)
In-Reply-To: <OF6445E37F.85BA0D85-ONC225732F.0047CE6B-C325732F.004C2969@visonic.com>

Hi Shai,

On Monday 06 August 2007, Shai Lifshitz wrote:
> I am planning to use the U-Boot to load the Linux operating system that is
> stored on a NAND flash.
>
> The UBoot main role (beside other tasks) is to load the linux kernel and
> file-system from the NAND flash to the RAM, and start the linux.
> Another role of UBoot is to get the kernel and file-system from the
> ethernet, and burn it to the NAND flash.

OK, that's what U-Boot is designed for.

> What is the preferred way to treat the "bad block" problem in writing (not
> writing to bad blocks, and checking the status after programming/erasing)
> and reading (jumping over bad blocks).
>
> 1) Does normal read/write coop with these issues?

Yes.

> 2) In the NAND documentation it says that the "shipped bad blocks" have to
> be checked prior to any erase operations. Does the UBoot leave the bad
> blocks untouched during the erase operation?

Yes.

> 3) Do you recommend to use JFFS2 file-system just to save/read the
> kernel/file-system images?

The kernel doesn't need to be saved in a filesystem at all. I would reserve 
one flash partition for it and read/write it from there. Some goes for the 
root filesystem if you don't have to write to it from Linux. You could use 
cramfs, romfs, initrd etc.

BTW: Please note that U-Boot "only" supports JFFS2 read operations. For 
writing to NAND (and NOR...) you will have to write raw data to the chip. But 
that's what the interface is designed for and what is already working in lots 
of projects.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

      reply	other threads:[~2007-08-06 15:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-05 18:43 [U-Boot-Users] NAND "bad block" support Shai Lifshitz
2007-08-06 10:12 ` Stefan Roese
2007-08-06 14:56   ` Shai Lifshitz
2007-08-06 15:30     ` Stefan Roese [this message]

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=200708061730.44574.sr@denx.de \
    --to=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /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