Cross compiling mtd-utils for Android and pread errors

Jon Povey Jon.Povey at racelogic.co.uk
Tue Nov 2 06:11:41 EDT 2010


Ketil Froyn wrote:
> 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.

strace can tell you what ioctl is failing on what file descriptor.

Happy sleuthing.




--
Jon Povey
jon.povey at racelogic.co.uk

Racelogic is a limited company registered in England. Registered number 2743719 .
Registered Office Unit 10, Swan Business Centre, Osier Way, Buckingham, Bucks, MK18 1TB .

The information contained in this electronic mail transmission is intended by Racelogic Ltd for the use of the named individual or entity to which it is directed and may contain information that is confidential or privileged. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email so that the sender's address records can be corrected. The views expressed by the sender of this communication do not necessarily represent those of Racelogic Ltd. Please note that Racelogic reserves the right to monitor e-mail communications passing through its network





More information about the linux-mtd mailing list