Cutom Resin Image BBB Failed to find resin-image-beaglebone-20171031105445.rootfs.do

beaglebone

#1

I am tryign to build a custom BBB image. The only changes to the image are a change to the uenv.txt_internal to shut off hte HDMI as well as adding a new overlay or .dts file. I don’t believe anything is icorrect about those changes. Anyways, i am receiving the following output. The interesting part is that the file does i fact get created but without the .do at the end. So resin-image-beaglebone-20171031105445.rootfs exists but resin-image-beaglebone-20171031105445.rootfs.do does not. any help would be greatly appreciated. Thank you in advance.

lzenke@ubuntu:~/repos/resin-beaglebone$ ./resin-yocto-scripts/build/barys
Building JSON manifest...
...Done

### Shell environment set up for builds. ###

You can now run 'bitbake <target>'


  _____           _        _____   ____  
 |  __ \         (_)      /  _  \ / ___| 
 | |__) |___  ___ _ _ __  | | | || (___  
 |  _  // _ \/ __| | '_ \ | | | | \___ \ 
 | | \ \  __/\__ \ | | | || |_| |  ___) |
 |_|  \_\___||___/_|_| |_|\_____/ |____/ 
                                         
 ---------------------------------------- 

Resin specific images available:
	resin-image-flasher

BeagleBone Black                         : $ MACHINE=beaglebone bitbake resin-image-flasher

[000000003][LOG]Resin build initialized in build.
[000000003][LOG]Run build for beaglebone: MACHINE=beaglebone bitbake resin-image-flasher 
[000000003][LOG]This might take a while ...
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:01
Loaded 2948 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "beaglebone"
DISTRO            = "resin-os"
DISTRO_VERSION    = "2.7.4"
TUNE_FEATURES     = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:827eb5b232d54909377e2b18d39d34d6c1c21413"
meta-oe           
meta-filesystems  
meta-networking   
meta-python       = "HEAD:dfbdd28d206a74bf264c2f7ee0f7b3e5af587796"
meta-ti           = "HEAD:deca57ee5d35dba91b6be40cd2d5caaef6950b85"
meta-resin-common 
meta-resin-pyro   = "HEAD:193e04dd11c67b1f699c9001484caf58e831c19c"
meta-resin-beaglebone = "master:3165bba04ae9f948ec4b8e615a6b6d0dfe854a93"
meta-rust         = "HEAD:f6d973c5cacb9b52f32118caa879dcc7922d3c98"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:13
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: resin-image-1.0-r0 do_image_hostapp_ext4: Function failed: do_image_hostapp_ext4 (log file is located at /home/lzenke/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.3782)
ERROR: Logfile of failure stored in: /home/lzenke/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.3782
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_hostapp_ext4
| 0+0 records in
| 0+0 records out
| 0 bytes copied, 2.6416e-05 s, 0.0 kB/s
| File does not exist: /home/lzenke/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/deploy-resin-image-image-complete/resin-image-beaglebone-20171031105445.rootfs.docker
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_hostapp_ext4 (log file is located at /home/lzenke/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.3782)
ERROR: Task (/home/lzenke/repos/resin-beaglebone/build/../layers/meta-resin/meta-resin-common/recipes-core/images/resin-image.bb:do_image_hostapp_ext4) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3540 tasks of which 3539 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/lzenke/repos/resin-beaglebone/build/../layers/meta-resin/meta-resin-common/recipes-core/images/resin-image.bb:do_image_hostapp_ext4
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
[000000035][LOG]Build for beaglebone failed. Check failed log in build/tmp/log/cooker/beaglebone .
[000000035][LOG]If build for beaglebone succeeded, final image should have been generated here:
[000000035][LOG]   build/tmp/deploy/images/beaglebone/resin-image-flasher-beaglebone.resinos-img
[000000035][LOG]Done.

#3

Hi,
I think you are trying to do an incremental build.
Can you try it like this:

$ MACHINE=beaglebone bitbake resin-image-flasher -c cleanall

then

$ MACHINE=beaglebone bitbake resin-image -c cleanall

and only then

