[U-Boot] YAFFS2 and getting the NAND formatted

Scott Wood scottwood at freescale.com
Sat Aug 1 01:09:36 CEST 2009


J.C. Wren wrote:
> I see references to 'nand write.yaffs2' which looks like it might do what I
> want, but that seems to be non-existent.  Was this replaced by something
> else?

It's not yet supported in mainline.  There have been some patches 
floating around, but none has been formally submitted for merging.

See:
http://git.denx.de/?p=u-boot/u-boot-blackfin.git;a=commitdiff;h=44f07de8cc94836cd3b0fd2fb0cf8b8651461087

> All the solutions that don't involve 'nand write.yaffs2' involve booting to
> Linux and mounting /dev/mtdblockX... Which doesn't really work when you
> don't a root filesystem (No Ethernet, USB doesn't work right yet (can't get
> a kernel to recognize the USB pen drive, although u-boot does quite nicely).

You could try using an initrd/initramfs (attached to the kernel image, 
or loaded by u-boot) which includes the image to be written.

Or you could try using jffs2 to bootstrap things.

Or fix USB. :-)

-Scott


More information about the U-Boot mailing list