All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 13601] New: Gen image :Iappropriate ioctl error
@ 2021-03-09 15:31 bugzilla at busybox.net
  2021-03-09 15:37 ` [Buildroot] [Bug 13601] " bugzilla at busybox.net
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2021-03-09 15:31 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13601

            Bug ID: 13601
           Summary: Gen image :Iappropriate ioctl error
           Product: buildroot
           Version: 2021.02
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: neerajkrishnat at gmail.com
                CC: buildroot at uclibc.org
  Target Milestone: ---

Raspberrypi 4 gen image fails just after selecting make <board_defconfig> 

make menuconfig 

make some adjustments to libraries and packages 

and just make -j4:

This is the error i get not just for raspberry pi but for any board with
genimage option 



ln -sf rootfs.ext2 /home/nirajtummala/buildroot/output/images/rootfs.ext4
>>> Executing post-image script board/raspberrypi4/post-image.sh
board/raspberrypi4/genimage-raspberrypi4.cfg:30: no sub-section title/index for
'config'
INFO: cmd: "mkdir -p "/home/nirajtummala/buildroot/output/build/genimage.tmp""
(stderr):
INFO: cmd: "rm -rf "/home/nirajtummala/buildroot/output/build/genimage.tmp"/*"
(stderr):
INFO: cmd: "mkdir -p "/home/nirajtummala/buildroot/output/build/genimage.tmp""
(stderr):
INFO: cmd: "cp -a "/tmp/tmp.3rJcfQQAN8"
"/home/nirajtummala/buildroot/output/build/genimage.tmp/root"" (stderr):
INFO: cmd: "find '/home/nirajtummala/buildroot/output/build/genimage.tmp/root'
-depth -type d -printf '%P\0' | xargs -0 -I {} touch -r
'/tmp/tmp.3rJcfQQAN8/{}'
'/home/nirajtummala/buildroot/output/build/genimage.tmp/root/{}'" (stderr):
INFO: cmd: "mkdir -p "/home/nirajtummala/buildroot/output/images"" (stderr):
INFO: vfat(boot.vfat): cmd: "dd if=/dev/zero
of="/home/nirajtummala/buildroot/output/images/boot.vfat" seek=67108864 count=0
bs=1 2>/dev/null" (stderr):
INFO: vfat(boot.vfat): cmd: "mkdosfs
'/home/nirajtummala/buildroot/output/images/boot.vfat'" (stderr):
INFO: vfat(boot.vfat): adding file 'zImage' as 'zImage' ...
INFO: vfat(boot.vfat): cmd: "MTOOLS_SKIP_CHECK=1 mcopy -bsp -i
'/home/nirajtummala/buildroot/output/images/boot.vfat'
'/home/nirajtummala/buildroot/output/images/zImage' '::'" (stderr):
INFO: vfat(boot.vfat): adding file 'bcm2711-rpi-4-b.dtb' as
'bcm2711-rpi-4-b.dtb' ...
INFO: vfat(boot.vfat): cmd: "MTOOLS_SKIP_CHECK=1 mcopy -bsp -i
'/home/nirajtummala/buildroot/output/images/boot.vfat'
'/home/nirajtummala/buildroot/output/images/bcm2711-rpi-4-b.dtb' '::'"
(stderr):
INFO: vfat(boot.vfat): adding file 'rpi-firmware/cmdline.txt' as
'rpi-firmware/cmdline.txt' ...
INFO: vfat(boot.vfat): cmd: "MTOOLS_SKIP_CHECK=1 mcopy -bsp -i
'/home/nirajtummala/buildroot/output/images/boot.vfat'
'/home/nirajtummala/buildroot/output/images/rpi-firmware/cmdline.txt' '::'"
(stderr):
INFO: vfat(boot.vfat): adding file 'rpi-firmware/config.txt' as
'rpi-firmware/config.txt' ...
INFO: vfat(boot.vfat): cmd: "MTOOLS_SKIP_CHECK=1 mcopy -bsp -i
'/home/nirajtummala/buildroot/output/images/boot.vfat'
'/home/nirajtummala/buildroot/output/images/rpi-firmware/config.txt' '::'"
(stderr):
INFO: vfat(boot.vfat): adding file 'rpi-firmware/fixup.dat' as
'rpi-firmware/fixup.dat' ...
INFO: vfat(boot.vfat): cmd: "MTOOLS_SKIP_CHECK=1 mcopy -bsp -i
'/home/nirajtummala/buildroot/output/images/boot.vfat'
'/home/nirajtummala/buildroot/output/images/rpi-firmware/fixup.dat' '::'"
(stderr):
INFO: vfat(boot.vfat): adding file 'rpi-firmware/start.elf' as
'rpi-firmware/start.elf' ...
INFO: vfat(boot.vfat): cmd: "MTOOLS_SKIP_CHECK=1 mcopy -bsp -i
'/home/nirajtummala/buildroot/output/images/boot.vfat'
'/home/nirajtummala/buildroot/output/images/rpi-firmware/start.elf' '::'"
(stderr):
INFO: vfat(boot.vfat): adding file 'rpi-firmware/overlays' as
'rpi-firmware/overlays' ...
INFO: vfat(boot.vfat): cmd: "MTOOLS_SKIP_CHECK=1 mcopy -bsp -i
'/home/nirajtummala/buildroot/output/images/boot.vfat'
'/home/nirajtummala/buildroot/output/images/rpi-firmware/overlays' '::'"
(stderr):
INFO: hdimage(sdcard.img): adding partition 'boot' (in MBR) from 'boot.vfat'
...
ERROR: hdimage(sdcard.img): fiemap
/home/nirajtummala/buildroot/output/images/boot.vfat: 25 Inappropriate ioctl
for device
ERROR: hdimage(sdcard.img): failed to write image partition 'boot'
INFO: hdimage(sdcard.img): cmd: "rm -f
"/home/nirajtummala/buildroot/output/images/sdcard.img"" (stderr):
ERROR: hdimage(sdcard.img): failed to generate sdcard.img
make: *** [Makefile:835: target-post-image] Error 1
root at NirajTummala:/home/nirajtummala/buildroot#

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 13601] Gen image :Iappropriate ioctl error
  2021-03-09 15:31 [Buildroot] [Bug 13601] New: Gen image :Iappropriate ioctl error bugzilla at busybox.net
@ 2021-03-09 15:37 ` bugzilla at busybox.net
  2021-03-09 20:15 ` bugzilla at busybox.net
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2021-03-09 15:37 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13601

--- Comment #1 from NirajTummala <neerajkrishnat@gmail.com> ---
The Above build environment is WSL2 ubuntu 20.04

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 13601] Gen image :Iappropriate ioctl error
  2021-03-09 15:31 [Buildroot] [Bug 13601] New: Gen image :Iappropriate ioctl error bugzilla at busybox.net
  2021-03-09 15:37 ` [Buildroot] [Bug 13601] " bugzilla at busybox.net
