[yocto] rpi-basic-image.bb: do_image_ext3 failed

TU PHUNG VAN pvta2pn at gmail.com
Sat Feb 18 08:06:53 PST 2017


Hi all.

I have a problem when build poky (krogoth) for Raspberry PI.

When run with : $bitbake rpi-basic-image
I got the following errors:

ERROR: rpi-basic-image-1.0-r0 do_image_ext3: Function failed: do_image_ext3
(log file is located at
/media/oedev/YoctoLearning/build_rpi/tmp/work/raspberrypi-poky-linux-gnueabi/rpi-basic-image/1.0-r0/temp/log.do_image_ext3.10647)

ERROR: Logfile of failure stored in:
/media/oedev/YoctoLearning/build_rpi/tmp/work/raspberrypi-poky-linux-gnueabi/rpi-
basic-image/1.0-r0/temp/log.do_image_ext3.10647
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_ext3
| 0+0 records in
| 0+0 records out
| 0 bytes copied, 1.7803e-05 s, 0.0 kB/s
| mke2fs 1.43-WIP (18-May-2015)
| Discarding device blocks: done
| Creating filesystem with 86016 1k blocks and 21560 inodes
| Filesystem UUID: b0f1932b-e06d-416c-9eec-253db25b8053
| Superblock backups stored on blocks:
| 8193, 24577, 40961, 57345, 73729
|
| Allocating group tables: done
| Writing inode tables: done
| Creating journal (4096 blocks): done
| Copying files into the device: set_inode_xattr: No data available while
listing
attributes of "Image"
| __populate_fs: No data available while setting xattrs for "Image"
| mkfs.ext3: No data available while populating file system
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_ext3 (log file is located at
/media/oedev/YoctoLearning/build_rpi/tmp/work/raspberrypi-poky-linux-gnueabi/rpi-
basic-image/1.0-r0/temp/log.do_image_ext3.10647)

ERROR: Task 18 (/media/oedev/YoctoLearning/poky/meta-raspberrypi/recipes-
core/images/rpi-basic-image.bb, do_image_ext3) failed with exit code

I thinks there is some problems when creating ext3 file system.
After tracing back, I found out that following command which is
used to create a sparse image block not work properly.

File : poky/meta/classes/image_types.bbclass: 64:
dd if=/dev/zero
of=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.$fstype
seek=$ROOTFS_SIZE count=$COUNT bs=1024
mkfs.$fstype -F $extra_imagecmd
${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.$fstype -d
${IMAGE_ROOTFS}

After adding some shell codes to print out above command to /tmp/debug,
I ran bitbake again, and got the same error, of course.

After that, I run /tmp/debug manually, no errors occurred. I don't know why
I am getting errors when run with bitbake.

In my system, all of files (poky and builds) is located in mount point
which
is mounted with following options:

/dev/sdc on /media/oedev/YoctoLearning type ext4
(rw,nosuid,nodev,relatime,stripe=8191,data=ordered,uhelper=udisks2)
[YoctoLearning

Have any filesystem-related errors here?

Thanks and best regards.

-- 
------------------------------------------------
Minatu Phung (doime)
Email : pvta2pn at gmail.com
------------------------------------------------
Work with best effort.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170219/88ad8740/attachment.html>


More information about the yocto mailing list