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.
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.
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.
| 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
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
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.