public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Charles Manning <manningc2@actrix.gen.nz>
To: u-boot@lists.denx.de
Subject: [U-Boot] Enabling nand createbbt command
Date: Tue, 20 Mar 2012 10:56:28 +1300	[thread overview]
Message-ID: <201203201056.28409.manningc2@actrix.gen.nz> (raw)
In-Reply-To: <FD2DBC0E1365154BB0E3E348680BA0E902A1BF64@nzc-ap-xch-03.ap.trimblecorp.net>

On Monday 19 March 2012 12:09:49 Bud Miljkovic wrote:
> 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?

Yes, that's the stuff to modify. It might even make sense to add u-boot 
commands to set these.

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

I have never used yaffs in u-boot myself. have a look at the commands for the 
yaffs code.
>
>  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

  reply	other threads:[~2012-03-19 21:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-09  0:58 [U-Boot] Enabling nand createbbt command Bud Miljkovic
2012-03-11 19:19 ` Charles Manning
2012-03-14  4:00   ` Bud Miljkovic
2012-03-14 17:23     ` Charles Manning
2012-03-18 23:09       ` Bud Miljkovic
2012-03-19 21:56         ` Charles Manning [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-03-08 23:01 Bud Miljkovic
2012-03-08 23:10 ` Fabio Estevam
2012-03-08 22:08 Bud Miljkovic
2012-03-08  1:56 Bud Miljkovic
2012-03-08 16:54 ` Scott Wood
2012-03-08 19:38   ` Bud Miljkovic
2012-03-08 20:02     ` Scott Wood
     [not found]       ` <FD2DBC0E1365154BB0E3E348680BA0E902A1BF24@nzc-ap-xch-03.ap.trimblecorp.net>
2012-03-08 21:08         ` Scott Wood
2012-03-08 21:22           ` Bud Miljkovic
2012-03-08 21:41             ` Fabio Estevam
     [not found]               ` <FD2DBC0E1365154BB0E3E348680BA0E902A1BF27@nzc-ap-xch-03.ap.trimblecorp.net>
2012-03-08 22:44                 ` Fabio Estevam
     [not found]                   ` <FD2DBC0E1365154BB0E3E348680BA0E902A1BF2A@nzc-ap-xch-03.ap.trimblecorp.net>
2012-03-08 23:03                     ` Scott Wood

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=201203201056.28409.manningc2@actrix.gen.nz \
    --to=manningc2@actrix.gen.nz \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox