Mtd alignment bug affecting 1.4.X including current git

Kelly Anderson kelly at silka.with-linux.com
Fri Apr 1 04:33:25 EDT 2011


On 04/01/11 02:11, Artem Bityutskiy wrote:
> On Mon, 2011-03-28 at 07:48 -0600, Kelly Anderson wrote:
>> Erasing 128 Kibyte @ 0 --  0 % complete.libmtd: error!: unaligned
>> address 2, mtd0 page size is 2048
>>
>> /usr/sbin/flash_eraseall: /dev/mtd0: MTD writeoob failure: Invalid argument
>> Erasing 128 Kibyte @ 20000 --  3 % complete.libmtd: error!: unaligned
>> address 131074, mtd0 page size is 2048
> What are the flashe_eraseall options you use?
>
flash_eraseall -j /dev/mtd0

or (in the case of the newer mtd-utils)

flash_erase -j /dev/mtd0 0 0




More information about the linux-mtd mailing list