Cross compiling mtd-utils for Android and pread errors

Ketil Froyn ketil at froyn.name
Tue Nov 2 06:08:56 EDT 2010


On Fri, Oct 29, 2010 at 3:18 PM, Jon Povey <Jon.Povey at racelogic.co.uk> wrote:
> linux-mtd-bounces at lists.infradead.org wrote:
>> pread: Not a typewriter / #
>>
>> I'm grateful for any tips that can nudge me in the right direction.
>
> "Not a typewriter" is ENOTTY, i.e. ioctl not supported.
>
> Seems your android mtd devices don't support those ioctls.

Hi Jon,

Thanks for the response! I only get ENOTTY when dumping to file, but
not when I try to dump output to a tty using:

/sdcard/nanddump -a /dev/mtd/mtd0

so it almost seems that the program is confused and tries to treat the
output file like a tty when I run with -f.

Ketil



More information about the linux-mtd mailing list