Running docker in the arria10 as "a hot swap application bus"

Hi All,

I am trying to design a “hot swap” application bus using the docker technology and wonder the issues and resolution

I follow the instruction documented in the following article:

I extend the instruction to configure the docker to the local.conf and bblayer files.

My local configuration, local.conf file includes:

CONF_VERSION = “1”
MACHINE = “arria10”
DISTRO_FEATURES_append = " virtualization"
DISTRO_FEATURES_append = " systemd"
HOSTTOOLS_NONFATAL += “sudo pidof dockerd podman newgidmap newuidmap”

VIRTUAL-RUNTIME_init_manager = “systemd”
DISTRO_FEATURES_BACKFILL_CONSIDERED = “sysvinit”

PREFERRED_PROVIDER_virtual/kernel = “linux-socfpga-lts”
UBOOT_CONFIG = “arria10-socdk”
PREFERRED_PROVIDER_virtual/bootloader = “u-boot-socfpga”
DL_DIR = “/home/hlkn/arria10/a10_gsrd/yocto/downloads”

IMAGE_FSTYPES += “jffs2 tar.gz”
#IMAGE_FSTYPES += “ext4 tar.gz”
KERNEL_ALT_IMAGETYPE = “Image”

IMAGE_INSTALL_append = " curl-dev "
IMAGE_INSTALL_append = " docker connman connman-client "
IMAGE_INSTALL_append = " sysstat cronie ca-certificates "
IMAGE_INSTALL_append = " openssh-sftp openssh-sftp-server "

My layer includes:

cd $TOP_FOLDER
rm -rf a10_soc_devkit_ghrd ACDS-20.4pro-20.1std.zip
wget https://github.com/altera-opensource/ghrd-socfpga/archive/ACDS-20.4pro-20.1std.zip
unzip ACDS-20.4pro-20.1std.zip
mv ghrd-socfpga-ACDS-20.4pro-20.1std/a10_soc_devkit_ghrd_pro a10_soc_devkit_ghrd
rm -rf ghrd-socfpga-ACDS-20.4pro-20.1std
cd a10_soc_devkit_ghrd

My 8G sdcard is constructed to support the ext4 FS

sudo python3 make_sdimage_p3.py -f
-P u-boot-splx4.sfp,num=3,format=raw,size=10M,type=A2
-P rootfs/,num=2,format=ext4,size=6500M
-P fat/
,num=1,format=fat32,size=500M -s 7G
-n sdcard.img

I tested on the Arria10 Dev Board

For the intel Arria10 Dev Board I have an issue to create the overlay2 File System and the error messages

ERRO[2020-12-16T17:25:51.223245480Z] Failed to built-in GetDriver graph btrfs
ERRO[2020-12-16T17:25:51.232620040Z] failed to mount overlay: no such device 2
ERRO[2020-12-16T17:25:51.240656320Z] AUFS was not found in /proc/filesystems s
ERRO[2020-12-16T17:25:51.246201640Z] failed to mount overlay: no such device y
ERRO[2020-12-16T17:25:51.246314760Z] Failed to built-in GetDriver graph device

And on the RaspebeeryPi4 ( to run both 32 bit and 64 bit without any hardware design included eg fpga)

However, I used the similar configuration to build the image for the RaspberryPi4. The docker bus works well.

Thank you in advanced.

Regards. Henry