I want to include k3s in my Yocto image.
I edited local.conf as below, but a build error occurred.
That log is attached.
MACHINE ??= 'imx8mp-lpddr4-evk'
DISTRO ?= 'fsl-imx-xwayland'
PACKAGE_CLASSES ?= 'package_rpm'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
CONF_VERSION = "1"DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"# Switch to Debian packaging and include package-management in the image
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"IMAGE_INSTALL_append = " k3s"
Please let me know this solution.
Best regards.
Yuki_S
已解决! 转到解答。
It seems that this version miss some patchs about gnutls and seccomp in this release:
https://gerrit.openbmc.org/plugins/gitiles/openbmc/openbmc/+/refs/heads/hardknott%5E%21/
Armin Kuster's patch:
https://yhbt.net/lore/all/YIZg0i%2FV+nW4aTKG@korppu/t/#md133f43ed594281d5161a9b7f4b69bb656cd6d75
Khem Raj's patch
gnutls: Point to staging area for finding seccomp libs and includes
I don't recommand you use hardkott.
Hi, @Zhiming_Liu ,
Thank you for your reply.
I edited local.conf as below.
MACHINE ??= 'imx8mp-lpddr4-evk'
DISTRO ?= 'fsl-imx-xwayland'
PACKAGE_CLASSES ?= 'package_rpm'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
CONF_VERSION = "1"DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"# Switch to Debian packaging and include package-management in the image
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"DISTRO_FEATURES:append = " seccomp"
IMAGE_INSTALL_append = " k3s"
But a following build error occurred.
feadmin@feadmin:~/work/imx-yocto-bsp/build-xwayland$ bitbake imx-image-full
Loading cache: 100% |####################################################################################################################################################################| Time: 0:00:00
Loaded 4948 entries from dependency cache.
Parsing recipes: 100% |##################################################################################################################################################################| Time: 0:00:00
Parsing of 3342 .bb files complete (3338 cached, 4 parsed). 4952 targets, 269 skipped, 3 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'libseccomp' (but /home/feadmin/work/imx-yocto-bsp/sources/poky/meta/recipes-support/gnutls/gnutls_3.7.2.bb, /home/feadmin/work/imx-yocto-bsp/sources/meta-virtualization/recipes-containers/runc/runc-opencontainers_git.bb DEPENDS on or otherwise requires it). Close matches:
libcomps
NOTE: Runtime target 'apt' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['apt', 'gnutls', 'libseccomp']
ERROR: Required build target 'imx-image-full' has no buildable providers.
Missing or unbuildable dependency chain was: ['imx-image-full', 'apt', 'gnutls', 'libseccomp']Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Am I doing something wrong…?
Or is there another solution?
Thank you for your reply!!
I tried with L5.15.32+ on other PC and k3s build was successful as you say.
However, my PC is built in the LF5.10.72_2.2.0 environment, and I cannot build in this environment.
Is k3s not supported in the LF5.10.72_2.2.0 environment?
(By the way, LF5.10.72_2.2.0 seems to have a recipe for k3s.)
cd ~/work/imx-yocto-bsp
source setup-environment build-xwayland
bitbake-layers show-recipes=== Available recipes: ===
a2jmidid:
meta-oe 9
kubernetes:
meta-virtualization v1.20.9+git7a576bc3935a6b555e33346fd73ad77c925e9e4a
k3s:
meta-virtualization git (skipped)
It seems that this version miss some patchs about gnutls and seccomp in this release:
https://gerrit.openbmc.org/plugins/gitiles/openbmc/openbmc/+/refs/heads/hardknott%5E%21/
Armin Kuster's patch:
https://yhbt.net/lore/all/YIZg0i%2FV+nW4aTKG@korppu/t/#md133f43ed594281d5161a9b7f4b69bb656cd6d75
Khem Raj's patch
gnutls: Point to staging area for finding seccomp libs and includes
I don't recommand you use hardkott.
Thank you for your reply!!
I didn't realize the patch was missing...
There is also a method that can be executed with a binary on the Rancher site, so we will consider that method as well.
I will also consider the environment with L5.15.32+. Thank you for your answer!