ioctl(MEMGETINFO): Inappropriate ioctl for device

Lorenzo Orsatti lorenzo.orsatti at gmail.com
Thu Nov 24 09:44:32 EST 2005


Hi,

I answer myself...
The correct device to use is the /dev/mtd0,
which is a char device with major 90 and minor 0 (rw)...

Lorenzo

On 11/24/05, Lorenzo Orsatti <lorenzo.orsatti at gmail.com> wrote:
> Hallo,
>
> Trying to format a DiskOnChip 2000 with the nftl_format, I obtain:
>
> /mnt/usb1 # ./nftl_format /dev/doc
> $Id: nftl_format.c,v 1.24 2005/11/07 11:15:13 gleixner Exp $
> ioctl(MEMGETINFO): Inappropriate ioctl for device
>
> where /dev/doc is a block device and it has major 93 and minor 0.
>
> I use a Vanilla kernel 2.6.10 with the NAND drivers installed.
>
> What is the cause? What should I do?
>
> TIA
>
> Lorenzo
>




More information about the linux-mtd mailing list