$ MACHINE=beaglebone bitbake resin-image-flasher

?


#4

Thank you for the advice, i made the following changes to the barys script.

  for machine in $ITERATOR_MACHINES; do
      for json in ${DEVICE_TYPES_JSONS}; do
        MACHINE_IN_JSON=`jq -r '.yocto.machine' $json`
        if [[ "$machine" != "${MACHINE_IN_JSON}" ]]; then
          continue
        fi
        IMAGE=`jq -r '.yocto | select(.machine == '\"${machine}\"').image' $json`
        if [ -z "$IMAGE" ] || [ "z$IMAGE" == "znull" ]; then
          log ERROR "No target image defined for $machine."
        fi
        log "Run build for $machine: MACHINE=$machine bitbake $IMAGE $BITBAKEARGS"
        log "This might take a while ..."
    
    echo "Bitbake special command 1 (MACHINE=beaglebone bitbake resin-image-flasher -c cleanall)***************************************************************************************"
    env MACHINE=beaglebone bitbake resin-image-flasher -c cleanall
    if [ $? -eq 0 ]; then
          log "Bitbake special command 1 suceeded *****************************************************************************************************************************************"
        else
          log "Bitbake special command 1 failed   *****************************************************************************************************************************************"
          EXIT_CODE=2 # Fail at the end
        fi

    echo "Bitbake special command 2 ***************************************************************************************************************************************************"
    env MACHINE=beaglebone bitbake resin-image -c cleanall
    if [ $? -eq 0 ]; then
          log "Bitbake special command 2 suceeded *****************************************************************************************************************************************"
        else
          log "Bitbake special command 2 failed   *****************************************************************************************************************************************"
          EXIT_CODE=2 # Fail at the end
        fi

    echo "Bitbake special command 3 ***************************************************************************************************************************************************"
    env MACHINE=beaglebone bitbake resin-image-flasher
        #env MACHINE=$machine bitbake ${IMAGE} $BITBAKEARGS
        if [ $? -eq 0 ]; then
          log "Bitbake special command 3 suceeded *****************************************************************************************************************************************"
        else
          log "Bitbake special command 3 failed   *****************************************************************************************************************************************"
          EXIT_CODE=2 # Fail at the end
        fi
      done

I then ran it and received the following output

lzenke@ubuntu:~/repos/resin-beaglebone$ ./resin-yocto-scripts/build/barys
Building JSON manifest...
...Done

### Shell environment set up for builds. ###

You can now run 'bitbake <target>'


  _____           _        _____   ____  
 |  __ \         (_)      /  _  \ / ___| 
 | |__) |___  ___ _ _ __  | | | || (___  
 |  _  // _ \/ __| | '_ \ | | | | \___ \ 
 | | \ \  __/\__ \ | | | || |_| |  ___) |
 |_|  \_\___||___/_|_| |_|\_____/ |____/ 
                                         
 ---------------------------------------- 

Resin specific images available:
    resin-image-flasher

BeagleBone Black                         : $ MACHINE=beaglebone bitbake resin-image-flasher

