Asus-tinker-board image build with Yocto does not boot.

Hello,

I’m using this GitHub - balena-os/balena-asus-tinker-board repository.

I’m able to build asus-tinker-board image “2.101.11+rev3” but it does not boot (as if the device is powered on without the SD card). I tested the device with 2.38.3+rev1 that I got for the webpage, and it started, so the issue seems to be something with the image.

I tried using older tags: [v2.78.0+rev30] and [v2.38.3+rev1]. but during the build process, some dependencies can’t be downloaded and it fails so I’m not sure if this has something to do with the latest version.

I’m building on Centos7 with “./balena-yocto-scripts/build/barys -m asus-tinker-board” command.
I don’t get any errors and then I use balenaEtcher to burn “build/tmp/deploy/images/asus-tinker-board/balena-image-asus-tinker-board.balenaos-img” on an SD card.

The image itself seems to be analogues to 2.38.3+rev1.
Disk: /home/domas/balena-image-asus-tinker-board-20221010123317.rootfs.img
Size: 908 MiB, 952107008 bytes, 1859584 sectors
Label: dos, identifier: 0xa3c297ae

Device                                                                           Boot                     Start              End          Sectors           Size         Id Type

Free space 2048 8191 6144 3M
/home/domas/balena-image-asus-tinker-board-20221010123317.rootfs.img1 * 8192 90111 81920 40M e W95 FAT16 (LBA)
/home/domas/balena-image-asus-tinker-board-20221010123317.rootfs.img2 90112 745471 655360 320M 83 Linux
/home/domas/balena-image-asus-tinker-board-20221010123317.rootfs.img3 745472 1400831 655360 320M 83 Linux
/home/domas/balena-image-asus-tinker-board-20221010123317.rootfs.img4 1400832 1859583 458752 224M f W95 Ext’d (LBA)
├─Free space 1402880 1409024 6145 3M
├─/home/domas/balena-image-asus-tinker-board-20221010123317.rootfs.img5 1409024 1449983 40960 20M 83 Linux
├─Free space 1452032 1458176 6145 3M
└─/home/domas/balena-image-asus-tinker-board-20221010123317.rootfs.img6 1458176 1859583 401408 196M 83 Linux

I’m new to Yocto so I might be missing a step. If anybody can’t point me in the right direction I’d be very grateful.

Hi,

Sorry to see you are having such an experience. Is this replicated via the same SD card when you try the 2.101 .11+rev3 vs 2.38.3+rev1?

Also, is that different dependency list failure each time your try to build or similar list? We do have the image pre-built and listed here: Base Image List - Balena Documentation (under Asus Tinker Board).

I have reached out to our OS team to see if we can get you any specific pointers in case you are interested in continuing with your own build.

Hi,
Thank you for the reply. I tried multiple SD cards so that should not be the issue. Also, I think there is a misunderstanding. I’m trying to build the Tinker Board OS image like it’s described here balenaOS - Docs.

It seems that 2.38.3+rev1 is the last available to download from balenaCloud even if the GitHub project has moved to 2.101.11+rev3. So I would like to build 2.38.3+rev1 or gets some help with the booting issue of the latest version. If the OS teams could give a pointer that would help out a lot.

Hi, what are the errors you get using 2.38.3+rev1? I will try to reproduce the errors on a local build.

As you have realized 2.101.11+rev3 has not yet been released as it is not passing QA testing. Unfortunately this device type is not yet part of our CI/CD pipeline so tests are not automated on each PR.

Hello,

This is what I got running ‘./balena-yocto-scripts/build/barys -m asus-tinker-board -k -d’. This was v2.38.3+rev8 instead of rev1 but the errors seem to be the same.

So :github.com/resin-os/balena.git and :github.com/rockchip-linux/rkwifibt.git do not exist, and there is an issue with supervisor.

Here is the output.

