public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Enabling nand createbbt command
@ 2012-03-08  1:56 Bud Miljkovic
  2012-03-08 16:54 ` Scott Wood
  0 siblings, 1 reply; 18+ messages in thread
From: Bud Miljkovic @ 2012-03-08  1:56 UTC (permalink / raw)
  To: u-boot

Does someone know how to enable the nand createbbt u-boot command?

 

Bud Miljkovic

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

* [U-Boot] Enabling nand createbbt command
  2012-03-08  1:56 [U-Boot] Enabling nand createbbt command Bud Miljkovic
@ 2012-03-08 16:54 ` Scott Wood
  2012-03-08 19:38   ` Bud Miljkovic
  0 siblings, 1 reply; 18+ messages in thread
From: Scott Wood @ 2012-03-08 16:54 UTC (permalink / raw)
  To: u-boot

On 03/07/2012 07:56 PM, Bud Miljkovic wrote:
> Does someone know how to enable the nand createbbt u-boot command?

The BBT gets created automatically if it does not exist, provided the
NAND controller driver asks for it.  Why do you need an explicit command?

-Scott

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

* [U-Boot] Enabling nand createbbt command
  2012-03-08 16:54 ` Scott Wood
@ 2012-03-08 19:38   ` Bud Miljkovic
  2012-03-08 20:02     ` Scott Wood
  0 siblings, 1 reply; 18+ messages in thread
From: Bud Miljkovic @ 2012-03-08 19:38 UTC (permalink / raw)
  To: u-boot

> -----Original Message-----
> From: Scott Wood [mailto:scottwood at freescale.com]
> Sent: Friday, 9 March 2012 5:54 a.m.
> To: Bud Miljkovic
> Cc: u-boot at lists.denx.de
> Subject: Re: [U-Boot] Enabling nand createbbt command
> 
> The BBT gets created automatically if it does not exist, provided the
> NAND controller driver asks for it.  Why do you need an explicit
> command?

I do not necessarily need an explicit command.  I wanted to rebuild NAND
BBT after scrubbing it.  Is there another way to do that?

Bud

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

* [U-Boot] Enabling nand createbbt command
  2012-03-08 19:38   ` Bud Miljkovic
@ 2012-03-08 20:02     ` Scott Wood
       [not found]       ` <FD2DBC0E1365154BB0E3E348680BA0E902A1BF24@nzc-ap-xch-03.ap.trimblecorp.net>
  0 siblings, 1 reply; 18+ messages in thread
From: Scott Wood @ 2012-03-08 20:02 UTC (permalink / raw)
  To: u-boot

On 03/08/2012 01:38 PM, Bud Miljkovic wrote:
>> -----Original Message-----
>> From: Scott Wood [mailto:scottwood at freescale.com]
>> Sent: Friday, 9 March 2012 5:54 a.m.
>> To: Bud Miljkovic
>> Cc: u-boot at lists.denx.de
>> Subject: Re: [U-Boot] Enabling nand createbbt command
>>
>> The BBT gets created automatically if it does not exist, provided the
>> NAND controller driver asks for it.  Why do you need an explicit
>> command?
> 
> I do not necessarily need an explicit command.  I wanted to rebuild NAND
> BBT after scrubbing it.  Is there another way to do that?

It should happen automatically when nand_erase_opts() calls
chip->scan_bbt(), provided the driver set the NAND_USE_FLASH_BBT flag,
and that NAND_BBT_CREATE/NAND_BBT_WRITE are set in the nand_bbt_descr
(this is the case if the driver doesn't override the default
nand_bbt_descr).

Are you not seeing it happen?  What version of U-Boot are you using,
with which NAND controller driver?

-Scott

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

* [U-Boot] Enabling nand createbbt command
       [not found]       ` <FD2DBC0E1365154BB0E3E348680BA0E902A1BF24@nzc-ap-xch-03.ap.trimblecorp.net>
@ 2012-03-08 21:08         ` Scott Wood
  2012-03-08 21:22           ` Bud Miljkovic
  0 siblings, 1 reply; 18+ messages in thread
