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

2016-11-30 Thread Thomas Thorne
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@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/daisy946b692 gstreamer1.0-plugins-bad: Build 
eglglessink for Raspberry Pi
  remotes/origin/danny1ad98cf README: Modify dependencies for danny 
branch
  remotes/origin/denzil   34eef2e linux-raspberrypi_3.1.9: Fix typo
  remotes/origin/dizzyefd760d linux-raspberrypi: faulty branch and 
srcrev for 3.16
  remotes/origin/dora 1c696a9 omxplayer: Install fonts directory in 
datadir
  remotes/origin/dylan770b88b 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.  
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


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

2016-11-29 Thread Paul Barker
On Tue, 29 Nov 2016 17:22:15 +
Thomas Thorne  wrote:

> I did not think my directory was that out of date but I can see a change to 
> the meta-raspberrypi/classes/sdcard_image-rpi.bbclass file from the 13th 
> September 2016.  
> https://github.com/agherzan/meta-raspberrypi/commit/4817e2c087097c02755d6309304878e42cf61d3c
>  or https://lists.yoctoproject.org/pipermail/yocto/2016-September/031961.html
> 
> This changes a variable name from DEPLOY_DIR_IMAGE to IMGDEPLOYDIR.  Nothing 
> I have currently sets that variable.
> 
> If I change my local.conf to set the new variable to "/tmp" the error changes 
> to:
> 
> $ bitbake rpi-hwup-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
> 
> 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: rpi-hwup-image-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/rpi-hwup-image/1.0-r0/temp/log.do_image_rpi_sdimg.28755)
> ERROR: Logfile of failure stored in: 
> /home/thomasthorne/work/yocto-rpi/build-pi3/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/temp/log.do_image_rpi_sdimg.28755
> 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 77824 KiB
> | 0+0 records in
> | 0+0 records out
> | 0 bytes copied, 9.734e-06 s, 0.0 kB/s
> | Model:  (file)
> | Disk /tmp/rpi-hwup-image-raspberrypi3-20161129171221.rootfs.rpi-sdimg: 126MB
> | Sector size (logical/physical): 512B/512B
> | Partition Table: msdos
> | Disk Flags:
> |
> | Number  Start   End SizeType File system  Flags
> |  1  4194kB  46.1MB  41.9MB  primary   boot, lba
> |  2  46.1MB  126MB   79.7MB  primary
> |
> | mkfs.fat: warning - lowercase labels might not work properly with DOS or 
> Windows
> | mkfs.fat 3.0.28 (2015-05-16)
> | 
> /home/thomasthorne/work/yocto-rpi/build-pi3/tmp/deploy/images/raspberrypi3/Image-hifiberry-amp.dtbo:
>  No such file or directory
> | WARNING: 
> /home/thomasthorne/work/yocto-rpi/build-pi3/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/temp/run.do_image_rpi_sdimg.28755:1
>  exit 1 from 'mcopy -i 
> /home/thomasthorne/work/yocto-rpi/build-pi3/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/boot.img
>  -s 
> /home/thomasthorne/work/yocto-rpi/build-pi3/tmp/deploy/images/raspberrypi3/Image-${DTB_BASE_NAME}.${DTB_EXT}
>  ::overlays/${DTB_BASE_NAME}.${DTB_EXT}'
> | 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/rpi-hwup-image/1.0-r0/temp/log.do_image_rpi_sdimg.28755)
> ERROR: Task 16 
> (/home/thomasthorne/work/yocto-rpi/meta-raspberrypi/recipes-core/images/rpi-hwup-image.bb,
>  do_image_rpi_sdimg) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 2117 tasks of which 2116 didn't need to be 
> rerun and 1 failed.
> No currently running tasks (1925 of 2119)
> 
> Summary: 1 task failed:
>   
> /home/thomasthorne/work/yocto-rpi/meta-raspberrypi/recipes-core/images/rpi-hwup-image.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.
> thomasthorne@thorne-ul-dt:~/work/yocto-rpi/build-pi3$ view 
> /home/thomasthorne/work/yocto-rpi/build-pi3/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/temp/log.do_image_rpi_sdimg.28755
> 
> 
> To stop the error I have to change my image types from:
> 
> IMAGE_FSTYPES = "tar.xz ext3 rpi-sdimg"
> 
> To:
> 
> IMAGE_FSTYPES = "tar.xz ext3"
> 
> Is this a bug I should raise on the 
> 

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