@ 2021-03-09 20:15 ` bugzilla at busybox.net
  2021-03-09 20:45 ` bugzilla at busybox.net
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2021-03-09 20:15 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13601

--- Comment #2 from Peter Seiderer <ps.report@gmx.net> ---
WSL2 could be the decisive information, similar/same failure was already
reported, see [1], the fix/workaround is accepted/committed upstream, see [2],
and should be in buildroot after latest genimage version bump (see [3]), not
yet in 2021.02, only on git master...

[1] https://bugs.busybox.net/show_bug.cgi?id=13146
[2]
https://git.pengutronix.de/cgit/genimage/commit/?id=4c2b02df0861e06ca9320d80ad60994d4a239ad6
[3]
https://git.buildroot.net/buildroot/commit/?id=50cfedc86d205f2ac7145deadb1c94474374acff

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 13601] Gen image :Iappropriate ioctl error
  2021-03-09 15:31 [Buildroot] [Bug 13601] New: Gen image :Iappropriate ioctl error bugzilla at busybox.net
  2021-03-09 15:37 ` [Buildroot] [Bug 13601] " bugzilla at busybox.net
  2021-03-09 20:15 ` bugzilla at busybox.net
@ 2021-03-09 20:45 ` bugzilla at busybox.net
  2021-03-09 20:49 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2021-03-09 20:45 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13601

Yann E. MORIN <yann.morin.1998@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yann.morin.1998 at free.fr

--- Comment #3 from Yann E. MORIN <yann.morin.1998@free.fr> ---
(In reply to Peter Seiderer from comment #2)
> similar/same failure was already reported, see #13146

But 13146 was about WSL1, no? That error is not supposed to hapen under WSL2,
as I understand it...

NirajTummala, are you sure you are using WSL2? Care to double-check, please?

> latest genimage version bump (see [3]), not yet in 2021.02, only on git master...

Could you please send a patch for 2021.02 with just a backport of that fix,
please?

(yes, I know I was not in favour of it back then, but since upstream did apply
it, then we can backport it now).

Thanks!

Regards,
Yann E. MORIN.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 13601] Gen image :Iappropriate ioctl error
  2021-03-09 15:31 [Buildroot] [Bug 13601] New: Gen image :Iappropriate ioctl error bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2021-03-09 20:45 ` bugzilla at busybox.net
