inappropriate ioctl when attaching
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.
Does anybody have a pointer != NULL ?
Cheers,
David.
Signature · 4 lines
David Wagner, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 10 lines · David Wagner
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 bytesSo I tried to use ubiformat and ubiattach but after a successful ubiformat, I got the following error:
Quoted 6 lines
# 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
Signature · 3 lines
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
Quoted 8 lines · Ricard Wanderlof
Quoted 4 lines · David Wagner
# 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.
Signature · 4 lines
David Wagner, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 8 lines · David Wagner
# 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.
Does anybody have a pointer != NULL ?
This probably means you are using too kernel where UBI does not support this ioctl. Dynamic attach / detach were not part of the initial UBI which want into the kernel, AFAIR.
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)
Quoted 1 line · Artem Bityutskiy
This probably means you are using too kernel where UBI does not support
Sorry, s/too kernel/too old kernel/
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)
Quoted 6 lines · David Wagner
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
Please, run mtd tests on your device and validate your flash first:
http://www.linux-mtd.infradead.org/doc/general.html#L_mtd_tests
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)