inappropriate ioctl when attaching
Ricard Wanderlof
ricard.wanderlof at axis.com
Thu May 12 03:03:34 EDT 2011
On Wed, 11 May 2011, David Wagner wrote:
> Hi,
>
> I put a ubi image on a sheevaplug but got those errors:
> uncorrectable error :
> UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes
> from PEB 39:512, read 512 bytes
>
> So I tried to use ubiformat and ubiattach but after a successful
> ubiformat, I got the following error:
>
> # ubiattach -p /dev/mtd2
> ubiattach: error!: cannot attach "/dev/mtd2"
> error 25 (Inappropriate ioctl for device)
>
> I've never seen this and google doesn't help much. I could flash a jffs2
> image w/o problem.
What happens if you do ubiattach -m 2 instead, i.e. specifying the mtd
number rather than the complete device path?
/Ricard
--
Ricard Wolf Wanderlöf ricardw(at)axis.com
Axis Communications AB, Lund, Sweden www.axis.com
Phone +46 46 272 2016 Fax +46 46 13 61 30
More information about the linux-mtd
mailing list