Part Number: AM3358
Tool/software: Linux
The following error occurred when using mtd_debug on EVMSK
root@am335x-evm:~# mtd_debug erase /dev/sda 0x1D000 0x1000
MEMERASE: Invalid argument
SDK version :05.03.00.07
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.
Part Number: AM3358
Tool/software: Linux
The following error occurred when using mtd_debug on EVMSK
root@am335x-evm:~# mtd_debug erase /dev/sda 0x1D000 0x1000
MEMERASE: Invalid argument
SDK version :05.03.00.07
Hi Kemal
SDK 03.01.00.06 is normal on our board.
# mtd_debug erase /dev/mtd0 0x1D000 0x1000
Erased 4096 bytes from address 0x0001d000 in flash
But SDK 05.03.00.07 is abnormal on the same board.
# mtd_debug erase /dev/mtd0 0x1D000 0x1000
MEMERASE: Invalid argument
It is probably mtd-utils version related.
The mtd-utils version in SDK 03.01.00.06 is 1.5.2, the version in SDK 05.03.00.07 is 2.0.0 and the version in the latest Processor SDK 06.00.00.07 is 2.0.2.
Can you check whether this command works with the latest Processor SDK 06.00.00.07? If not, we will need to lower down the version and check again. You can find all the mtd-utils releases here.
I don't think there's a problem with mtd-utils.
Because when we write an application, the following functions also return errors.
ioctl(fd,MEMERASE,&erase);
But I will still update the mtd-utils version as you said. It may be later to get the test results.
I used mtd-utils 1.5.2 and mtd-utils 2.0.2 to test on SDK 05.03.00.07, all the results were failures.
So, the erase size is 00010000. You must put one more "0" in your command.
# mtd_debug erase /dev/mtd0 0x1D000 0x10000