How to work NAND boot if 2nd page of FW1 is Bad.

cancel
Showing results for 
Search instead for 
Did you mean: 

How to work NAND boot if 2nd page of FW1 is Bad.

208 Views
takayuki_ishii
Contributor III

Hello,

I read an errata ERR008506 and understand about FW2 load condition.

Our NAND have 2KB page size.

In this time if first page of FW1 is bad, it will start to load FW2 by this errata.

If 2nd page of FW1 is bad, ROM read 4KB (frist and 2nd page of FW1)

and ECC checking fails because 2nd page is bad.

In this condition, how to work ROM bootloader after this error?

 1) start to load FW2?

 2) load 3rd page of FW1?

 3) others

Best regards,

Ishii.

Labels (2)
0 Kudos
6 Replies

74 Views
takayuki_ishii
Contributor III

Hello Igor,

Thank you for your support.

I will answer it to my customer.

Best regards,

Ishii.

0 Kudos

74 Views
takayuki_ishii
Contributor III

Hello Igor

I can find my answer from sect. 8.5.2.5 in RM(sect 8.5.2.3 is not direct answer to me). 

In this section, it say that

"flash updater or gang programmer applications need to swap Bad Block Information (BI) data to byte 0 of metadata area for
every page before programming NAND flash."

So my understand is that to skip Bad block in ROM boot, it must need to inform in DTTB or set BI in byte0.

Is it correct?

Best regards,

Ishii.

0 Kudos

74 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Ishii

yes this is correct.

Best regards
igor

0 Kudos

74 Views
takayuki_ishii
Contributor III

Hello Igor

Thank you for your quick response.

Our customer report us that when DBBT has bad block information about page2 of FW1,

It can boot by FW2.

    BLOCK 03              FCB

    BLOCK 47              DBBT

    BLOCK 89              Firmware1

    BLOCK 1015          unused

    BLOCK 1617          Firmware2

    BLOCK 1823          unused

But it have no information in DBBT, only marked it, it cannot boot both FW1 and FW2.

    BLOCK 03              FCB

    BLOCK 47              DBBT (have no bad information about Block9)

    BLOCK 8                   FirmWare1_1

    BLOCK 9                   Bad

    BLOCK 10                 FirmWare1_2

    BLOCK 1115          unused

    BLOCK 1617          FirmWare2

    BLOCK 1823          unused

 

NAND writer detect bad condition in Block9 so skip to write Block9 and

write to block10 the second half of FW1.

Please teach me how load a firmware from NAND by boot ROM?

 

Best regards,

Ishii

0 Kudos

74 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Ishii

as described in sect.8.5.2.3 Firmware Configuration Block i.MX6DQ RM

"The location information for DBBT search area, FW1, and FW2 are all specified in the FCB."

pastedImage_1.jpg


Best regards
igor

0 Kudos

74 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Ishii

>In this condition, how to work ROM bootloader after this error?

 1) start to load FW2

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

0 Kudos