[Buildroot] [Bug 13146] raspberrypi3_defconfig: "Inappropriate ioctl for device" almost at end when sdcard.img is created

bugzilla at busybox.net bugzilla at busybox.net
Mon Aug 10 21:24:58 UTC 2020


--- Comment #1 from Peter Seiderer <ps.report at gmx.net> ---
Does not happen here (openSUSE Tumbleweed, ext4 filesystem), which filesystem
do you use?

The fiemap feature was introduces lately in genimage (see [1]), and there is a
fallback in case the fiemap ioctl fails (see [2]):

        /* If failure is due to no filesystem support, return a single extent
        if (ret == -EOPNOTSUPP)
                return whole_file_exent(size, extents, extent_count);

You can try to extend this check for ENOTTY (25) like the following:

        if (ret == -EOPNOTSUPP || ret == -ENOTTY)

or more correct (as 'ret = -errno;' some lines above):

        if (ret == EOPNOTSUPP || ret == ENOTTY)

and/or fallback to an earlier version of genimage in buildroot
by reverting the latest version bump commit [3]...

[2] https://github.com/pengutronix/genimage/blob/master/util.c#L390

You are receiving this mail because:
You are on the CC list for the bug.

More information about the buildroot mailing list