[U-Boot] Enabling nand createbbt command

Bud Miljkovic Bud_Miljkovic at trimble.com
Mon Mar 19 00:09:49 CET 2012


Charles

I looked at where I could set the startBlock and endBlock (btw -
start_block and end_block are used in cmd_onenand.c) and I saw that in
yaffscfg.c (flashDev->startBlock = 0; for yaffsVersion == 2).

Is this the place do change flashDev->endBlock = nBlocks - 1; to
flashDev->endBlock = N - 1, where N desired number of blocks?

Also, do you have or can point me to a comprehensive YAFFS2 commands
document?

 Bud

> -----Original Message-----
> From: Charles Manning [mailto:manningc2 at actrix.gen.nz]
> Sent: Thursday, 15 March 2012 6:24 a.m.
> To: Bud Miljkovic
> Cc: u-boot at lists.denx.de
> Subject: Re: [U-Boot] Enabling nand createbbt command
> 
> On Wednesday 14 March 2012 17:00:58 Bud Miljkovic wrote:
> > Charles
> >
> > That is interesting.  Any clue how to configure the start and end
> blocks
> > manually?
> 
> Yes I do since I wrote yaffs :-).
> 
> Set the statrt_block and end_block (might be startBlock and endBlock)
> values
> as needed BEFORE the mount/init happens.
> 
> In a "normal" situation with mtd partitioning  these are set to 0 and
> n-blocks-in-partition -1, but they can be set manually too.
> 
> -- Charles
> 
> 
> 
> >
> > Bud
> >
> > > -----Original Message-----
> > > From: Charles Manning [mailto:manningc2 at actrix.gen.nz]
> > > Sent: Monday, 12 March 2012 8:20 a.m.
> > > To: Bud Miljkovic
> > > Cc: u-boot at lists.denx.de
> > > Subject: Re: [U-Boot] Enabling nand createbbt command
> > >
> > > Bud
> > >
> > > Yaffs can work without mtdpart. To do that you just need to
> configure
> > > the
> > > start and end blocks manually instead of using the partition info
> to
> >
> > do
> >
> > > this.
> > >
> > > On Friday 09 March 2012 13:58:48 Bud Miljkovic wrote:
> > > > Thank you Scott and Fabio,
> > > >
> > > > You help is much appreciated.
> > > >
> > > > I will try to add the nand support for mx53 mainline.
> > > >
> > > > However, what I am trying to do is to build a u-boot that
> supports
> > >
> > > NAND
> > >
> > > > and have YAFFS2 as well and at moment I use the mx53_ard board
> since
> > > > this is very close to what my custom board will be.  I was able
> to
> > >
> > > build
> > >
> > > > such a version, using Freescale u-boot sources, which included
> nand
> > > > subsystem, and yaffs commands.  Then I needed to create
> partitions
> >
> > in
> >
> > > > the nand and this is where i "discovered" I needed the support
of
> > > > mtdparts command.
> > > >
> > > > So I, guess, I need to configure the u-boot for mtdparts
support.
> > >
> > > This
> > >
> > > > is where I am at.
> > > >
> > > > -Bud
> > > >
> > > > > -----Original Message-----
> > > > > From: Scott Wood
> > > > > Sent: Friday, 9 March 2012 12:04 p.m.
> > > > > To: Bud Miljkovic
> > > > > Cc: Fabio Estevam;
> > > > >
> > > >  > Subject: Re: [U-Boot] Enabling nand createbbt command
> > > > >
> > > > > I do expect mainline is better maintained and supported,
except
> >
> > for
> >
> > > > > missing particular features/hardware support that nobody ever
> > >
> > > bothered
> > >
> > > > > to submit to mainline -- which in this case appears to be
> hardware
> > > > > that you care about, so unless you're prepared to do a fair
bit
> of
> > > > > work to add support to mainline, I'd try again to find a
> support
> > > > > channel for your Freescale-provided U-Boot.  Or maybe we could
> >
> > help
> >
> > > > > you figure out what it is you want to do, instead of
scrubbing,
> if
> > >
> > > the
> > >
> > > > > answer doesn't depend on details of a non-standard U-Boot.
> > > > >
> > > > > Oh, and if you're curious about my freescale.com e-mail
> address, I
> > > > > work in a different part of the company and don't have i.MX
> > >
> > > knowledge
> > >
> > > > > or contacts.
> > > > >
> > > > > -Scott
> > > >
> > > > _______________________________________________
> > > > U-Boot mailing list
> > > > U-Boot at lists.denx.de
> > > > http://lists.denx.de/mailman/listinfo/u-boot
> 



More information about the U-Boot mailing list