inappropriate ioctl when attaching

David Wagner david.wagner at free-electrons.com
Thu May 12 03:25:00 EDT 2011


On 05/12/2011 09:03 AM, Ricard Wanderlof wrote:
> 
> On Wed, 11 May 2011, David Wagner wrote:
>> # ubiattach -p /dev/mtd2
>> ubiattach: error!: cannot attach "/dev/mtd2"
>>           error 25 (Inappropriate ioctl for device)
>>
> What happens if you do ubiattach -m 2 instead, i.e. specifying the mtd
> number rather than the complete device path?

I also tried
ubiattach /dev/ubi_ctrl -m 2
but it didn't change anything

David.

-- 
David Wagner, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the linux-mtd mailing list