Re: [U-Boot] Enabling nand createbbt command

On 03/08/2012 03:01 PM, Bud Miljkovic wrote:
-----Original Message----- From: Scott Wood [mailto:scottwood@freescale.com] Sent: Friday, 9 March 2012 9:02 a.m. To: Bud Miljkovic Cc: u-boot@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@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

-----Original Message----- From: Scott Wood [mailto:scottwood@freescale.com] Sent: Friday, 9 March 2012 10:09 a.m. To: Bud Miljkovic Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] Enabling nand createbbt command
Please use a recent upstream U-Boot, or contact support@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

On Thu, Mar 8, 2012 at 6:22 PM, Bud Miljkovic Bud_Miljkovic@trimble.com wrote:
-----Original Message----- From: Scott Wood [mailto:scottwood@freescale.com] Sent: Friday, 9 March 2012 10:09 a.m. To: Bud Miljkovic Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] Enabling nand createbbt command
Please use a recent upstream U-Boot, or contact support@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.
participants (3)
-
Bud Miljkovic
-
Fabio Estevam
-
Scott Wood