@ 2021-03-09 20:49 ` bugzilla at busybox.net
  2021-03-10 19:19 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2021-03-09 20:49 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13601

--- Comment #4 from NirajTummala <neerajkrishnat@gmail.com> ---
yes i am using WSL2 on latest Windows OS build

Thanks,
niraj

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 13601] Gen image :Iappropriate ioctl error
  2021-03-09 15:31 [Buildroot] [Bug 13601] New: Gen image :Iappropriate ioctl error bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2021-03-09 20:49 ` bugzilla at busybox.net
@ 2021-03-10 19:19 ` bugzilla at busybox.net
  2021-03-22 15:34 ` bugzilla at busybox.net
  2021-04-07  9:12 ` bugzilla at busybox.net
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2021-03-10 19:19 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13601

--- Comment #5 from Peter Seiderer <ps.report@gmx.net> ---
Patch for buildroot-2021.02 available:

https://patchwork.ozlabs.org/project/buildroot/patch/20210310191651.20769-1-ps.report at gmx.net/

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 13601] Gen image :Iappropriate ioctl error
  2021-03-09 15:31 [Buildroot] [Bug 13601] New: Gen image :Iappropriate ioctl error bugzilla at busybox.net
                   ` (4 preceding siblings ...)
  2021-03-10 19:19 ` bugzilla at busybox.net
@ 2021-03-22 15:34 ` bugzilla at busybox.net
  2021-04-07  9:12 ` bugzilla at busybox.net
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2021-03-22 15:34 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13601

--- Comment #6 from Yann E. MORIN <yann.morin.1998@free.fr> ---
*** Bug 13646 has been marked as a duplicate of this bug. ***

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 13601] Gen image :Iappropriate ioctl error
  2021-03-09 15:31 [Buildroot] [Bug 13601] New: Gen image :Iappropriate ioctl error bugzilla at busybox.net
                   ` (5 preceding siblings ...)
  2021-03-22 15:34 ` bugzilla at busybox.net
@ 2021-04-07  9:12 ` bugzilla at busybox.net
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2021-04-07  9:12 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13601

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Peter Korsgaard <jacmet@uclibc.org> ---
Fixed in git and will be part of the upcoming 2021.02.1 release:
https://git.buildroot.org/buildroot/commit/?h=2021.02.x&id=9c6c73a22d9208eb924803aaafeb17bc03a90e35

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-04-07  9:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 15:31 [Buildroot] [Bug 13601] New: Gen image :Iappropriate ioctl error bugzilla at busybox.net
2021-03-09 15:37 ` [Buildroot] [Bug 13601] " bugzilla at busybox.net
2021-03-09 20:15 ` bugzilla at busybox.net
2021-03-09 20:45 ` bugzilla at busybox.net
2021-03-09 20:49 ` bugzilla at busybox.net
2021-03-10 19:19 ` bugzilla at busybox.net
2021-03-22 15:34 ` bugzilla at busybox.net
2021-04-07  9:12 ` bugzilla at busybox.net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.