From: Scott Wood @ 2012-03-08 21:08 UTC (permalink / raw)
  To: u-boot

On 03/08/2012 03:01 PM, Bud Miljkovic wrote:
> 
>> -----Original Message-----
>> From: Scott Wood [mailto:scottwood at freescale.com]
>> Sent: Friday, 9 March 2012 9:02 a.m.
>> To: Bud Miljkovic
>> Cc: u-boot at lists.denx.de
>> Subject: Re: [U-Boot] Enabling nand createbbt command
>>
>>
>> It should happen automatically when nand_erase_opts() calls
>> chip->scan_bbt(), provided the driver set the NAND_USE_FLASH_BBT flag,
>> and that NAND_BBT_CREATE/NAND_BBT_WRITE are set in the nand_bbt_descr
>> (this is the case if the driver doesn't override the default
>> nand_bbt_descr).
>>
>> Are you not seeing it happen?  What version of U-Boot are you using,
>> with which NAND controller driver?
> 
> I am using u-boot-2009.08 sources from Freescale released under SABRE
> Automotive Infotainment board aka mx53_ard.

Please use a recent upstream U-Boot, or contact support at freescale.com
for support with your Freescale-supplied code.

> Looking at this from the u-boot commands prospective,
> - I get "nand - NAND sub-system" but it does not recognize "nand
> createbbt" command

Is there a reason you're expecting it to exist?

> I am fairly newbee in this and would not know which NAND controller
> driver is used.

Why are you using the scrub command?  It's an "I know what I'm doing"
backdoor.  There's even a warning, with confirmation prompt, telling you
it's dangerous and to only use it "if you are sure of what you are doing".

-Scott

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

* [U-Boot] Enabling nand createbbt command
  2012-03-08 21:08         ` Scott Wood
@ 2012-03-08 21:22           ` Bud Miljkovic
  2012-03-08 21:41             ` Fabio Estevam
  0 siblings, 1 reply; 18+ messages in thread
From: Bud Miljkovic @ 2012-03-08 21:22 UTC (permalink / raw)
  To: u-boot



> -----Original Message-----
> From: Scott Wood [mailto:scottwood at freescale.com]
> Sent: Friday, 9 March 2012 10:09 a.m.
> To: Bud Miljkovic
> Cc: u-boot at lists.denx.de
> Subject: Re: [U-Boot] Enabling nand createbbt command
> 
> Please use a recent upstream U-Boot, or contact support at freescale.com
> for support with your Freescale-supplied code.

I took the what was linked at the SABRE Automotive Infotainment board
Freescale page in January and applied all provided patches. I also have
been trying to get some support from Freescale but not getting much
there.  Maybe I am not talking to the right people.


> Is there a reason you're expecting it to exist?

I saw such a command in some instructions I found on internet.  But in
essence, what I want to do it to partition the NAND device on the
mx53_ard board.


> Why are you using the scrub command?  It's an "I know what I'm doing"
> backdoor.  There's even a warning, with confirmation prompt, telling
> you
> it's dangerous and to only use it "if you are sure of what you are
> doing".

I agree with you. I think I should be using nand erase instead.

-Bud 

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

* [U-Boot] Enabling nand createbbt command
  2012-03-08 21:22           ` Bud Miljkovic
@ 2012-03-08 21:41             ` Fabio Estevam
       [not found]               ` <FD2DBC0E1365154BB0E3E348680BA0E902A1BF27@nzc-ap-xch-03.ap.trimblecorp.net>
  0 siblings, 1 reply; 18+ messages in thread
From: Fabio Estevam @ 2012-03-08 21:41 UTC (permalink / raw)
  To: u-boot

