mtd-util, flash_erase: MEMGETOOBSEL on davinci based board fail

Heiko Schocher hs at denx.de
Tue Sep 20 09:27:18 EDT 2011


Hello Artem,

Artem Bityutskiy wrote:
> On Tue, 2011-09-20 at 14:27 +0300, Artem Bityutskiy wrote:
>> MTD utils tree: http://git.infradead.org/users/dedekind/mtd-utils.git
>> (use the "brian" branch)
> 
> Sorry, this is the right link:
> http://git.infradead.org/mtd-utils.git

with this tree and the brian branch I get:

root at armv5te:/home/hs/bmk/mtd-utils# ./flash_erase -j /dev/mtd7 0 0
flash_erase: error!: /dev/mtd7: unable to get NAND oobinfo
             error 22 (Invalid argument)
root at armv5te:/home/hs/bmk/mtd-utils#

:-(

As I see in mtd-util:flash_erase.c line 197:

if (ioctl(fd, MEMGETOOBSEL, &oobinfo) != 0)
              ^^^^^^^^^^^^
              this is the "old" style ... which fails ...

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany



More information about the linux-mtd mailing list