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.

AM3358: NAND flash erase error

Guru 10235 points
Part Number: AM3358
Other Parts Discussed in Thread: TMDXEVM3358

Hello, TI Experts,

 

Our customer sent us an additional question about NAND-Flash on TMDXEVM3358 for Linux filesystem of

PROCESSOR-SDK-LINUX-AM335X 04_00_00_04 from E2E thread as below.

http://e2e.ti.com/support/arm/sitara_arm/f/791/p/637624/2355167#2355167

 

From the E2E thread, they tried to extend the partition by changing the NAND memory layout addresses  as below.

 

root@am335x-evm:~# cat /proc/mtd

dev:    size   erasesize  name

mtd0: 00020000 00020000 "NAND.SPL"

mtd1: 00040000 00020000 "NAND.u-boot-spl-os"

mtd2: 00100000 00020000 "NAND.u-boot"

mtd3: 00020000 00020000 "NAND.u-boot-env"

mtd4: 00100000 00020000 "NAND.configs"

mtd5: 00800000 00020000 "NAND.kernel"

mtd6: 0f580000 00020000 "NAND.file-system"

 

//They say their original ubifs-filesystem is written to mtd6.

 

Then they tried to execute "flash_erase" command on the TMDXEVM3358.

But they found error as below;

 

>root@am335x-evm:~# flash_eraseall -j /dev/mtd4

>flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it

>flash_erase: error!: /dev/mtd4: unable to get NAND oobinfo

>             error 22 (Invalid argument)

 

Question:

 Is there same experience?

 

We would appreciate if you tell us how to solve this problem.

 

Best regards,