2016-11-29 Thread Khem Raj

> On Nov 29, 2016, at 5:55 AM, Thomas Thorne  wrote:
> 
> 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”

This branch is not pointing to krogoth instead you have created a local branch 
called heads/origin/krogoth which is tracking master branch from remote.
which obviously is not going to work with krogoth so please checkout correct 
branch in meta-raspberrypi

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


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

2016-11-29 Thread Thomas Thorne
I did not think my directory was that out of date but I can see a change to the 
meta-raspberrypi/classes/sdcard_image-rpi.bbclass file from the 13th September 
2016.  
https://github.com/agherzan/meta-raspberrypi/commit/4817e2c087097c02755d6309304878e42cf61d3c
 or https://lists.yoctoproject.org/pipermail/yocto/2016-September/031961.html

This changes a variable name from DEPLOY_DIR_IMAGE to IMGDEPLOYDIR.  Nothing I 
have currently sets that variable.

If I change my local.conf to set the new variable to "/tmp" the error changes 
to:

$ bitbake rpi-hwup-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

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: rpi-hwup-image-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/rpi-hwup-image/1.0-r0/temp/log.do_image_rpi_sdimg.28755)
ERROR: Logfile of failure stored in: 
/home/thomasthorne/work/yocto-rpi/build-pi3/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/temp/log.do_image_rpi_sdimg.28755
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 77824 KiB
| 0+0 records in
| 0+0 records out
| 0 bytes copied, 9.734e-06 s, 0.0 kB/s
| Model:  (file)
| Disk /tmp/rpi-hwup-image-raspberrypi3-20161129171221.rootfs.rpi-sdimg: 126MB
| Sector size (logical/physical): 512B/512B
| Partition Table: msdos
| Disk Flags:
|
| Number  Start   End SizeType File system  Flags
|  1  4194kB  46.1MB  41.9MB  primary   boot, lba
|  2  46.1MB  126MB   79.7MB  primary
|
| mkfs.fat: warning - lowercase labels might not work properly with DOS or 
Windows
| mkfs.fat 3.0.28 (2015-05-16)
| 
/home/thomasthorne/work/yocto-rpi/build-pi3/tmp/deploy/images/raspberrypi3/Image-hifiberry-amp.dtbo:
 No such file or directory
| WARNING: 
/home/thomasthorne/work/yocto-rpi/build-pi3/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/temp/run.do_image_rpi_sdimg.28755:1
 exit 1 from 'mcopy -i 
/home/thomasthorne/work/yocto-rpi/build-pi3/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/boot.img
 -s 
/home/thomasthorne/work/yocto-rpi/build-pi3/tmp/deploy/images/raspberrypi3/Image-${DTB_BASE_NAME}.${DTB_EXT}
 ::overlays/${DTB_BASE_NAME}.${DTB_EXT}'
| 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/rpi-hwup-image/1.0-r0/temp/log.do_image_rpi_sdimg.28755)
ERROR: Task 16 
(/home/thomasthorne/work/yocto-rpi/meta-raspberrypi/recipes-core/images/rpi-hwup-image.bb,
 do_image_rpi_sdimg) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2117 tasks of which 2116 didn't need to be rerun 
and 1 failed.
No currently running tasks (1925 of 2119)

Summary: 1 task failed:
  
/home/thomasthorne/work/yocto-rpi/meta-raspberrypi/recipes-core/images/rpi-hwup-image.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.
thomasthorne@thorne-ul-dt:~/work/yocto-rpi/build-pi3$ view 
/home/thomasthorne/work/yocto-rpi/build-pi3/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/temp/log.do_image_rpi_sdimg.28755


To stop the error I have to change my image types from:

IMAGE_FSTYPES = "tar.xz ext3 rpi-sdimg"

To:

IMAGE_FSTYPES = "tar.xz ext3"

Is this a bug I should raise on the 
https://github.com/agherzan/meta-raspberrypi/ project or am I missing some step?
I take it there might be a handful of variables I need to set before it is safe 
to use the rpi-sdimg in my configuration now?

Thomas A. F. Thorne  Software Engineer