[000000001][LOG]Resin build initialized in build.
[000000001][LOG]Run build for beaglebone: MACHINE=beaglebone bitbake resin-image-flasher 
[000000001][LOG]This might take a while ...
Bitbake special command 1 (MACHINE=beaglebone bitbake resin-image-flasher -c cleanall)***************************************************************************************
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:01
Loaded 2948 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "beaglebone"
DISTRO            = "resin-os"
DISTRO_VERSION    = "2.7.4"
TUNE_FEATURES     = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:827eb5b232d54909377e2b18d39d34d6c1c21413"
meta-oe           
meta-filesystems  
meta-networking   
meta-python       = "HEAD:dfbdd28d206a74bf264c2f7ee0f7b3e5af587796"
meta-ti           = "HEAD:deca57ee5d35dba91b6be40cd2d5caaef6950b85"
meta-resin-common 
meta-resin-pyro   = "HEAD:193e04dd11c67b1f699c9001484caf58e831c19c"
meta-resin-beaglebone = "master:3165bba04ae9f948ec4b8e615a6b6d0dfe854a93"
meta-rust         = "HEAD:f6d973c5cacb9b52f32118caa879dcc7922d3c98"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:10
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.
[000000025][LOG]Bitbake special command 1 suceeded *****************************************************************************************************************************************
Bitbake special command 2 ***************************************************************************************************************************************************
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:01
Loaded 2948 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "beaglebone"
DISTRO            = "resin-os"
DISTRO_VERSION    = "2.7.4"
TUNE_FEATURES     = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:827eb5b232d54909377e2b18d39d34d6c1c21413"
meta-oe           
meta-filesystems  
meta-networking   
meta-python       = "HEAD:dfbdd28d206a74bf264c2f7ee0f7b3e5af587796"
meta-ti           = "HEAD:deca57ee5d35dba91b6be40cd2d5caaef6950b85"
meta-resin-common 
meta-resin-pyro   = "HEAD:193e04dd11c67b1f699c9001484caf58e831c19c"
meta-resin-beaglebone = "master:3165bba04ae9f948ec4b8e615a6b6d0dfe854a93"
meta-rust         = "HEAD:f6d973c5cacb9b52f32118caa879dcc7922d3c98"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:09
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.
[000000048][LOG]Bitbake special command 2 suceeded *****************************************************************************************************************************************
Bitbake special command 3 ***************************************************************************************************************************************************
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:01
Loaded 2948 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "beaglebone"
DISTRO            = "resin-os"
DISTRO_VERSION    = "2.7.4"
TUNE_FEATURES     = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:827eb5b232d54909377e2b18d39d34d6c1c21413"
meta-oe           
meta-filesystems  
meta-networking   
meta-python       = "HEAD:dfbdd28d206a74bf264c2f7ee0f7b3e5af587796"
meta-ti           = "HEAD:deca57ee5d35dba91b6be40cd2d5caaef6950b85"
meta-resin-common 
meta-resin-pyro   = "HEAD:193e04dd11c67b1f699c9001484caf58e831c19c"
meta-resin-beaglebone = "master:3165bba04ae9f948ec4b8e615a6b6d0dfe854a93"
meta-rust         = "HEAD:f6d973c5cacb9b52f32118caa879dcc7922d3c98"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:12
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: resin-image-1.0-r0 do_image_hostapp_ext4: Function failed: do_image_hostapp_ext4 (log file is located at /home/lzenke/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.93819)
ERROR: Logfile of failure stored in: /home/lzenke/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.93819
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_hostapp_ext4
| 0+0 records in
| 0+0 records out
| 0 bytes copied, 3.5426e-05 s, 0.0 kB/s
| Loaded image ID: sha256:a4e05c0cbaee7d889a6587894fb0f44737f4a0230f2ac98c1aeef09f4a920390
| + SYSROOT=/mnt/sysroot/inactive
| + pid=7
| + sleep 5
| + dockerd -s=aufs --data-root=/mnt/sysroot/inactive/docker -H unix:///var/run/docker-host.sock
| time="2017-10-31T16:22:55.415535024Z" level=warning msg="could not change group /var/run/docker-host.sock to docker: group docker not found"
| time="2017-10-31T16:22:55.417431352Z" level=info msg="libcontainerd: new containerd process, pid: 16"
| time="2017-10-31T16:22:56.421441569Z" level=warning msg="failed to rename /mnt/sysroot/inactive/docker/tmp for background deletion: rename /mnt/sysroot/inactive/docker/tmp /mnt/sysroot/inactive/docker/tmp-old: no such file or directory. Deleting synchronously"
| Error starting daemon: error initializing graphdriver: driver not supported
| + hostapp-update -f /input
| Cannot connect to the Docker daemon at unix:///var/run/docker-host.sock. Is the docker daemon running?
| Cannot connect to the Docker daemon at unix:///var/run/docker-host.sock. Is the docker daemon running?
| Cannot connect to the Docker daemon at unix:///var/run/docker-host.sock. Is the docker daemon running?
| invalid reference format
| Deleted: sha256:a4e05c0cbaee7d889a6587894fb0f44737f4a0230f2ac98c1aeef09f4a920390
| Deleted: sha256:d7248f3e87247f1ceadff0f098ba7f7e8d156638f38e32c40ad9a9b6d93a4055
| Deleted: sha256:0e5cb36f047621297b487edbc162b53b63c4aa1fb796bf6536d880de3ce240ec
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_hostapp_ext4 (log file is located at /home/lzenke/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.93819)
ERROR: Task (/home/lzenke/repos/resin-beaglebone/build/../layers/meta-resin/meta-resin-common/recipes-core/images/resin-image.bb:do_image_hostapp_ext4) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3540 tasks of which 3525 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/lzenke/repos/resin-beaglebone/build/../layers/meta-resin/meta-resin-common/recipes-core/images/resin-image.bb:do_image_hostapp_ext4
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
[000000214][LOG]Bitbake special command 3 failed   *****************************************************************************************************************************************
[000000214][LOG]If build for beaglebone succeeded, final image should have been generated here:
[000000214][LOG]   build/tmp/deploy/images/beaglebone/resin-image-flasher-beaglebone.resinos-img
[000000214][LOG]Done.

