[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
Wed Nov 30 02:04:08 PST 2016


Obviously I was having some trouble when I created this work area: 

~/work/yocto-rpi/meta-raspberrypi$ git branch -l
  krogoth
* master
  origin/krogoth
  origon/krogoth
  origonkrogoth

So I delete all those and try:

$ git checkout origin/krogoth 
warning: refname 'origin/krogoth' is ambiguous.
Switched to branch 'origin/krogoth'

It is not safe to ignore that warning.  What it means is everything went terribly wrong.  Time to delete and try again.  

~/work/yocto-rpi/meta-raspberrypi$ git checkout -b krogoth --track origin/krogoth 
Branch krogoth set up to track remote branch krogoth from origin.
Switched to a new branch 'krogoth'
thomasthorne at thorne-ul-dt:~/work/yocto-rpi/meta-raspberrypi$ git status 
On branch krogoth
Your branch is up-to-date with 'origin/krogoth'.
nothing to commit, working directory clean

That looks more hopeful. 

$ 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:34
Parsing of 1940 .bb files complete (0 cached, 1940 parsed). 2493 targets, 347 skipped, 0 masked, 0 errors.
NOTE: There are 1 recipes to be removed from sysroot raspberrypi3, removing...
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  = "krogoth:a5f9b07a820d50ae5fb62e07306cd4e72d8638a9"
meta-quectel-community = "krogoth:ae9b341ecfcc60e970f29cfe04306411ad26c0cf"
meta-rpi          = "krogoth:b10b0f1bf64ad7e8b1ab00e0a67f0c6e77ef0a97"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1645 tasks of which 1595 didn't need to be rerun and all succeeded.


Success!  Thank you for your help.  Not sure why I did not spot the odd branch name.  

Any ideas why the meta-raspberrypi repository will tab-complete branch names without then correctly linking to the remote branch?  To me there is only one mention of krogoth besides that one I created.  

$ git branch --list --all --verbose
* krogoth                     a5f9b07 bcm2835: Compile examples correct LDFLAGS to avoid HASH errors
  master                      44d41bf raspberrypi3.conf: fix typo for BCM43430
  remotes/origin/HEAD         -> origin/master
  remotes/origin/ag-dev       139e7ff .gitignore: Ignore some stuff
  remotes/origin/daisy        946b692 gstreamer1.0-plugins-bad: Build eglglessink for Raspberry Pi
  remotes/origin/danny        1ad98cf README: Modify dependencies for danny branch
  remotes/origin/denzil       34eef2e linux-raspberrypi_3.1.9: Fix typo
  remotes/origin/dizzy        efd760d linux-raspberrypi: faulty branch and srcrev for 3.16
  remotes/origin/dora         1c696a9 omxplayer: Install fonts directory in datadir
  remotes/origin/dylan        770b88b sdcard_image-rpi.bbclass: Fix error in conditional test
  remotes/origin/fido         428602b rpi-default-providers: Let users overwrite the default providers
  remotes/origin/jethro       f2cff83 README: Fix documentation to disable overscan
  remotes/origin/khem_wayland cc4dc7b userland: Fix build with clang compiler
  remotes/origin/krogoth      a5f9b07 bcm2835: Compile examples correct LDFLAGS to avoid HASH errors
  remotes/origin/master       44d41bf raspberrypi3.conf: fix typo for BCM43430

The main things I that the builds are all working again.  I will try and pay more attention when doing the checkout step in the future.  



More information about the yocto mailing list