All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Mandarino <fmandarino@endrelia.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Write YAFFS filesystem images to NAND
Date: Thu, 07 Sep 2006 14:46:43 -0400	[thread overview]
Message-ID: <edppel$tl4$1@sea.gmane.org> (raw)

Hi,

The attached patch for common/cmd_nand.c provides the ability to write
YAFFS filesystem images to NAND flash memory, using the newer MTD-based
nand code.

The patch extends the nand write command to parse a ".yaffs1" suffix for
yaffs1 filesystems, or a ".yaffs" or ".yaffs2" suffix for yaffs2
filesystems.

Yaffs1 filesystems support 512-byte page, 16-byte oob NAND chips, while
yaffs2 filesystems support 2048-byte page, 64-byte oob NAND chips.

Yaffs1 filesystem images can be generated using the mkyaffsimage utility
in the yaffs2/utils directory.

Yaffs2 filesystem images can be generated using the mkyaffs2image
utility in the yaffs2/utils directory, after applying Sergey Kubushyn's
patch.  See
http://aleph1.co.uk/lurker/message/20060211.004601.77b55bf3.en.html.

So, for example, to write a yaffs1 filesystem image of length 0x526320
from address 0x20000000 in ram to offset 0x100000 in flash, run the command:

   nand write.yaffs1 20000000 100000 526320

The area to be written must be erased before writing the filesystem.

I have tested this code with yaffs1 filesystems, and, in fact, I am
finally able to run Linux with rootfstype=yaffs.  I am unable to test
with yaffs2 filesystems because I don't have access to a system using
2048+64 NAND chips.

Regards,
../fam
-- 
Frank Mandarino                                fmandarino(a)endrelia.com
Endrelia Technologies Inc.
Toronto, Ontario, Canada

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nand_write_yaffs.patch
Type: text/x-patch
Size: 5209 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20060907/d4405bb3/attachment.bin 

             reply	other threads:[~2006-09-07 18:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-07 18:46 Frank Mandarino [this message]
2006-09-07 19:12 ` [U-Boot-Users] [PATCH] Write YAFFS filesystem images to NAND Blair Barnett
2006-09-07 20:07   ` Frank Mandarino

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='edppel$tl4$1@sea.gmane.org' \
    --to=fmandarino@endrelia.com \
    --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 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.