On Thu, Mar 8, 2012 at 6:22 PM, Bud Miljkovic <Bud_Miljkovic@trimble.com> wrote:
>
>
>> -----Original Message-----
>> From: Scott Wood [mailto:scottwood at freescale.com]
>> Sent: Friday, 9 March 2012 10:09 a.m.
>> To: Bud Miljkovic
>> Cc: u-boot at lists.denx.de
>> Subject: Re: [U-Boot] Enabling nand createbbt command
>>
>> Please use a recent upstream U-Boot, or contact support at freescale.com
>> for support with your Freescale-supplied code.
>
> I took the what was linked at the SABRE Automotive Infotainment board
> Freescale page in January and applied all provided patches. I also have
> been trying to get some support from Freescale but not getting much
> there. ?Maybe I am not talking to the right people.

I suggest you to work with the mainline U-boot version,

Please note you would need to add mx53 support to
drivers/mtd/nand/mxc_nand.c though.

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

* [U-Boot] Enabling nand createbbt command
@ 2012-03-08 22:08 Bud Miljkovic
  0 siblings, 0 replies; 18+ messages in thread
From: Bud Miljkovic @ 2012-03-08 22:08 UTC (permalink / raw)
  To: u-boot

From: Fabio Estevam 
> Sent: Friday, 9 March 2012 10:42 a.m.
> To: Bud Miljkovic
> Cc: Scott Wood 
> Subject: Re: [U-Boot] Enabling nand createbbt command
> >
> > I took the what was linked at the SABRE Automotive Infotainment 
> > board Freescale page in January and applied all provided patches. I 
> > also
> have
> > been trying to get some support from Freescale but not getting much 
> > there. ?Maybe I am not talking to the right people.
> 
> I suggest you to work with the mainline U-boot version,

Could you elaborate this point?

> 
> Please note you would need to add mx53 support to 
> drivers/mtd/nand/mxc_nand.c though.

Any hints how I do this?  I've tried it before but since I was not successful I went to the Freescale u-boot version.

-Bud

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

