All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] yaffs2 u-boot patching support
@ 2012-04-16  4:32 Charles Manning
  2012-04-19 21:40 ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: Charles Manning @ 2012-04-16  4:32 UTC (permalink / raw)
  To: u-boot

Hello ubooters and yaffsers

I was commissioned to refresh yaffs2 in u-boot and add a mechanism to support 
dynamic yaffs partition set up (way simpler than screwing around with mtd 
part) and manual configuration.

 Rather than do this as a once off, I set this scripting up so that this can 
be done at any time (painlessly I hope) to bring in the fresh code (as per 
Linux patching).

Basically...

Get latest from yaffs git.

cd yaffs2-dir/direct/u-boot

./patch-u-boot.sh uboot-dir

Edit your u-boot config file and add

#define CONFIG_YAFFS2 1


Rebuild u-boot (mrproper probably a Good Idea). Job done.

OK, so how does the new dynamic partition stuff work?

There are 2 new commands: ydevconfig configures a mount point "partition" and 
ydevls lists the mount points and their state

So for example let us say we want a mount point called foo on NAND device 0 
starting at block 55 and ending at block 999.

ydevconfig foo 0 55 999

Now you want to mount it.

ymount foo

Access files and do stuff...

yls foo
yls -l foo       # more info
ymkdir foo/dir
...

You can have multiple mountpoints in use at the same time though they are not 
allowed to overlap.

inband tags is selected automatically if there is insufficient space in 
oobavail to store the tags.

Have fun.

Charles

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-25 20:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-16  4:32 [U-Boot] yaffs2 u-boot patching support Charles Manning
2012-04-19 21:40 ` Tom Rini
2012-04-22 20:23   ` [U-Boot] [Yaffs] " Charles Manning
2012-04-23 15:18     ` Tom Rini
2012-04-23 15:33     ` Stefano Babic
2012-04-25 20:43       ` Charles Manning

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.