* [U-Boot] Writing a YAFFS image to NAND
@ 2009-04-03 18:44 Peter Barada
2009-04-03 18:54 ` Scott Wood
0 siblings, 1 reply; 4+ messages in thread
From: Peter Barada @ 2009-04-03 18:44 UTC (permalink / raw)
To: u-boot
Is there support in the 2009.03 version of U-boot to allow writing a
YAFFS image created by mkyaffs2image to NAND, including the meta-data in
the OOB?
Looking over the nand write/read commands, they look to ignore the OOB
data interleaved in the image (i.e. 2048+16 bytes per page for
large-block NAND). I did see a patch from fmandarino on the list, but
that doesn't look to be in the 2009.03 codebase.
Thanks in advance!
--
Peter Barada <peterb@logicpd.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Writing a YAFFS image to NAND
2009-04-03 18:44 [U-Boot] Writing a YAFFS image to NAND Peter Barada
@ 2009-04-03 18:54 ` Scott Wood
2009-04-03 22:40 ` Mike Frysinger
2009-05-19 23:29 ` Mike Frysinger
0 siblings, 2 replies; 4+ messages in thread
From: Scott Wood @ 2009-04-03 18:54 UTC (permalink / raw)
To: u-boot
Peter Barada wrote:
> Is there support in the 2009.03 version of U-boot to allow writing a
> YAFFS image created by mkyaffs2image to NAND, including the meta-data in
> the OOB?
Not that I know of (unless something in cmd_yaffs2.c can do it).
> Looking over the nand write/read commands, they look to ignore the OOB
> data interleaved in the image (i.e. 2048+16 bytes per page for
> large-block NAND). I did see a patch from fmandarino on the list, but
> that doesn't look to be in the 2009.03 codebase.
That was several years ago; if someone wants to submit a proper patch
against current u-boot (without the pre-2.6.18 support, or at least with
the newer format being the default), I'll apply it. Better yet would be
a more general mechanism whereby the user specifies how many OOB bytes
are interleaved in the supplied image, without any specific knowledege
of yaffs.
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Writing a YAFFS image to NAND
2009-04-03 18:54 ` Scott Wood
@ 2009-04-03 22:40 ` Mike Frysinger
2009-05-19 23:29 ` Mike Frysinger
1 sibling, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2009-04-03 22:40 UTC (permalink / raw)
To: u-boot
On Friday 03 April 2009 14:54:06 Scott Wood wrote:
> Peter Barada wrote:
> > Is there support in the 2009.03 version of U-boot to allow writing a
> > YAFFS image created by mkyaffs2image to NAND, including the meta-data in
> > the OOB?
>
> Not that I know of (unless something in cmd_yaffs2.c can do it).
>
> > Looking over the nand write/read commands, they look to ignore the OOB
> > data interleaved in the image (i.e. 2048+16 bytes per page for
> > large-block NAND). I did see a patch from fmandarino on the list, but
> > that doesn't look to be in the 2009.03 codebase.
>
> That was several years ago; if someone wants to submit a proper patch
> against current u-boot (without the pre-2.6.18 support, or at least with
> the newer format being the default), I'll apply it. Better yet would be
> a more general mechanism whereby the user specifies how many OOB bytes
> are interleaved in the supplied image, without any specific knowledege
> of yaffs.
i'm in windows atm so i cant post a proper patch, but this link should be
useful:
http://blackfin.uclinux.org/git/?p=readonly-mirrors/u-
boot.git;a=commitdiff;h=b71bce9d98776f4b5aeecfae151f8961a6ef8e98
-mike
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Writing a YAFFS image to NAND
2009-04-03 18:54 ` Scott Wood
2009-04-03 22:40 ` Mike Frysinger
@ 2009-05-19 23:29 ` Mike Frysinger
1 sibling, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2009-05-19 23:29 UTC (permalink / raw)
To: u-boot
On Friday 03 April 2009 14:54:06 Scott Wood wrote:
> Peter Barada wrote:
> > Is there support in the 2009.03 version of U-boot to allow writing a
> > YAFFS image created by mkyaffs2image to NAND, including the meta-data in
> > the OOB?
>
> Not that I know of (unless something in cmd_yaffs2.c can do it).
>
> > Looking over the nand write/read commands, they look to ignore the OOB
> > data interleaved in the image (i.e. 2048+16 bytes per page for
> > large-block NAND). I did see a patch from fmandarino on the list, but
> > that doesn't look to be in the 2009.03 codebase.
>
> That was several years ago; if someone wants to submit a proper patch
> against current u-boot (without the pre-2.6.18 support, or at least with
> the newer format being the default), I'll apply it. Better yet would be
> a more general mechanism whereby the user specifies how many OOB bytes
> are interleaved in the supplied image, without any specific knowledege
> of yaffs.
here's an updated patch for 2009.03, but i dont think it'll work with latest
master due to all the oob stuff being dropped ?
http://git.denx.de/?p=u-boot/u-boot-blackfin.git;a=commitdiff;h=44f07de8cc94836cd3b0fd2fb0cf8b8651461087
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090519/f87d684a/attachment.pgp
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-19 23:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-03 18:44 [U-Boot] Writing a YAFFS image to NAND Peter Barada
2009-04-03 18:54 ` Scott Wood
2009-04-03 22:40 ` Mike Frysinger
2009-05-19 23:29 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox