NAND flash able to write and read but booting is not happen

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NAND flash able to write and read but booting is not happen

2,795 Views
nareshpuli
Contributor III

Hi ,

We are using the Nxp P2020RDB Board , the thing is we able to write and read Nand flash ,but Booting is not happen what could be the problem ,NOR Flash boot is working fine, what could be the problem ? Please suggest me 

NAND Flash part no (MT29F1G08ABAEAWP-IT:E)

SDK version 1.7

After loading the loading images into the Nand flash , it will show in the console

"secondary programming load error......read failed"

Regards

Naresh

have a  nice day.

Labels (1)
0 Kudos
8 Replies

1,534 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello naresh puli,

Please try the following procedure.

Please set up u-boot from NOR flash, then program the attached image to NAND flash with the following commands.

=>tftp 1000000 u-boot-nand-P2020RDB-PC_NAND.bin
=>nand erase 0 +$filesize
=>nand write 1000000 0 $filesize

Then power off the target board, configure the switch settings as the following and power on the board again.

SW3[1~6] = 111010

If your problem remains, please feel free to let me know.


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,534 Views
nareshpuli
Contributor III

Hi Yiping Wang,

i hope you are doing good...

i am not able to find where  is the attached image, pls attach the only binary file.
Still the Nand Boot problem is there. pls attache only binary image file only
Regards
Naresh
0 Kudos

1,534 Views
andrei_skok
NXP Employee
NXP Employee

Here is the attachment

0 Kudos

1,532 Views
nareshpuli
Contributor III

Hi Andrei.skok,

Thanks for you supporting .but  After loading the loading image into the Nand flash , it will show in the console

"secondary programming load error......read failed"

 

Regards

Naresh

0 Kudos

1,532 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Naresh,

Please provide the whole u-boot console log.

Thanks,

Yiping

0 Kudos

1,532 Views
nareshpuli
Contributor III

Hi,

Write and read is happening , but when i load U-boot image it doesn't boot from NAND Boot

nand info                                            

Device 0: nand0, sector size 128 KiB                                            

  Page size      2048 b                                                        

  OOB size         64 b                                                        

  Erase size   131072 b   

 
tftp 1000000 test-file                  

Using eTSEC1 device

TFTP from server 9.1.1.7; our IP address is 9.1.1.45

Filename 'test-file'.

Load address: 0x1000000

Loading: #

         1000 Bytes/s

done

Bytes transferred = 52 (34 hex)

 

=> nand write 1000000 0 34                                                      

                                                                               

NAND write: device 0 offset 0x0, size 0x34                                     

 52 bytes written: OK

 

cmp 1000000 2000000 34

word at 0x01000034 (0x4d122082) != word at 0x02000034 (0x+-----------------------------+

Total of 13 word(s) were the same                        |                             |

 

=> md 2000000 10

02000000: 4e616e64 20546573 74696e67 0a48656c    Argus Testing.He

02000010: 6c6f2077 6f726c64 0a313233 34353637    llo world.123456

02000020: 38393061 62636465 66676869 6a6b6c6d    7890abcdefghijkl

02000030: 6e6f700a 5ce1abb2 d4f9e57c 9fe9ff0f    mnop.\......|...

 

=> md 1000000 10

01000000: 4e616e64 20546573 74696e67 0a48656c    Argus Testing.He

01000010: 6c6f2077 6f726c64 0a313233 34353637    llo world.123456

01000020: 38393061 62636465 66676869 6a6b6c6d    7890abcdefghijkl

01000030: 6e6f700a 4d122082 1861c1c0 0282001c    mnop.M. ..a.....

After loading the loading images into the Nand flash , i change the switch settings to 11101010

i am getting only this single statement , in the log file. what could be the problem?

 

"secondary programming load error......read failed"

 

0 Kudos

1,532 Views
nareshpuli
Contributor III

Hi Yiping Wang,

where did you attached the image , i didn't find pls attach the only binary file.

0 Kudos

1,532 Views
nareshpuli
Contributor III

Hi Yiping Wang,

i hope you are doing good...

Still the Nand Boot problem is there.

Spi chip is not detecting(Part no S25FL128P0XNFI00) , when i give the command is showing  like  un supported flsah IDs

sf probe                                                                     
SF: Unsupported flash IDs: manuf ff, jedec ffff, ext_jedec ffff                 
Failed to initialize SPI flash at 0:0

what could be the problem , how can i come out problems pls suggest me.

Regards

Naresh

Have a great day .

0 Kudos