imx25 NAND internal boot with micron NAND

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

imx25 NAND internal boot with micron NAND

1,068 Views
OmarPighi
Contributor I

I repost ehere in the group even if i've already posted it in the general forum

 

I'm working on imx25 booting from a NAND flash using internal boot.

I started with the evaboard(3 stack), and i downloaded and compiled redboot, everything is working fine, even my aplication (it is a proprietary os with embedded application) is working and i tested it for several weeks).

On the evaboard there is a samsung NAND flash.

then we designed and built our board, on it we put a micron NAND flash. We used a smaller NAND flash due to cost and because we don't need a bigger one for our application.

we tested the board and we are able to use it in UART/USB dowload mode (bootmode=11), so i erased the micron flasg (it is supported by ATK toolkit V1.70) programmed and checked back, i tried also to dump it and everything is fine.

Then i tried to boot from it (as i did on evaboard), but it doesn't work. (bootmode=00)

I checked so many time the BT_ pins used to configure all the  boot parameters nad they seems to be ok.... but it doesn't boot. i checked the signal on the nand and i see some access on the nand bus, i think it is the first 4K read, but nothing more. if a look at the signal on the evaboard i see a veru long read access : of course the rom boot download the 0x40000 size redboot image.

On my board the processore go into uart/usb boot again , as the refererence manual sais it happen when the rom boot find some kind of error in the image downloaded... but i odn' have any security option enabled, i'm using the same image on the evaboard and on my board.

I asked at redboot maintainers and there is no dependence of the code about nand type or model.

and also i think the image it is not staring at all, because i don't see the image read from the nand to the ram... So it is something wrong on the flash header (but it works on the evaboard) or in my BT settings....

There is any dependence in the flash header about NAND type or model?

we are using the MT29F1G08ABADA

it is a 1Gb 8bit SLC nand flash 2K page

So I configured the BT_ pins in the following way:

BT_MEM_CTL=01

BT_MEM_TYPE= 01 (the micron should be a 4 address cycle .... but on the reference manula say that the boot rom access as 5 address.... see page 7-48 of teh reference. but it is not clear at all...

anyway i tried with both 4 and 5 address cycles... but it doesn't boot anyway.

 

BT_PAGE_SIZE=01

BT_BUS_WIDTH=00

BT_USB_SRC=00 (don't care in my situatin)

BT_MLC_SEL=0

BT_SPARE_SIZE=0 (should dont' care because it is a setting for 4K page for 2K page is fized)...

BT_EEPROM_CFG=1

BT_SRC=00 (don't care in my situation)

BT_LPB_FREQ=000 (the same of the evaboard).

 

so what could be wrong ?something to change in the flash header table due to different NAND?

please help me.

 

Last item, on the reference manual says that when there is an error during the ROM boot pahse it log the errors at a specific address. but i could not find how to access it..
Labels (1)
0 Kudos
3 Replies

619 Views
DaltonModesti
Contributor I

I have a similar problem to what you have described. Can you provide an example of the DCDGEN macros that you used to ge your board booted? I too am using the micron NAND.

0 Kudos

619 Views
OmarPighi
Contributor I

hi,

I managed to make it working, the problem is that the default of the NFC is for a nand of 128pages per block (suitable for the samsung present on the evaboard). Our NAND is 64 pages per block so i added at the dcd the configuration of the nfc register to have this value and now it boots.

thanks ....

0 Kudos

619 Views
FlorentAuger
Contributor V

Hello,

The configuration of boot pins seems correct.

For the HW:

You should ensure that a correct value for the pull-up resistor on the ready/busy signal is installed. Micron has a section dedicated to that signal in the NAND datasheet.

For the SW:

Is the SDRAM of your board correctly configured through the DCD table?

Do you have a way to read the content of the SDRAM at the *app_dest_ptr (place where Redboot is copied into)?

Is this NAND flash supported by Redboot? That's define somewhere in a file such mxc_nand_parts.inl.

I can't see that ID in one of the Redboot that I used, it should be 0xF12C from Micron datasheet?

0 Kudos