This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM365 Nand flashing issue

Hi,

I am trying to flash my NAND (MT29F8G08ABABA) by using SD card. I put UBL and u-boot on the SD card then i booted the CPU in MMC boot mode to write UBL and u-boot descriptors and fatload UBL and u-boot into NAND from SD card. I can flash the chip with serial flash utility and the chip works fine but I cannot use the serial flash due to the project specification. Since the serial flashing utility works, i copied the descriptors of UBL and U-boot and used it. I also tried SD flashing utility from 

http://processors.wiki.ti.com/index.php/SD_card_boot_and_flashing_tool_for_DM355_and_DM365

However, this utility does not work, this utility does not like big flash memory and the big UBL and U-boot file.

 

First My UBL descriptor looks like

a1aced00  (magic number)

00000100 (UBL entry adress)

00000004 (no. pages of UBL)

00000001 (Block no.)

00000001 (page no.)

00000020 ( PLL, I do not think it is necessary about I copied this from the working NAND from the Serial flashing utility)

Then I loaded this to the 1st page of the 1st block of Nand. 0x80000

I fatload the UBL file from the SD card to ROM then NAND

fatload mmc 0 0x80700000 ubl_dm36x_nand.bin

nand write 0x80700000 0x81000 0x20000

My u-boot descriptor looks like

a1aced66

81080000

0000004d

00000019

00000001

81080000

 

Then I loaded this to the 1st page of the 19th block of Nand. 0xc80000

I fatload the U-boot file from the SD card to ROM then NAND

fatload mmc 0 0x80700000 u-boot.bin

nand write 0x80700000 0xc81000 0x50000

I nand dump to check and descriptors and the UBL and u-boot looks fine

but OOB looks very strange

OOB:
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00

It seems like my CPU cannot read my descriptors... Can you guys please help me? Did i do something wrong??

I know OBB table is wrong, is this can affect CPU reading the UBL and U-boot?

Any help is appreciated!!!