Skip to contentSkip to conversation

NAND booting of MPC8313 based Custom board

U-Boot Ron Madrid 3 participants 5 messages Aug 3, 2009 – Aug 7, 2009

lore
Share & tools
lore

Ron Madrid

author
#0 lore raw
Quoted 2 lines

"NAND boot... read failed (ltesr)"

This message is triggered by an uncorrectable ECC error; LTESR[2].

Quoted 3 lines

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

#1 lore raw

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 <[email protected]>
08/03/2009 09:50 PM

To
Scott Wood <[email protected]>, Rupesh Kumar <[email protected]>
cc
u-boot at lists.denx.de
Subject
Re: [U-Boot] NAND booting of MPC8313 based Custom board

Quoted 1 line

"NAND boot... read failed (ltesr)"

This message is triggered by an uncorrectable ECC error; LTESR[2].

Quoted 3 lines

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

author
#2 lore raw
Quoted 3 lines

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

#3 lore raw

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 at 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 <[email protected]>
08/06/2009 12:05 AM

To
Rupesh Kumar <[email protected]>
cc
Scott Wood <[email protected]>, u-boot at lists.denx.de Subject
Re: [U-Boot] NAND booting of MPC8313 based Custom board

Quoted 2 lines

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 19284 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090807/3ad9ccd1/attachment.gif

#4 lore raw
Quoted 9 lines · Rupesh Kumar

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?

Quoted 3 lines

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