WARNING: bzip2-native-1.0.6-r5 do_fetch: Checksum mismatch for local file /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/downloads/bzip2-1.0.6.tar.gz
Cleaning and trying again.
WARNING: bzip2-native-1.0.6-r5 do_fetch: Renaming /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/downloads/bzip2-1.0.6.tar.gz to /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/downloads/bzip2-1.0.6.tar.gz_bad-checksum_9a1b94930d9c976e60da4a2efbf33488
WARNING: bzip2-native-1.0.6-r5 do_fetch: Checksum failure encountered with download of http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz - will attempt other sources if available
WARNING: expat-native-2.2.5-r0 do_fetch: Failed to fetch URL http://downloads.sourceforge.net/expat/expat-2.2.5.tar.bz2, attempting MIRRORS if available
WARNING: popt-native-1.16-r3 do_fetch: Failed to fetch URL https://fossies.org/linux/misc/popt-1.16.tar.gz, attempting MIRRORS if available
WARNING: libpcre-native-8.41-r0 do_fetch: Failed to fetch URL https://ftp.pcre.org/pub/pcre/pcre-8.41.tar.bz2, attempting MIRRORS if available
WARNING: icu-native-60.2-r0 do_fetch: Checksum mismatch for local file /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/downloads/icu4c-60_2-src.tgz
Cleaning and trying again.
WARNING: icu-native-60.2-r0 do_fetch: Renaming /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/downloads/icu4c-60_2-src.tgz to /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/downloads/icu4c-60_2-src.tgz_bad-checksum_35a2278383a7641eccbb01ab5ac4c65e
WARNING: icu-native-60.2-r0 do_fetch: Checksum failure encountered with download of http://download.icu-project.org/files/icu4c/60.2/icu4c-60_2-src.tgz - will attempt other sources if available
WARNING: healthdog-0.1.0.AUTOINC+a10155844f-r0 do_fetch: Failed to fetch URL git://git@github.com/resin-os/healthdog-rs.git;protocol=ssh, attempting MIRRORS if available
WARNING: bindmount-0.0.1.AUTOINC+f597fb0266-r0 do_fetch: Failed to fetch URL git://git@github.com/resin-os/resinos-bindmount.git;protocol=ssh, attempting MIRRORS if available
WARNING: os-config-1.1.1-r0 do_fetch: Failed to fetch URL git://git@github.com/resin-os/os-config.git;protocol=ssh, attempting MIRRORS if available
WARNING: balena-18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0 do_fetch: Failed to fetch URL git://github.com/resin-os/balena.git;branch=master;destsuffix=git/src/import, attempting MIRRORS if available
ERROR: balena-18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH="/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/layers/poky/scripts:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot/usr/bin/crossscripts:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/usr/sbin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/usr/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/sbin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/layers/poky/bitbake/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/hosttools"; export HOME="/home/tinker-board/"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://github.com/resin-os/balena.git /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/downloads/git2/github.com.resin-os.balena.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/downloads/git2/github.com.resin-os.balena.git'...

fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Connection timed out


ERROR: balena-18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0 do_fetch: Fetcher failure for URL: 'git://github.com/resin-os/balena.git;branch=master;destsuffix=git/src/import'. Unable to fetch URL from any source.
ERROR: balena-18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_fetch.7498
ERROR: Task (/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb:do_fetch) failed with exit code '1'
WARNING: lsof-4.89-r0 do_fetch: Failed to fetch URL http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.89.tar.bz2, attempting MIRRORS if available
WARNING: redsocks-0.5-r0 do_fetch: Failed to fetch URL git://github.com/darkk/redsocks.git, attempting MIRRORS if available
WARNING: bluetooth-rk-1.0-r0 do_fetch: Failed to fetch URL git://github.com/rockchip-linux/rkwifibt.git, attempting MIRRORS if available
ERROR: bluetooth-rk-1.0-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH="/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/layers/poky/scripts:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/bluetooth-rk/1.0-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/bluetooth-rk/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/bluetooth-rk/1.0-r0/recipe-sysroot-native/usr/sbin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/bluetooth-rk/1.0-r0/recipe-sysroot-native/usr/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/bluetooth-rk/1.0-r0/recipe-sysroot-native/sbin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/bluetooth-rk/1.0-r0/recipe-sysroot-native/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/layers/poky/bitbake/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/hosttools"; export HOME="/home/tinker-board/"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://github.com/rockchip-linux/rkwifibt.git /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/downloads/git2/github.com.rockchip-linux.rkwifibt.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/downloads/git2/github.com.rockchip-linux.rkwifibt.git'...

fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Connection timed out

ERROR: bluetooth-rk-1.0-r0 do_fetch: Fetcher failure for URL: 'git://github.com/rockchip-linux/rkwifibt.git'. Unable to fetch URL from any source.
ERROR: bluetooth-rk-1.0-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/bluetooth-rk/1.0-r0/temp/log.do_fetch.3590
ERROR: Task (/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/../layers/meta-tinker-board/recipes-connectivity/bluetooth/bluetooth-rk.bb:do_fetch) failed with exit code '1'
WARNING: balena-native-18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0 do_fetch: Failed to fetch URL git://github.com/resin-os/balena.git;branch=master;destsuffix=git/src/import, attempting MIRRORS if available
ERROR: balena-native-18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH="/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/layers/poky/scripts/native-intercept:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/layers/poky/scripts:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/usr/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/usr/sbin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/usr/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/sbin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/layers/poky/bitbake/bin:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/hosttools"; export HOME="/home/tinker-board/"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://github.com/resin-os/balena.git /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/downloads/git2/github.com.resin-os.balena.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/downloads/git2/github.com.resin-os.balena.git'...

fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Connection timed out


ERROR: balena-native-18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0 do_fetch: Fetcher failure for URL: 'git://github.com/resin-os/balena.git;branch=master;destsuffix=git/src/import'. Unable to fetch URL from any source.
ERROR: balena-native-18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_fetch.19584
ERROR: Task (virtual:native:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb:do_fetch) failed with exit code '1'
WARNING: linux-tinker-board-4.4.103-r0 do_kernel_resin_checkconfig: Checking for CONFIG_MAC80211=m in the kernel configs failed for rtl8192cu.
WARNING: linux-tinker-board-4.4.103-r0 do_kernel_resin_checkconfig: Checking for CONFIG_CFG80211=m in the kernel configs failed for rtl8192cu.
WARNING: linux-tinker-board-4.4.103-r0 do_kernel_resin_checkconfig: Checking for CONFIG_IP_NF_TARGET_LOG=m in the kernel configs failed for misc.
WARNING: linux-tinker-board-4.4.103-r0 do_kernel_resin_checkconfig: Checking for CONFIG_NF_NAT_REDIRECT=m in the kernel configs failed for misc.
WARNING: linux-tinker-board-4.4.103-r0 do_kernel_resin_checkconfig: Checking for CONFIG_NETFILTER_XT_TARGET_REDIRECT=m in the kernel configs failed for redsocks.

