Invalid ioctl answer + another question

Williams, Kevin M. kevin.m.williams at
Mon May 7 08:34:34 EDT 2001


I just posted a similar problem last week and David's suggestion fixed my

I was running a 2.4.4 kernel, but using the utilities built from an older
kernel (2.4.3-pre-3).  I rebuilt everything in the 'util' directory with the
new kernel headers from 2.4.4 and my ioctl error went away.  Try rebuilding
the mkfs.jffs binary with the new kernel headers.

However, I now have the following timeout error and question:

bash#>sbin/erase /dev/mtd2 0 6
Erase Total 6 Units
Erase Unit Size MTD_ioctl
Performing Flash Erase of length 131072 at offset 0x0waiting for erase to
complete timed out.
MTD Erase failure: Input/output error<6>MTD_close

Can anyone give me any ideas on why I am getting this?  I just
double-checked, and the old 'erase' utility works with this same hardware
and my 2.4.3-pre-3 kernel (with the 5 April mtd snapsnot).

Thank you in advance for any help!


-----Original Message-----
From: Edmund Troche [mailto:edmund at]
Sent: Sunday, May 06, 2001 3:23 PM
To: MTD Mailing List
Subject: Re: Invalid ioctl

I have  the same results with a 48MB DoC 2000 also.


Edmund Troche wrote:

> I created a 8MB partition (nftla1) on a 8MB DoC 2000, and tried to cp a
> image that was created with mkfs.jffs, and got the following message:
>     Invalid ioctl 5401 (MEMGETINFO = 80204d01)
>     ECC needs a full sector write (adr: 9de00 size 134)
> The DiskOnChip is being found @ address 0xD6000 and it correctly detects
it as
> 8MB. JFFS and MTD support is compiled in, no modules in this case.
> Anyone familiar with what may be the problem? Thanks in advance for any
> Edmund Troche
> ______________________________________________________
> Linux MTD discussion mailing list

Linux MTD discussion mailing list

More information about the linux-mtd mailing list