Generally we’d recommend checking things with a web search, Yocto is a very widely documented project (and pretty big too, so we cannot document everything). Have asked our device support team as well to chime in with any further points, though, but that will likely happen a little while later.
There’s also our “How to build your own image” page on the balenaOS site that might be helpful for getting an actual image out of the process: https://www.balena.io/os/docs/custom-build/
Okay so just to confirm I can’t add a custom_overlay ( i.e. a DTBO file ) on the current Host OS provided by the Balena.
I need to build an image to make the custom dtbo usable. as spanceac mentioned here:
My speculation for the reason that you don’t see the dtbo file there, is the way we use aufs to mount the rootfs and is not an u-boot bug.
If you want your dtbo in the /boot/overlays folder you need to create your own build.
Clone this repo:
https://github.com/balena-os/balena-beaglebone.
Patch this recipe to add your overlay source:
https://github.com/balena-os/balena-beaglebone/blob/master/layers/meta-balena-beaglebone/recipes-kernel/linux/bb-org-overlays.bb.
Then you can build an image and use it on your board and your dtbo should be usable.
Regards!
Also is it possible if I enable device support someone from Balena support team verify the problem?
Now build: ./balena-yocto-scripts/build/barys -m beaglebone -b my_custom_bbb_build
After build finishes, in the folder my_custom_bbb_build/tmp/deploy/images/beaglebone you will find an image that you should flash it to the SD card.
The image name should be of type: resin-image-beaglebone.resinos-img and it’s a symlink to a bigger file.
If you want, you can create a PR with steps 2 and 3 in the github repo and this way your dtbo will always be in the official Balena images and you will not need to do your custom builds.
ERROR: linux-beagleboard-4.14.53+gitAUTOINC+f77e7b554e-r22b do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-hjBTuCq9KU"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/user/Desktop/Balena_OS/balena-beaglebone/my_custom_bbb_build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/user/Desktop/Balena_OS/balena-beaglebone/layers/poky/scripts:/home/user/Desktop/Balena_OS/balena-beaglebone/my_custom_bbb_build/tmp/work/beaglebone-poky-linux-gnueabi/linux-beagleboard/4.14.53+gitAUTOINC+f77e7b554e-r22b/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/user/Desktop/Balena_OS/balena-beaglebone/my_custom_bbb_build/tmp/work/beaglebone-poky-linux-gnueabi/linux-beagleboard/4.14.53+gitAUTOINC+f77e7b554e-r22b/recipe-sysroot/usr/bin/crossscripts:/home/user/Desktop/Balena_OS/balena-beaglebone/my_custom_bbb_build/tmp/work/beaglebone-poky-linux-gnueabi/linux-beagleboard/4.14.53+gitAUTOINC+f77e7b554e-r22b/recipe-sysroot-native/usr/sbin:/home/user/Desktop/Balena_OS/balena-beaglebone/my_custom_bbb_build/tmp/work/beaglebone-poky-linux-gnueabi/linux-beagleboard/4.14.53+gitAUTOINC+f77e7b554e-r22b/recipe-sysroot-native/usr/bin:/home/user/Desktop/Balena_OS/balena-beaglebone/my_custom_bbb_build/tmp/work/beaglebone-poky-linux-gnueabi/linux-beagleboard/4.14.53+gitAUTOINC+f77e7b554e-r22b/recipe-sysroot-native/sbin:/home/user/Desktop/Balena_OS/balena-beaglebone/my_custom_bbb_build/tmp/work/beaglebone-poky-linux-gnueabi/linux-beagleboard/4.14.53+gitAUTOINC+f77e7b554e-r22b/recipe-sysroot-native/bin:/home/user/Desktop/Balena_OS/balena-beaglebone/layers/poky/bitbake/bin:/home/user/Desktop/Balena_OS/balena-beaglebone/my_custom_bbb_build/tmp/hosttools"; export HOME="/home/user"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://github.com/beagleboard/linux.git /home/user/Desktop/Balena_OS/balena-beaglebone/my_custom_bbb_build/downloads/git2/github.com.beagleboard.linux.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/user/Desktop/Balena_OS/balena-beaglebone/my_custom_bbb_build/downloads/git2/github.com.beagleboard.linux.git'...
remote: Enumerating objects: 385, done.
remote: Counting objects: 100% (385/385), done.
remote: Compressing objects: 100% (134/134), done.
fatal: read error: Connection timed out7), 1.03 GiB | 102.00 KiB/s
fatal: early EOF
fatal: index-pack failed
ERROR: linux-beagleboard-4.14.53+gitAUTOINC+f77e7b554e-r22b do_fetch: Fetcher failure for URL: 'git://github.com/beagleboard/linux.git;protocol=git;tag=4.14.53-ti-r62;nobranch=1'. Unable to fetch URL from any source.
ERROR: linux-beagleboard-4.14.53+gitAUTOINC+f77e7b554e-r22b do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/user/Desktop/Balena_OS/balena-beaglebone/my_custom_bbb_build/tmp/work/beaglebone-poky-linux-gnueabi/linux-beagleboard/4.14.53+gitAUTOINC+f77e7b554e-r22b/temp/log.do_fetch.10893
ERROR: Task (/home/user/Desktop/Balena_OS/balena-beaglebone/my_custom_bbb_build/../layers/meta-balena-beaglebone/recipes-kernel/linux/linux-beagleboard_4.14.bb:do_fetch) failed with exit code '1'
Any idea what might be going wrong?
Note: I am using Ubuntu 16.04 LTS and also I am not running the service as root. I am running it as normal user and docker also has been added to that group. Also all the dependencies have been installed.
Thanks for the PR @Sharvin26 , I have added some of the team as reviewers there and they will comment on the PR if there are any changes needed. Thanks again!