ERROR: docker-disk-balena_armv7hf-supervisor-v9.15.7-r0 do_compile: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/temp/log.do_compile.19486)
ERROR: Logfile of failure stored in: /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/temp/log.do_compile.19486
Log data follows:
| DEBUG: Executing shell function do_compile
| Sending build context to Docker daemon  312.1MB
| 
| Step 1/6 : FROM docker:17.06-dind
| 17.06-dind: Pulling from library/docker
| b56ae66c2937: Pulling fs layer
| 776090ac3d78: Pulling fs layer
| 6e0413fc9bc7: Pulling fs layer
| 6807a94b4504: Pulling fs layer
| 429b20cae2b6: Pulling fs layer
| 42bffac140ef: Pulling fs layer
| 809af0845870: Pulling fs layer
| 9123ba010ed2: Pulling fs layer
| 06e876db81e6: Pulling fs layer
| f3235272f7b8: Pulling fs layer
| 6807a94b4504: Waiting
| 429b20cae2b6: Waiting
| 42bffac140ef: Waiting
| 809af0845870: Waiting
| 9123ba010ed2: Waiting
| 06e876db81e6: Waiting
| f3235272f7b8: Waiting
| 6e0413fc9bc7: Verifying Checksum
| 6e0413fc9bc7: Download complete
| b56ae66c2937: Verifying Checksum
| b56ae66c2937: Download complete
| 776090ac3d78: Verifying Checksum
| 776090ac3d78: Download complete
| 429b20cae2b6: Verifying Checksum
| 429b20cae2b6: Download complete
| 809af0845870: Verifying Checksum
| 809af0845870: Download complete
| 42bffac140ef: Verifying Checksum
| 42bffac140ef: Download complete
| 6807a94b4504: Verifying Checksum
| 6807a94b4504: Download complete
| 9123ba010ed2: Verifying Checksum
| 9123ba010ed2: Download complete
| b56ae66c2937: Pull complete
| 06e876db81e6: Verifying Checksum
| 06e876db81e6: Download complete
| f3235272f7b8: Verifying Checksum
| f3235272f7b8: Download complete
| 776090ac3d78: Pull complete
| 6e0413fc9bc7: Pull complete
| 6807a94b4504: Pull complete
| 429b20cae2b6: Pull complete
| 42bffac140ef: Pull complete
| 809af0845870: Pull complete
| 9123ba010ed2: Pull complete
| 06e876db81e6: Pull complete
| f3235272f7b8: Pull complete
| Digest: sha256:bc74a670f047254ec0d71ff996035751835fc72162259cc1522a3d9cb7b71b87
| Status: Downloaded newer image for docker:17.06-dind
|  ---> 038dca6ce611
| Step 2/6 : RUN apk add --update util-linux shadow e2fsprogs && rm -rf /var/cache/apk/*
|  ---> Running in b7258f394772
| fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
| fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
| (1/10) Installing linux-pam (1.2.1-r1)
| (2/10) Installing shadow (4.2.1-r11)
| (3/10) Installing libmount (2.28.2-r2)
| (4/10) Installing libsmartcols (2.28.2-r2)
| (5/10) Installing findmnt (2.28.2-r2)
| (6/10) Installing libfdisk (2.28.2-r2)
| (7/10) Installing ncurses-terminfo-base (6.0_p20171125-r1)
| (8/10) Installing ncurses-terminfo (6.0_p20171125-r1)
| (9/10) Installing ncurses-libs (6.0_p20171125-r1)
| (10/10) Installing util-linux (2.28.2-r2)
| Executing busybox-1.26.2-r7.trigger
| OK: 27 MiB in 44 packages
| Removing intermediate container b7258f394772
|  ---> 4155d1406bf8
| Step 3/6 : ADD entry.sh /entry.sh
|  ---> f1dbde30e1d5
| Step 4/6 : RUN chmod a+x /entry.sh
|  ---> Running in cf43c0a9b19e
| Removing intermediate container cf43c0a9b19e
|  ---> c8157f032b0e
| Step 5/6 : VOLUME /resin-data
|  ---> Running in 9562135d4d98
| Removing intermediate container 9562135d4d98
|  ---> e98af307339f
| Step 6/6 : CMD /entry.sh
|  ---> Running in 92e9010f2450
| Removing intermediate container 92e9010f2450
|  ---> 60ea05060cb4
| Successfully built 60ea05060cb4
| Successfully tagged docker-disk-21759:latest
| [INFO] Creating and setting 1000:1000.
| Creating mailbox file: No such file or directory
| Starting docker daemon with overlay2 storage driver.
| Waiting for docker to become ready..
| time="2022-10-12T11:25:16Z" level=warning msg="The \"-g / --graph\" flag is deprecated. Please use \"--data-root\" instead"
| time="2022-10-12T11:25:16.719547818Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
| time="2022-10-12T11:25:16.720089382Z" level=warning msg="libcontainerd: makeUpgradeProof could not open /var/run/docker/libcontainerd/containerd"
| time="2022-10-12T11:25:16.724611734Z" level=info msg="libcontainerd: new containerd process, pid: 19"
| Docker started.
| Pulling balena/armv7hf-supervisor:v9.15.7...
| time="2022-10-12T11:25:17.769018638Z" level=warning msg="failed to rename /resin-data/docker/tmp for background deletion: rename /resin-data/docker/tmp /resin-data/docker/tmp-old: no such file or directory. Deleting synchronously"
| Error starting daemon: error initializing graphdriver: driver not supported
| Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?). Using system default: https://index.docker.io/v1/
| Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
| WARNING: /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/temp/run.do_compile.19486:1 exit 1 from '$DOCKER run --privileged --rm -e BALENA_STORAGE=overlay2 -e USER_ID=$(id -u) -e USER_GID=$(id -u) -e TARGET_REPOSITORY="balena/armv7hf-supervisor" -e TARGET_TAG="v9.15.7" -e PRIVATE_REGISTRY="${PRIVATE_REGISTRY}" -e PRIVATE_REGISTRY_USER="${PRIVATE_REGISTRY_USER}" -e PRIVATE_REGISTRY_PASSWORD="${PRIVATE_REGISTRY_PASSWORD}" -e PARTITION_SIZE="1024" -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/build:/build --name ${_container_name} ${_image_name}'
| ERROR: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/temp/log.do_compile.19486)
ERROR: Task (/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/docker-disk/docker-disk.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3601 tasks of which 10 didn't need to be rerun and 4 failed.

Summary: 4 tasks failed:
  /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb:do_fetch
  /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/../layers/meta-tinker-board/recipes-connectivity/bluetooth/bluetooth-rk.bb:do_fetch
  virtual:native:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb:do_fetch
  /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/docker-disk/docker-disk.bb:do_compile
Summary: There were 22 WARNING messages shown.
Summary: There were 10 ERRORmessages shown, returning a non-zero exit code.

Hi, those look like network related problems to me. Are you behind a firewall? It seems connections to github are blocked:

fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Connection timed out

I did build this locally and there are a couple of packages that are indeed broken for 2.38.3+rev1.

  • The upstream github repository for bluetooth-rk has moved without forwarding
  • The balena engine has an invalid commit SHA1 which I really can’t explain (some developer must have forced pushed and lost this sha1 while the branch protection was disabled - very strange)

Anyway, I have patches for both those problems once you hit them which I attach next.

Thanks for the help. At first, I thought that I was getting error below since the repositories were unavailable,

fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Connection timed out

but the reason is that in the command “git -c core.fsyncobjectfiles=0 clone --bare --mirror git://github.com/resin-os/balena.git” git: is used in the URL. If changed to https: then it kinda work, but if I naively edit ./meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb and change the URL to https I get errors if I don’t add a these checksums

SRC_URI[md5sum] = "5b3773f421deea6618ff940270e538e5"
SRC_URI[sha256sum] = "cf9abdf86cac9d0676282496abe7793516192fcc51eaa05639a165584c9c6662"

and if I do add them I get other errors:

ERROR: balena-18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0 do_compile: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_compile.19671)
ERROR: Logfile of failure stored in: /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_compile.19671
Log data follows:
| DEBUG: Executing shell function do_compile
| /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/run.do_compile.19671: line 152: cd: /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/git/src/import: No such file or directory
| WARNING: /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/run.do_compile.19671:1 exit 1 from 'cd /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/git/src/import'
| ERROR: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/armv7vehf-neon-poky-linux-gnueabi/balena/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_compile.19671)
ERROR: Task (/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb:do_compile) failed with exit code '1'
ERROR: balena-native-18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0 do_compile: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_compile.19680)
ERROR: Logfile of failure stored in: /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_compile.19680
Log data follows:
| DEBUG: Executing shell function do_compile
| /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/run.do_compile.19680: line 154: cd: /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/git/src/import: No such file or directory
| WARNING: /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/run.do_compile.19680:1 exit 1 from 'cd /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/git/src/import'
| ERROR: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_compile.19680)
ERROR: Task (virtual:native:/home/tinker-board/v2.38.3_rev8/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb:do_compile) failed with exit code '1'

Any ideas on how I should proceed?

Hi, could you please try to clone a new GitHub - balena-os/balena-asus-tinker-board repository, check out 2.38.3+rev1, apply the two patches I enclosed above and build?
Let me know if that produces any error and we’ll take it from there.

Hello,
I can not find the patches that you mentioned. If they were supposed to be in your post from yesterday then I don’t see it.

Sorry, I assumed they would be visible. Please fetch them from asus - Google Drive

I have applied the patches to an instance of 2.38.3+rev1 that was built with the -k flag before the patches were available. Not sure if that matters. But I got these errors:

[000000003][LOG]BalenaOS build initialized in directory: build.
[000000004][LOG]Run build for asus-tinker-board: MACHINE=asus-tinker-board bitbake resin-image  -k
[000000004][LOG]This might take a while ...
Loading cache: 100% |##################################################################################| Time: 0:00:00
Loaded 2984 entries from dependency cache.
Parsing recipes: 100% |################################################################################| Time: 0:00:02
Parsing of 2096 .bb files complete (2094 cached, 2 parsed). 2984 targets, 309 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.38.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "asus-tinker-board"
DISTRO               = "balena-os"
DISTRO_VERSION       = "2.38.3"
TUNE_FEATURES        = "arm armv7ve vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta                 
meta-poky            = "HEAD:24a833f40d837407baa4e8192f372d998a776b6c"
meta-oe              
meta-filesystems     
meta-networking      
meta-python          = "HEAD:be79b8b111a968efdbe5e1482d0c246d0b24763e"
meta-tinker-board    = "HEAD:99e2d6e1a8468734c88497c0a674727548ac6565"
meta-balena-common   
meta-resin-sumo      = "HEAD:0b0425bdb45bd76fb34c3029ef69de0b87abb83b"
meta-balena-asus-tinker-board = "HEAD:8e6a8bf76669facabec51951503dbc771f97fb8a"
meta-rust            = "HEAD:9487b089ea4779c2b494b17b9254219226efa539"

Initialising tasks: 100% |#############################################################################| Time: 0:00:04
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: docker-disk-balena_armv7hf-supervisor-v9.15.7-r0 do_compile: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/temp/log.do_compile.15126)
ERROR: Logfile of failure stored in: /home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/temp/log.do_compile.15126
Log data follows:
| DEBUG: Executing shell function do_compile
| Sending build context to Docker daemon  312.1MB
| 
| Step 1/6 : FROM docker:17.06-dind
|  ---> 038dca6ce611
| Step 2/6 : RUN apk add --update util-linux shadow e2fsprogs && rm -rf /var/cache/apk/*
|  ---> Using cache
|  ---> 4155d1406bf8
| Step 3/6 : ADD entry.sh /entry.sh
|  ---> Using cache
|  ---> f1dbde30e1d5
| Step 4/6 : RUN chmod a+x /entry.sh
|  ---> Using cache
|  ---> c8157f032b0e
| Step 5/6 : VOLUME /resin-data
|  ---> Using cache
|  ---> e98af307339f
| Step 6/6 : CMD /entry.sh
|  ---> Using cache
|  ---> 60ea05060cb4
| Successfully built 60ea05060cb4
| Successfully tagged docker-disk-2729:latest
| [INFO] Creating and setting 1000:1000.
| Creating mailbox file: No such file or directory
| Starting docker daemon with overlay2 storage driver.
| Waiting for docker to become ready..
| time="2022-10-13T12:56:15Z" level=warning msg="The \"-g / --graph\" flag is deprecated. Please use \"--data-root\" instead"
| time="2022-10-13T12:56:15.589354389Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
| time="2022-10-13T12:56:15.590570462Z" level=warning msg="libcontainerd: makeUpgradeProof could not open /var/run/docker/libcontainerd/containerd"
| time="2022-10-13T12:56:15.593362111Z" level=info msg="libcontainerd: new containerd process, pid: 25"
| Docker started.
| Pulling balena/armv7hf-supervisor:v9.15.7...
| time="2022-10-13T12:56:16.600785985Z" level=warning msg="failed to rename /resin-data/docker/tmp for background deletion: rename /resin-data/docker/tmp /resin-data/docker/tmp-old: no such file or directory. Deleting synchronously"
| Error starting daemon: error initializing graphdriver: driver not supported
| Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?). Using system default: https://index.docker.io/v1/
| Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
| WARNING: /home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/temp/run.do_compile.15126:1 exit 1 from '$DOCKER run --privileged --rm -e BALENA_STORAGE=overlay2 -e USER_ID=$(id -u) -e USER_GID=$(id -u) -e TARGET_REPOSITORY="balena/armv7hf-supervisor" -e TARGET_TAG="v9.15.7" -e PRIVATE_REGISTRY="${PRIVATE_REGISTRY}" -e PRIVATE_REGISTRY_USER="${PRIVATE_REGISTRY_USER}" -e PRIVATE_REGISTRY_PASSWORD="${PRIVATE_REGISTRY_PASSWORD}" -e PARTITION_SIZE="1024" -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/build:/build --name ${_container_name} ${_image_name}'
| ERROR: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/temp/log.do_compile.15126)
ERROR: Task (/home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/docker-disk/docker-disk.bb:do_compile) failed with exit code '1'
ERROR: balena-native-18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0 do_compile: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_compile.16445)
ERROR: Logfile of failure stored in: /home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_compile.16445
Log data follows:
| DEBUG: Executing shell function do_compile
| # WARNING! I don't seem to be running in a Docker container.
| # The result of this command might be an incorrect build, and will not be
| # officially supported.
| #
| # Try this instead: make all
| #
| 
| Package devmapper was not found in the pkg-config search path.
| Perhaps you should add the directory containing `devmapper.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'devmapper' found
| Removing bundles/
| 
| ---> Making bundle: dynbinary-balena (in bundles/dynbinary-balena)
| Building: bundles/dynbinary-balena/balena-engine-18.09.6-dev
| Created binary: bundles/dynbinary-balena/balena-engine-18.09.6-dev
| 
| # github.com/docker/docker/cmd/mobynit
| /home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
| gcc: error: unrecognized command line option ‘-no-pie’
| 
| WARNING: /home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/run.do_compile.16445:1 exit 2 from 'go build -ldflags '-extldflags "-static  -no-pie"' .'
| ERROR: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_compile.16445)
ERROR: Task (virtual:native:/home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3650 tasks of which 3597 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
  /home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/docker-disk/docker-disk.bb:do_compile
  virtual:native:/home/tinker-board/v2.38.3_rev1/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
[000000506][LOG]Build for asus-tinker-board failed. Check failed log in build/tmp/log/cooker/asus-tinker-board .
[000000506][LOG]If build for asus-tinker-board succeeded, final image should have been generated here:
[000000506][LOG]   build/tmp/deploy/images/asus-tinker-board/resin-image-asus-tinker-board.resinos-img
[000000506][LOG]Done.

I’m also building a fresh 2.38.3+rev1 from scratch with the patches you provided but is going to take a while. I will post the errors once the build is done.

It seems the docker-in-docker engine cannot initialise the storage driver.

  • what operating system are you using?
  • what’s the output of cat /proc/filesystem

I’m using Centos7. Ant the output of /proc/filesystem is:

nodev	sysfs
nodev	rootfs
nodev	ramfs
nodev	bdev
nodev	proc
nodev	cgroup
nodev	cpuset
nodev	tmpfs
nodev	devtmpfs
nodev	debugfs
nodev	securityfs
nodev	sockfs
nodev	dax
nodev	bpf
nodev	pipefs
nodev	configfs
nodev	devpts
nodev	hugetlbfs
nodev	autofs
nodev	pstore
nodev	mqueue
nodev	selinuxfs
	xfs
nodev	overlay
	fuseblk
nodev	fuse
nodev	fusectl

And I believe I’m getting the same errors after building patched 2.38.3+rev1 from scratch.

WARNING: bzip2-native-1.0.6-r5 do_fetch: Checksum mismatch for local file /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/downloads/bzip2-1.0.6.tar.gz
Cleaning and trying again.
WARNING: bzip2-native-1.0.6-r5 do_fetch: Renaming /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/downloads/bzip2-1.0.6.tar.gz to /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/downloads/bzip2-1.0.6.tar.gz_bad-checksum_9a1b94930d9c976e60da4a2efbf33488
WARNING: bzip2-native-1.0.6-r5 do_fetch: Checksum failure encountered with download of http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz - will attempt other sources if available
WARNING: expat-native-2.2.5-r0 do_fetch: Failed to fetch URL http://downloads.sourceforge.net/expat/expat-2.2.5.tar.bz2, attempting MIRRORS if available
WARNING: popt-native-1.16-r3 do_fetch: Failed to fetch URL https://fossies.org/linux/misc/popt-1.16.tar.gz, attempting MIRRORS if available
WARNING: libpcre-native-8.41-r0 do_fetch: Failed to fetch URL https://ftp.pcre.org/pub/pcre/pcre-8.41.tar.bz2, attempting MIRRORS if available
WARNING: busybox-1.27.2-r0 do_fetch: Failed to fetch URL http://www.busybox.net/downloads/busybox-1.27.2.tar.bz2;name=tarball, attempting MIRRORS if available
WARNING: icu-native-60.2-r0 do_fetch: Checksum mismatch for local file /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/downloads/icu4c-60_2-src.tgz
Cleaning and trying again.
WARNING: icu-native-60.2-r0 do_fetch: Renaming /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/downloads/icu4c-60_2-src.tgz to /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/downloads/icu4c-60_2-src.tgz_bad-checksum_83994dc343a785fda2724383fa15d359
WARNING: icu-native-60.2-r0 do_fetch: Checksum failure encountered with download of http://download.icu-project.org/files/icu4c/60.2/icu4c-60_2-src.tgz - will attempt other sources if available
WARNING: healthdog-0.1.0.AUTOINC+a10155844f-r0 do_fetch: Failed to fetch URL git://git@github.com/resin-os/healthdog-rs.git;protocol=ssh, attempting MIRRORS if available
WARNING: bindmount-0.0.1.AUTOINC+f597fb0266-r0 do_fetch: Failed to fetch URL git://git@github.com/resin-os/resinos-bindmount.git;protocol=ssh, attempting MIRRORS if available
WARNING: os-config-1.1.1-r0 do_fetch: Failed to fetch URL git://git@github.com/resin-os/os-config.git;protocol=ssh, attempting MIRRORS if available
WARNING: lsof-4.89-r0 do_fetch: Failed to fetch URL http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.89.tar.bz2, attempting MIRRORS if available
WARNING: redsocks-0.5-r0 do_fetch: Failed to fetch URL git://github.com/darkk/redsocks.git, attempting MIRRORS if available
ERROR: balena-native-18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0 do_compile: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_compile.17890)
ERROR: Logfile of failure stored in: /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_compile.17890
Log data follows:
| DEBUG: Executing shell function do_compile
| # WARNING! I don't seem to be running in a Docker container.
| # The result of this command might be an incorrect build, and will not be
| # officially supported.
| #
| # Try this instead: make all
| #
| 
| Package devmapper was not found in the pkg-config search path.
| Perhaps you should add the directory containing `devmapper.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'devmapper' found
| Removing bundles/
| 
| ---> Making bundle: dynbinary-balena (in bundles/dynbinary-balena)
| Building: bundles/dynbinary-balena/balena-engine-18.09.6-dev
| Created binary: bundles/dynbinary-balena/balena-engine-18.09.6-dev
| 
| # github.com/docker/docker/cmd/mobynit
| /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/recipe-sysroot-native/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
| gcc: error: unrecognized command line option ‘-no-pie’
| 
| WARNING: /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/run.do_compile.17890:1 exit 2 from 'go build -ldflags '-extldflags "-static  -no-pie"' .'
| ERROR: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/tmp/work/x86_64-linux/balena-native/18.09.6-dev+git95c7371304f9cef494efe93f0a8ffd53a75eac21-r0/temp/log.do_compile.17890)
ERROR: Task (virtual:native:/home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb:do_compile) failed with exit code '1'
WARNING: linux-tinker-board-4.4.103-r0 do_kernel_resin_checkconfig: Checking for CONFIG_MAC80211=m in the kernel configs failed for rtl8192cu.
WARNING: linux-tinker-board-4.4.103-r0 do_kernel_resin_checkconfig: Checking for CONFIG_CFG80211=m in the kernel configs failed for rtl8192cu.
WARNING: linux-tinker-board-4.4.103-r0 do_kernel_resin_checkconfig: Checking for CONFIG_IP_NF_TARGET_LOG=m in the kernel configs failed for misc.
WARNING: linux-tinker-board-4.4.103-r0 do_kernel_resin_checkconfig: Checking for CONFIG_NF_NAT_REDIRECT=m in the kernel configs failed for misc.
WARNING: linux-tinker-board-4.4.103-r0 do_kernel_resin_checkconfig: Checking for CONFIG_NETFILTER_XT_TARGET_REDIRECT=m in the kernel configs failed for redsocks.
ERROR: docker-disk-balena_armv7hf-supervisor-v9.15.7-r0 do_compile: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/temp/log.do_compile.822)
ERROR: Logfile of failure stored in: /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/temp/log.do_compile.822
Log data follows:
| DEBUG: Executing shell function do_compile
| Sending build context to Docker daemon  312.1MB
| 
| Step 1/6 : FROM docker:17.06-dind
|  ---> 038dca6ce611
| Step 2/6 : RUN apk add --update util-linux shadow e2fsprogs && rm -rf /var/cache/apk/*
|  ---> Using cache
|  ---> 4155d1406bf8
| Step 3/6 : ADD entry.sh /entry.sh
|  ---> Using cache
|  ---> f1dbde30e1d5
| Step 4/6 : RUN chmod a+x /entry.sh
|  ---> Using cache
|  ---> c8157f032b0e
| Step 5/6 : VOLUME /resin-data
|  ---> Using cache
|  ---> e98af307339f
| Step 6/6 : CMD /entry.sh
|  ---> Using cache
|  ---> 60ea05060cb4
| Successfully built 60ea05060cb4
| Successfully tagged docker-disk-15967:latest
| [INFO] Creating and setting 1000:1000.
| Creating mailbox file: No such file or directory
| Starting docker daemon with overlay2 storage driver.
| Waiting for docker to become ready..
| time="2022-10-13T16:16:40Z" level=warning msg="The \"-g / --graph\" flag is deprecated. Please use \"--data-root\" instead"
| time="2022-10-13T16:16:40.757196020Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
| time="2022-10-13T16:16:40.757959348Z" level=warning msg="libcontainerd: makeUpgradeProof could not open /var/run/docker/libcontainerd/containerd"
| time="2022-10-13T16:16:40.760671016Z" level=info msg="libcontainerd: new containerd process, pid: 19"
| Docker started.
| Pulling balena/armv7hf-supervisor:v9.15.7...
| time="2022-10-13T16:16:42.576375030Z" level=warning msg="failed to rename /resin-data/docker/tmp for background deletion: rename /resin-data/docker/tmp /resin-data/docker/tmp-old: no such file or directory. Deleting synchronously"
| Error starting daemon: error initializing graphdriver: driver not supported
| Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?). Using system default: https://index.docker.io/v1/
| Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
| WARNING: /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/temp/run.do_compile.822:1 exit 1 from '$DOCKER run --privileged --rm -e BALENA_STORAGE=overlay2 -e USER_ID=$(id -u) -e USER_GID=$(id -u) -e TARGET_REPOSITORY="balena/armv7hf-supervisor" -e TARGET_TAG="v9.15.7" -e PRIVATE_REGISTRY="${PRIVATE_REGISTRY}" -e PRIVATE_REGISTRY_USER="${PRIVATE_REGISTRY_USER}" -e PRIVATE_REGISTRY_PASSWORD="${PRIVATE_REGISTRY_PASSWORD}" -e PARTITION_SIZE="1024" -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/build:/build --name ${_container_name} ${_image_name}'
| ERROR: Function failed: do_compile (log file is located at /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/tmp/work/asus_tinker_board-poky-linux-gnueabi/docker-disk/balena_armv7hf-supervisor-v9.15.7-r0/temp/log.do_compile.822)
ERROR: Task (/home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/docker-disk/docker-disk.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3650 tasks of which 10 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
  virtual:native:/home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb:do_compile
  /home/tinker-board/v2.38.3_rev1_scratch/balena-asus-tinker-board/build/../layers/meta-balena/meta-balena-common/recipes-containers/docker-disk/docker-disk.bb:do_compile
Summary: There were 20 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
[000013090][LOG]Build for asus-tinker-board failed. Check failed log in build/tmp/log/cooker/asus-tinker-board .
[000013090][LOG]If build for asus-tinker-board succeeded, final image should have been generated here:
[000013090][LOG]   build/tmp/deploy/images/asus-tinker-board/resin-image-asus-tinker-board.resinos-img
[000013090][LOG]Done.

Hi,
I was able to build the 2.38.3+rev1 by making two ugly changes. It now boots up but still does not seem to work.

In meta-balena-common/recipes-containers/docker-disk/docker-disk.bb I changed docker run command environment variable BALENA_STORAGE=overlay. It should be overlay2. And this goes past

Error starting daemon: error initializing graphdriver: driver not supported

and in meta-balena-common/recipes-containers/balena/balena_git.bb i changed to

go build -ldflags '-extldflags "-static ${MOBYNIT_EXTRA_LDFLAGS}"' .

to

go build .

${MOBYNIT_EXTRA_LDFLAGS} holds only -no-pie witch is not enabled in this gcc anyway.

I wonder what is the reason that the 2.38.3+rev1 boots but the latest one does not? Is this being worked on?