Please let me know if there is anything else i can try.

Thank you again!!


#5

Hi,
coming back to the original question. What overlay are you trying to add?


#6

I am trying to modify the SDS-CAPE00A0.dts that Resin had recently installed into the master image for the BBB. We have finished developing our custom board which requires a couple small changes to said cape.In my changes i simply replaced the old file with the new file.


#7

Okay, two questions from me in this case:

  1. Prior to doing these changes, were you able to build the resinOS image for the beaglebone?

  2. Can you paste the diff of the changes you have done?


#8

I have just finished trying to build an image with absolutely no changes and still got the same error.

I added the following to the uEnv.txt_internal which was originally blank

##BeagleBone Black: HDMI (Audio/Video) disabled:
dtb=am335x-boneblack-emmc-overlay.dtb

I then replaced the SDS-CAPE-00A0.dts with a new file with a few modifications that i cannot post in a public forum.


#11

What is the command you used to clone the resin-bleaglebone repository?


#12

git clone --recursive https://github.com/resin-os/resin-beaglebone.git


#13

Thanks.
So you got the original error again?

| File does not exist: /home/lzenke/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/deploy-resin-image-image-complete/resin-image-beaglebone-20171031105445.rootfs.docker

Can you paste the file listing in that directory? From “/home/lzenke/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/deploy-resin-image-image-complete” or the equivalent one of the new clean build you tried without your changes


#14

Yes it was the same as the original error. The first list below is from the no changes repo and the second is from my repo with the changes i mentioned.

lzenke@ubuntu:~/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/deploy-resin-image-image-complete$ ls -l
total 516116
-rw-r--r-- 1 lzenke lzenke 264158208 Nov  2 17:00 resin-image-beaglebone-20171102215447.rootfs.docker
-rw-r--r-- 1 lzenke lzenke 327155712 Nov  2 17:00 resin-image-beaglebone-20171102215447.rootfs.hostapp-ext4
-rw-r--r-- 1 lzenke lzenke    183456 Nov  2 16:59 resin-image-beaglebone-20171102215447.rootfs.manifest
-rw-r--r-- 1 lzenke lzenke 264151040 Nov  2 16:59 resin-image-beaglebone-20171102215447.rootfs.tar
lrwxrwxrwx 1 lzenke lzenke        51 Nov  2 17:00 resin-image-beaglebone.docker -> resin-image-beaglebone-20171102215447.rootfs.docker
lrwxrwxrwx 1 lzenke lzenke        53 Nov  2 16:59 resin-image-beaglebone.manifest -> resin-image-beaglebone-20171102215447.rootfs.manifest
lrwxrwxrwx 1 lzenke lzenke        48 Nov  2 16:59 resin-image-beaglebone.tar -> resin-image-beaglebone-20171102215447.rootfs.tar