* [U-Boot] Enabling nand createbbt command
       [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>
  0 siblings, 1 reply; 18+ messages in thread
From: Fabio Estevam @ 2012-03-08 22:44 UTC (permalink / raw)
  To: u-boot

On Thu, Mar 8, 2012 at 6:48 PM, Bud Miljkovic <Bud_Miljkovic@trimble.com> wrote:

> Could you elaborate this point?

My suggestion is that you use U-boot from git.denx.de instead of the
2009.08 from FSL.
>
>>
>> Please note you would need to add mx53 support to
>> drivers/mtd/nand/mxc_nand.c though.
>
> Any hints how I do this? ?I've tried it before but since I was not successful I went to the Freescale u-boot version.

Please post your mx53 nand patches to the list and ask for advice.

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

* [U-Boot] Enabling nand createbbt command
@ 2012-03-08 23:01 Bud Miljkovic
  2012-03-08 23:10 ` Fabio Estevam
  0 siblings, 1 reply; 18+ messages in thread
From: Bud Miljkovic @ 2012-03-08 23:01 UTC (permalink / raw)
  To: u-boot

From: Fabio Estevam [mailto:festevam at gmail.com]
> > Sent: Friday, 9 March 2012 11:45 a.m.
> > To: Bud Miljkovic
> > Cc: Scott Wood; u-boot at lists.denx.de
> > Subject: Re: [U-Boot] Enabling nand createbbt command
> >
> >
> > My suggestion is that you use U-boot from git.denx.de instead of the
> > 2009.08 from FSL.

Is that because the mainline U-boot id better maintained and/or ... ?
 
-Bud

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

* [U-Boot] Enabling nand createbbt command
       [not found]                   ` <FD2DBC0E1365154BB0E3E348680BA0E902A1BF2A@nzc-ap-xch-03.ap.trimblecorp.net>
@ 2012-03-08 23:03                     ` Scott Wood
  0 siblings, 0 replies; 18+ messages in thread
From: Scott Wood @ 2012-03-08 23:03 UTC (permalink / raw)
  To: u-boot

On 03/08/2012 04:49 PM, Bud Miljkovic wrote:
> 
> 
>> -----Original Message-----
>> From: Fabio Estevam [mailto:festevam at gmail.com]
>> Sent: Friday, 9 March 2012 11:45 a.m.
>> To: Bud Miljkovic
>> Cc: Scott Wood; u-boot at lists.denx.de
>> Subject: Re: [U-Boot] Enabling nand createbbt command
>>
>>
>> My suggestion is that you use U-boot from git.denx.de instead of the
>> 2009.08 from FSL.
> 
> Is that because the mainline U-boot id better maintained and/or ... ?

Well for once thing, it's because you're asking for help on the mailing
list for mainline U-Boot. :-)

We can't help you with some other codebase that we know nothing about.

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

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

* [U-Boot] Enabling nand createbbt command
  2012-03-08 23:01 Bud Miljkovic
@ 2012-03-08 23:10 ` Fabio Estevam
  0 siblings, 0 replies; 18+ messages in thread
From: Fabio Estevam @ 2012-03-08 23:10 UTC (permalink / raw)
  To: u-boot

On Thu, Mar 8, 2012 at 8:01 PM, Bud Miljkovic <Bud_Miljkovic@trimble.com> wrote:

> Is that because the mainline U-boot id better maintained and/or ... ?

Correct.

In case you are interested in adding mx53 nand support into mainline
U-boot, this FSL patch can be helpful as a reference:
http://opensource.freescale.com/git?p=imx/uboot-imx.git;a=commitdiff;h=9bbe28258c19c28f8f85c22c932bd119368cfacb

Regards,

Fabio Estevam

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

* [U-Boot] Enabling nand createbbt command
@ 2012-03-09  0:58 Bud Miljkovic
  2012-03-11 19:19 ` Charles Manning
  0 siblings, 1 reply; 18+ messages in thread
From: Bud Miljkovic @ 2012-03-09  0:58 UTC (permalink / raw)
  To: u-boot

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

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

* [U-Boot] Enabling nand createbbt command
  2012-03-09  0:58 Bud Miljkovic
@ 2012-03-11 19:19 ` Charles Manning
  2012-03-14  4:00   ` Bud Miljkovic
  0 siblings, 1 reply; 18+ messages in thread
From: Charles Manning @ 2012-03-11 19:19 UTC (permalink / raw)
  To: u-boot

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

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

* [U-Boot] Enabling nand createbbt command
  2012-03-11 19:19 ` Charles Manning
@ 2012-03-14  4:00   ` Bud Miljkovic
  2012-03-14 17:23     ` Charles Manning
  0 siblings, 1 reply; 18+ messages in thread
From: Bud Miljkovic @ 2012-03-14  4:00 UTC (permalink / raw)
  To: u-boot

Charles

That is interesting.  Any clue how to configure the start and end blocks
manually?

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
> 

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

* [U-Boot] Enabling nand createbbt command
  2012-03-14  4:00   ` Bud Miljkovic
@ 2012-03-14 17:23     ` Charles Manning
  2012-03-18 23:09       ` Bud Miljkovic
  0 siblings, 1 reply; 18+ messages in thread
From: Charles Manning @ 2012-03-14 17:23 UTC (permalink / raw)
  To: u-boot

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

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

* [U-Boot] Enabling nand createbbt command
  2012-03-14 17:23     ` Charles Manning
@ 2012-03-18 23:09       ` Bud Miljkovic
  2012-03-19 21:56         ` Charles Manning
  0 siblings, 1 reply; 18+ messages in thread
From: Bud Miljkovic @ 2012-03-18 23:09 UTC (permalink / raw)
  To: u-boot

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
> 

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

* [U-Boot] Enabling nand createbbt command
  2012-03-18 23:09       ` Bud Miljkovic
@ 2012-03-19 21:56         ` Charles Manning
  0 siblings, 0 replies; 18+ messages in thread
From: Charles Manning @ 2012-03-19 21:56 UTC (permalink / raw)
  To: u-boot

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

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

end of thread, other threads:[~2012-03-19 21:56 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08  1:56 [U-Boot] Enabling nand createbbt command 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
  -- strict thread matches above, loose matches on Subject: below --
2012-03-08 22:08 Bud Miljkovic
2012-03-08 23:01 Bud Miljkovic
2012-03-08 23:10 ` Fabio Estevam
2012-03-09  0:58 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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox