public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Thomas Kuhlmann <maillist@fsforth.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] nand write.jffs2 addr ofs size, what does size mean?
Date: Tue, 12 Oct 2004 17:33:32 +0200	[thread overview]
Message-ID: <200410121733.32927.maillist@fsforth.de> (raw)
In-Reply-To: <20041009223038.6330FC1430@atlas.denx.de>

Hello README.nand says:
> nand write.jffs2 addr ofs size
>  Like `write', but blocks that are marked bad are skipped and the
>  is written to the next block instead. This allows writing writing
>  a JFFS2 image, as long as the image is short enough to fit even
>  after skipping the bad blocks. Compact images, such as those
>  produced by mkfs.jffs2 should work well, but loading an image copied
>  from another flash is going to be trouble if there are any bad blocks.

a) Is ofs+size-1 the maximal address where the NAND is accessed while writing?
b) Is add+size-1 the maximal address where the RAM is accessed while reading?
c) how does this change if bad blocks are detected?

e.g. in RAM at 200.000 is a 100.000bytes long jffs2 image generated by 
mkfs.jffs2. I wan't to install a JFFS2 with this content in NAND at 400.000 
with 100.000bytes.
# nand write.jffs2 200.000 400.000 100.000

what happens if the NAND has some bad blocks, does the write command writes 
beyond 500.000 to the NAND, or does it abort since there is not enough space 
available?

thank you for any hints,
-- 
Thomas Kuhlmann, FS Forth-Systeme GmbH, www.fsforth.de
Kueferstrasse 8, D-79206 Breisach, Germany
Phone: +49 (7667) 908 144 Fax: +49 (7667) 908 244

      reply	other threads:[~2004-10-12 15:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-21 10:01 [U-Boot-Users] [PATCH] jffs2 CFG_CMD_JFFS2 himba
2004-10-09 22:30 ` Wolfgang Denk
2004-10-12 15:33   ` Thomas Kuhlmann [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=200410121733.32927.maillist@fsforth.de \
    --to=maillist@fsforth.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