[yocto] [meta-raspberrypi] Seeing "dd: failed to open '/core-image-minimal-raspberrypi3-20161129134515.rootfs.rpi-sdimg': Permission denied" Errors After Update

Thomas Thorne Thomas.Thorne at net2edge.com
Tue Nov 29 05:55:41 PST 2016


I updated my Krogoth work area today with `git pull` and I now seeing error messages about being unable to open a root filesystem image for a raspberrypi3.  I have tried in my build area that tries to make an SD card image and the default one which does whatever the basic setup is.

Output from bitbake core-image-minimal attempt. I think this target was working before I did the pull.  rpi-basic-image, rpi-test-image rpi-hwup-image were also working yesterday but

$ bitbake core-image-minimal
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |######################################################################| Time: 00:00:33
Parsing of 1922 .bb files complete (0 cached, 1922 parsed). 2475 targets, 146 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.30.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "raspberrypi3"
DISTRO            = "poky"
DISTRO_VERSION    = "2.1.2"
TUNE_FEATURES     = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU        = "hard"
meta
meta-poky
meta-yocto-bsp    = "krogoth:ae9b341ecfcc60e970f29cfe04306411ad26c0cf"
meta-oe
meta-multimedia
meta-networking
meta-python       = "krogoth:851a064b53dca3b14dd33eaaaca9573b1a36bf0e"
meta-qt5          = "HEAD:2b1871f0d139dc3caaa779a32a1931409c245a36"
meta-raspberrypi  = "heads/origin/krogoth:44d41bf3e94c4c8fe5ad5a3650572c8d17ef36c9"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: core-image-minimal-1.0-r0 do_image_rpi_sdimg: Function failed: do_image_rpi_sdimg (log file is located at /home/thomasthorne/work/yocto-rpi/build-pi3/tmp/work/raspberrypi3-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_rpi_sdimg.10818)
ERROR: Logfile of failure stored in: /home/thomasthorne/work/yocto-rpi/build-pi3/tmp/work/raspberrypi3-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_rpi_sdimg.10818
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_rpi_sdimg
| Creating filesystem with Boot partition 40960 KiB and RootFS 12288 KiB
| dd: failed to open '/core-image-minimal-raspberrypi3-20161129134515.rootfs.rpi-sdimg': Permission denied
| WARNING: /home/thomasthorne/work/yocto-rpi/build-pi3/tmp/work/raspberrypi3-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_rpi_sdimg.10818:1 exit 1 from 'dd if=/dev/zero of=${IMGDEPLOYDIR}/core-image-minimal-raspberrypi3-20161129134515.rootfs.rpi-sdimg bs=1024 count=0 seek=${SDIMG_SIZE}'
| ERROR: Function failed: do_image_rpi_sdimg (log file is located at /home/thomasthorne/work/yocto-rpi/build-pi3/tmp/work/raspberrypi3-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_rpi_sdimg.10818)
ERROR: Task 16 (/home/thomasthorne/work/yocto-rpi/meta/recipes-core/images/core-image-minimal.bb, do_image_rpi_sdimg) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2117 tasks of which 2112 didn't need to be rerun and 1 failed.
No currently running tasks (2117 of 2119)

Summary: 1 task failed:
  /home/thomasthorne/work/yocto-rpi/meta/recipes-core/images/core-image-minimal.bb, do_image_rpi_sdimg
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code


If I try bitbake rpi-hwup-image I see a very similar error message to the above.

When I look for the core-image-minimal-raspberrypi3-20161129134515.rootfs.rpi-sdimg file it does not seem to exist on my filesystem.


If I try to bake a rpi-test-image instead I see:

$ bitbake rpi-test-image
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |########################################################################| ETA:  00:00:00
Loaded 2476 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'linux-firmware-bcm43430' (but /home/thomasthorne/work/yocto-rpi/meta-raspberrypi/recipes-core/packagegroups/packagegroup-rpi-test.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'linux-firmware-bcm43430' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['linux-firmware-bcm43430']
NOTE: Runtime target 'packagegroup-rpi-test' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-rpi-test', 'linux-firmware-bcm43430']
ERROR: Required build target 'rpi-test-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['rpi-test-image', 'packagegroup-rpi-test', 'linux-firmware-bcm43430']

Which is also new.


Thomas A. F. Thorne MEng. AUS MIET
Software Engineer

Tel: +44 3450 130 030<tel:+44-3450-130-030>
Email: Thomas.Thorne at Net2Edge.com<mailto:Thomas.Thorne at Net2Edge.com>
Web: http://www.Net2Edge.com/<http://www.net2edge.com/>

[Net2Edge Logo]
Net2Edge Limited is a company registered in England & Wales (Company No. 2438435, VAT No. GB 537553821) Passfield Oak, Liphook, Hampshire, GU30 7RL. This email transmission is confidential and intended solely for the person or organisation to whom it is addressed. If you are not the intended recipient, you must not copy, distribute or disseminate the information, or take any action in reliance of it. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of any organisation or employer. If you have received this message in error, do not open any attachment but please notify the sender (above) and delete this message from your system. Please rely on your own virus check. Although all outbound mail is checked for viruses, no responsibility is taken by the sender for any damage rising out of any bug or virus infection.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161129/037eaedb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6351 bytes
Desc: image001.png
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161129/037eaedb/attachment.png>


More information about the yocto mailing list