[Q] `ubiattach: ioctl 0x40186f40 failed: Inappropriate ioctl for device' - What changed?
Brian Foster
brian.foster at maximintegrated.com
Tue Feb 25 11:01:18 EST 2014
Hello,
Using an (admittedly ancient) BuildRoot v2010.11
(which uses v2.6.36.4 kernel headers) with an
(also admittedly ancient) v2.6.36.4 Linux kernel,
ubiattach(1) works fine. The ‘ubiattach’ is of
vintage v1.4.6 (and has not been modified).
However, using that _identical_ ‘ubiattach’ binary
(which is for an ARM926EJ-S CPU) with a more recent
v3.10.30 kernel, it fails. For example:
# ubiattach -m7 -d0 /dev/ubi_ctrl
ubiattach: ioctl 0x40186f40 failed: Inappropriate ioctl for device
#
I assume the value of, and/or parameter to, some
ioctl command has changed v2.6.36 → v3.10, but
am at a loss as to just _what_ changed (or why).
Any pointers would be appreciated.
cheers!
-blf-
--
Brian Foster
Principal MTS, Software | La Ciotat, France
Maxim Integrated | http://www.maximintegrated.com/
More information about the linux-mtd
mailing list