Re: [U-Boot] NAND booting of MPC8313 based Custom board

"NAND boot... read failed (ltesr)"
This message is triggered by an uncorrectable ECC error; LTESR[2].
Can any one tell how shall i proceed for booting successfully from large page NAND ?
This sounds very similar to problems I initially had. Odds are your are burning you LP NAND with the ECCM (FMR[23]) set incorrectly. So the NAND read is failing because it is reading the correct ECC from the wrong offset, hence making it incorrect and uncorrectable. Double check that and see if it helps.
Ron

Hi Thanks for reply. I changed ECCM bit and it fixed "NAND boot... read failed (ltesr)" problem. However, now it again stuck after printing transferring control. It lookes like it is able to copy u-boot image to RAM but not able to run from there. What could be problem in this ?
Thanks Rupesh
Ron Madrid ron_madrid@sbcglobal.net 08/03/2009 09:50 PM
To Scott Wood scottwood@freescale.com, Rupesh Kumar Rupesh.Kumar@Lntemsys.com cc u-boot@lists.denx.de Subject Re: [U-Boot] NAND booting of MPC8313 based Custom board
"NAND boot... read failed (ltesr)"
This message is triggered by an uncorrectable ECC error; LTESR[2].
Can any one tell how shall i proceed for booting successfully from large page NAND ?
This sounds very similar to problems I initially had. Odds are your are burning you LP NAND with the ECCM (FMR[23]) set incorrectly. So the NAND read is failing because it is reading the correct ECC from the wrong offset, hence making it incorrect and uncorrectable. Double check that and see if it helps.
Ron

However, now it again stuck after printing transferring control.
This probably means that the NAND is being read appropriately, but is not able to run the code from the location to where the data is being transferred. To what address is your code being transferred? Is it a valid region?
Ron

Hi
Thanks for the reply.
I get NAN DSPL - U-Boot 1.3.0-S600-Ver1.1 (Aug 8 2009 - 02:24:03) MPC83XX NAN DSPL - U-Boot 1.3.0-S600-Ver1.1 (Aug 8 2009 - 02:24:03) MPC83XX Loading from NAND : BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
I have changes the code like below nand_boot.c
char str[5] = { 1 } for (ctr = CFG_NAND_PAGE_SIZE / sizeof (unsigned int); ctr; ctr--) { ptr = (char*)src; *(dst++) = *(src++); str[0] = *(char*)ptr++; str[1] = *(char*)ptr++; str[2] = *(char*)ptr++; str[3] = *(char*)ptr; str[4] = 0; puts(str);
} }
I get the continuos 000000 printing on the console .
I think the boot loader0 is failing to read the nand properly and it is readig zero's. Can u please tell is there something i am missing.
Thanks
Thanks & Regards Rupesh Kumar Larsen and Toubro Limited-EmSyS KIADB Industrial Area,Hebbal,Hottagalli Mysore,Karnataka,India. PIN:-570018 PhNo:- 0821-2405599 Extn-5599 Email-id:- Rupesh.kumar@lntemsys.com
This Mail is classified as :- ------------------------------------ [ ] L&T EmSyS Proprietary [ ] L&T EmSyS Confidential [ ] L&T EmSyS Internal Use [ ] L&T EmSyS General Business ------------------------------------ The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Ron Madrid ron_madrid@sbcglobal.net 08/06/2009 12:05 AM
To Rupesh Kumar Rupesh.Kumar@Lntemsys.com cc Scott Wood scottwood@freescale.com, u-boot@lists.denx.de Subject Re: [U-Boot] NAND booting of MPC8313 based Custom board
However, now it again stuck after printing transferring control.
This probably means that the NAND is being read appropriately, but is not able to run the code from the location to where the data is being transferred. To what address is your code being transferred? Is it a valid region?
Ron

On Fri, Aug 07, 2009 at 09:19:07PM +0530, Rupesh Kumar wrote:
Hi
Thanks for the reply.
I get NAN DSPL - U-Boot 1.3.0-S600-Ver1.1 (Aug 8 2009 - 02:24:03) MPC83XX NAN DSPL - U-Boot 1.3.0-S600-Ver1.1 (Aug 8 2009 - 02:24:03) MPC83XX Loading from NAND : BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
Why did you go back to the old BSP u-boot?
I think the boot loader0 is failing to read the nand properly and it is readig zero's. Can u please tell is there something i am missing.
We're missing a lot -- the rest of the source to that file, since it's not part of mainline u-boot.
If you want to try something similar with mainline, the file to look at is nand_spl/nand_boot_fsl_elbc.c.
-Scott
participants (3)
-
Ron Madrid
-
Rupesh Kumar
-
Scott Wood