lzenke@ubuntu:~/repos/resin-beaglebone-2/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/deploy-resin-image-image-complete$ ls -l
total 513372
-rw-r--r-- 1 lzenke lzenke 262755328 Oct 31 09:22 resin-image-beaglebone-20171031162023.rootfs.docker
-rw-r--r-- 1 lzenke lzenke 327155712 Oct 31 09:22 resin-image-beaglebone-20171031162023.rootfs.hostapp-ext4
-rw-r--r-- 1 lzenke lzenke    183456 Oct 31 09:22 resin-image-beaglebone-20171031162023.rootfs.manifest
-rw-r--r-- 1 lzenke lzenke 262748160 Oct 31 09:22 resin-image-beaglebone-20171031162023.rootfs.tar
lrwxrwxrwx 1 lzenke lzenke        51 Oct 31 09:22 resin-image-beaglebone.docker -> resin-image-beaglebone-20171031162023.rootfs.docker
lrwxrwxrwx 1 lzenke lzenke        53 Oct 31 09:22 resin-image-beaglebone.manifest -> resin-image-beaglebone-20171031162023.rootfs.manifest
lrwxrwxrwx 1 lzenke lzenke        48 Oct 31 09:22 resin-image-beaglebone.tar -> resin-image-beaglebone-20171031162023.rootfs.tar

#15

That is strange indeed. Might you try to do this again:

$ MACHINE=beaglebone bitbake resin-image-flasher -c cleanall

then

$ MACHINE=beaglebone bitbake resin-image -c cleanall

and only then

$ MACHINE=beaglebone bitbake resin-image-flasher

?

and paste the error you get as well as the contents of the directory it complains for?


#17

@lzenke Have you managed to give our suggestions a go?


#19

Sorry, yes i have below is the output. The build is still failing.

lzenke@ubuntu:~/repos/resin-beaglebone$ ./resin-yocto-scripts/build/barys
Building JSON manifest...
build-device-type-json@1.0.0 /home/lzenke/repos/resin-beaglebone/resin-yocto-scripts/build
├─┬ @resin.io/device-types@10.3.0 
│ └── lodash@4.17.4 
└── coffee-script@1.10.0 

...Done
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.

You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
into your configuration please add entries to conf/bblayers.conf.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
    http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/


### Shell environment set up for builds. ###

You can now run 'bitbake <target>'


  _____           _        _____   ____  
 |  __ \         (_)      /  _  \ / ___| 
 | |__) |___  ___ _ _ __  | | | || (___  
 |  _  // _ \/ __| | '_ \ | | | | \___ \ 
 | | \ \  __/\__ \ | | | || |_| |  ___) |
|_|  \_\___||___/_|_| |_|\_____/ |____/ 
                                         
 ---------------------------------------- 

Resin specific images available:
                resin-image-flasher

BeagleBone Black                         : $ MACHINE=beaglebone bitbake resin-image-flasher

[000000005][LOG]Resin build initialized in build.
[000000005][LOG]Run build for beaglebone: MACHINE=beaglebone bitbake resin-image-flasher 
[000000005][LOG]This might take a while ...
Bitbake special command 1 (MACHINE=beaglebone bitbake resin-image-flasher -c cleanall)***************************************************************************************
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:01:42
Parsing of 2172 .bb files complete (0 cached, 2172 parsed). 2948 targets, 457 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "ubuntu-16.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "beaglebone"
DISTRO            = "resin-os"
DISTRO_VERSION    = "2.7.5"
TUNE_FEATURES     = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:827eb5b232d54909377e2b18d39d34d6c1c21413"
meta-oe           
meta-filesystems  
meta-networking   
meta-python       = "HEAD:dfbdd28d206a74bf264c2f7ee0f7b3e5af587796"
meta-ti           = "HEAD:deca57ee5d35dba91b6be40cd2d5caaef6950b85"
meta-resin-common 
meta-resin-pyro   = "HEAD:65de73f41865c27b5f5d0e3bb99a834e3d40170f"
meta-resin-beaglebone = "master:1eb2f7821babb01f8792406a56b4eb00d3d697d1"
meta-rust         = "HEAD:f6d973c5cacb9b52f32118caa879dcc7922d3c98"

NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/1.7/x86_64-nativesdk-libc.tar.bz2;sha256sum=ed033c868b87852b07957a4400f3b744c00aef5d6470346ea1a59b6d3e03075e
--2017-11-14 04:56:00--  http://downloads.yoctoproject.org/releases/uninative/1.7/x86_64-nativesdk-libc.tar.bz2
Resolving downloads.yoctoproject.org (downloads.yoctoproject.org)... 198.145.29.63
Connecting to downloads.yoctoproject.org (downloads.yoctoproject.org)|198.145.29.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2286285 (2.2M) [application/octet-stream]
Saving to: ‘/home/lzenke/repos/resin-beaglebone/build/downloads/uninative/ed033c868b87852b07957a4400f3b744c00aef5d6470346ea1a59b6d3e03075e/x86_64-nativesdk-libc.tar.bz2’


2017-11-14 04:56:01 (2.76 MB/s) - ‘/home/lzenke/repos/resin-beaglebone/build/downloads/uninative/ed033c868b87852b07957a4400f3b744c00aef5d6470346ea1a59b6d3e03075e/x86_64-nativesdk-libc.tar.bz2’ saved [2286285/2286285]

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:09
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.
[000000129][LOG]Bitbake special command 1 suceeded *****************************************************************************************************************************************
Bitbake special command 2 ***************************************************************************************************************************************************
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:01:09
Parsing of 2172 .bb files complete (0 cached, 2172 parsed). 2948 targets, 457 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "beaglebone"
DISTRO            = "resin-os"
DISTRO_VERSION    = "2.7.5"
TUNE_FEATURES     = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:827eb5b232d54909377e2b18d39d34d6c1c21413"
meta-oe           
meta-filesystems  
meta-networking   
meta-python       = "HEAD:dfbdd28d206a74bf264c2f7ee0f7b3e5af587796"
meta-ti           = "HEAD:deca57ee5d35dba91b6be40cd2d5caaef6950b85"
meta-resin-common 
meta-resin-pyro   = "HEAD:65de73f41865c27b5f5d0e3bb99a834e3d40170f"
meta-resin-beaglebone = "master:1eb2f7821babb01f8792406a56b4eb00d3d697d1"
meta-rust         = "HEAD:f6d973c5cacb9b52f32118caa879dcc7922d3c98"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:10
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.
[000000218][LOG]Bitbake special command 2 suceeded *****************************************************************************************************************************************
Bitbake special command 3 ***************************************************************************************************************************************************
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:01
Loaded 2948 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "beaglebone"
DISTRO            = "resin-os"
DISTRO_VERSION    = "2.7.5"
TUNE_FEATURES     = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:827eb5b232d54909377e2b18d39d34d6c1c21413"
meta-oe           
meta-filesystems  
meta-networking   
meta-python       = "HEAD:dfbdd28d206a74bf264c2f7ee0f7b3e5af587796"
meta-ti           = "HEAD:deca57ee5d35dba91b6be40cd2d5caaef6950b85"
meta-resin-common 
meta-resin-pyro   = "HEAD:65de73f41865c27b5f5d0e3bb99a834e3d40170f"
meta-resin-beaglebone = "master:1eb2f7821babb01f8792406a56b4eb00d3d697d1"
meta-rust         = "HEAD:f6d973c5cacb9b52f32118caa879dcc7922d3c98"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:13
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: libpng-native-1.6.28-r0 do_fetch: Failed to fetch URL http://distfiles.gentoo.org/distfiles/libpng-1.6.28.tar.xz, attempting MIRRORS if available
WARNING: linux-firmware-1_0.0+gitAUTOINC+b14134583c-r0 do_fetch: Failed to fetch URL https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/linux-firmware.git/plain/iwlwifi-8000C-19.ucode;name=iwlwifi-19, attempting MIRRORS if available
WARNING: linux-beagleboard-4.9.34+gitAUTOINC+75ae78d682-r22b do_kernel_resin_checkconfig: Checking for CONFIG_DEVPTS_MULTIPLE_INSTANCES=y in the kernel configs failed for docker.
WARNING: linux-beagleboard-4.9.34+gitAUTOINC+75ae78d682-r22b do_kernel_resin_checkconfig: Checking for CONFIG_DEVPTS_MULTIPLE_INSTANCES=y in the kernel configs failed for systemd.
WARNING: linux-beagleboard-4.9.34+gitAUTOINC+75ae78d682-r22b do_kernel_resin_checkconfig: Checking for CONFIG_CRYPTO_LZO=m in the kernel configs failed for zram.
WARNING: slang-2.3.1a-r0 do_configure: QA Issue: slang: configure was passed unrecognised options: --with-x [unknown-configure-option]
ERROR: resin-image-1.0-r0 do_image_hostapp_ext4: Function failed: do_image_hostapp_ext4 (log file is located at /home/lzenke/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.4962)
ERROR: Logfile of failure stored in: /home/lzenke/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.4962
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_hostapp_ext4
| 0+0 records in
| 0+0 records out
| 0 bytes copied, 4.1727e-05 s, 0.0 kB/s
| Loaded image ID: sha256:642614c6abdc2f5768a5130762a0ee40dccd0d744faf4e5d27a9bc9ed76ca8ac
| + SYSROOT=/mnt/sysroot/inactive
| + pid=7
| + sleep 5
| + dockerd -s=aufs --data-root=/mnt/sysroot/inactive/docker -H unix:///var/run/docker-host.sock
| time="2017-11-14T15:02:46.586084922Z" level=warning msg="could not change group /var/run/docker-host.sock to docker: group docker not found"
| time="2017-11-14T15:02:46.601207381Z" level=info msg="libcontainerd: new containerd process, pid: 19"
| time="2017-11-14T15:02:47.664870088Z" level=warning msg="failed to rename /mnt/sysroot/inactive/docker/tmp for background deletion: rename /mnt/sysroot/inactive/docker/tmp /mnt/sysroot/inactive/docker/tmp-old: no such file or directory. Deleting synchronously"
| Error starting daemon: error initializing graphdriver: driver not supported
| + hostapp-update -f /input
| Cannot connect to the Docker daemon at unix:///var/run/docker-host.sock. Is the docker daemon running?
| Cannot connect to the Docker daemon at unix:///var/run/docker-host.sock. Is the docker daemon running?
| Cannot connect to the Docker daemon at unix:///var/run/docker-host.sock. Is the docker daemon running?
| invalid reference format
| Deleted: sha256:642614c6abdc2f5768a5130762a0ee40dccd0d744faf4e5d27a9bc9ed76ca8ac
| Deleted: sha256:20f37ee3dab82e6bda13d0c1967987984a27d7192753bd446a7f5afc7ab0ec32
| Deleted: sha256:0d564eddbccae969f63bfdd465be11bf514f8af19012158b1f4c197044dcf680
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_hostapp_ext4 (log file is located at /home/lzenke/repos/resin-beaglebone/build/tmp/work/beaglebone-poky-linux-gnueabi/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.4962)
ERROR: Task (/home/lzenke/repos/resin-beaglebone/build/../layers/meta-resin/meta-resin-common/recipes-core/images/resin-image.bb:do_image_hostapp_ext4) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3540 tasks of which 18 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/lzenke/repos/resin-beaglebone/build/../layers/meta-resin/meta-resin-common/recipes-core/images/resin-image.bb:do_image_hostapp_ext4
Summary: There were 6 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
[000007727][LOG]Bitbake special command 3 failed   *****************************************************************************************************************************************
[000007727][LOG]If build for beaglebone succeeded, final image should have been generated here:
[000007727][LOG]   build/tmp/deploy/images/beaglebone/resin-image-flasher-beaglebone.resinos-img
[000007727][LOG]Done.

#20

This error seems different than what i was seeing before. This morning i made a fresh clone of the repo and updated the barys script to perform the bitbake commands you mentioned above. Now it seems to be complaining about docker. I am digging into it but am not finding any smoking guns.


#21

Hello Lee,

By reading the output, it looks like you don’t have the aufs module loaded which prevents dockerd from starting:

Error starting daemon: error initializing graphdriver: driver not supported

You should load aufs with sudo modprobe aufs