Hi, all
For a ubuntu desktop, I use imx-5.10.72-2.2.0_desktop.xml branch on https://source.codeaurora.org/external/imx/imx-manifest/?h=imx-linux-hardknott.
Because I want to use gnome 40, so I decide to upgrade to ubuntu 21.10, but I am a freshman for yocto project, I made some modification as following:
project sources/meta-nxp-desktop/
diff --git a/conf/distro/imx-desktop-xwayland.conf b/conf/distro/imx-desktop-xwayland.conf
index a921118..f1f8c89 100644
--- a/conf/distro/imx-desktop-xwayland.conf
+++ b/conf/distro/imx-desktop-xwayland.conf
@@ -28,7 +28,7 @@ PREFERRED_VERSION_qemu-native = "4.2.1"
PREFERRED_VERSION_qemu = "4.2.1"
GCCVERSION = "9.3.0"
-GLIBCVERSION = "2.31%"
+GLIBCVERSION = "2.34%"
IMX_GPU_VERSION = "6.4.3.p2.4d"
diff --git a/conf/machine/include/ubuntubasics.inc b/conf/machine/include/ubuntubasics.inc
index fddee2e..a7f6abe 100644
--- a/conf/machine/include/ubuntubasics.inc
+++ b/conf/machine/include/ubuntubasics.inc
@@ -3,7 +3,8 @@
# - 18.04.3
#UBUNTU_TARGET_VERSION ?= "16.04.5"
#UBUNTU_TARGET_VERSION ?= "18.04.3"
-UBUNTU_TARGET_VERSION ?= "20.04.3"
+#UBUNTU_TARGET_VERSION ?= "20.04.3"
+UBUNTU_TARGET_VERSION ?= "21.10"
UBUNTU_TARGET_MAJORVERSION ?= "${@d.getVar('UBUNTU_TARGET_VERSION', True).rsplit('.')[0]}"
UBUNTU_TARGET_MINORVERSION ?= "${@d.getVar('UBUNTU_TARGET_VERSION', True).rsplit('.')[1]}"
@@ -39,9 +40,11 @@ GLIBCVERSION = '${@ \
oe.utils.conditional("UBUNTU_TARGET_BASEVERSION", "16.04", "2.23", \
oe.utils.conditional("UBUNTU_TARGET_BASEVERSION", "18.04", "2.27", \
oe.utils.conditional("UBUNTU_TARGET_BASEVERSION", "20.04", "2.31%", \
+ oe.utils.conditional("UBUNTU_TARGET_BASEVERSION", "21.10", "2.34%", \
"unsupportedubuntuversion" \
, d) \
, d) \
+ , d) \
, d)}'
PREFERRED_VERSION_cross-localedef-native = "${GLIBCVERSION}"
BINUVERSION="2.34"
@@ -52,7 +55,9 @@ DISTRO_FEATURES_append = '${@ \
oe.utils.conditional("UBUNTU_TARGET_BASEVERSION", "16.04", "", \
oe.utils.conditional("UBUNTU_TARGET_BASEVERSION", "18.04", "", \
oe.utils.conditional("UBUNTU_TARGET_BASEVERSION", "20.04", " usrmerge", \
+ oe.utils.conditional("UBUNTU_TARGET_BASEVERSION", "21.10", " usrmerge", \
"unsupportedubuntuversion" \
+ , d) \
, d) \
, d) \
, d)}'
diff --git a/recipes-extended/ubuntu/ubuntu-base_20.04.3.bb b/recipes-extended/ubuntu/ubuntu-base_20.04.3.bb
index 7d89ef8..08cacc9 100644
--- a/recipes-extended/ubuntu/ubuntu-base_20.04.3.bb
+++ b/recipes-extended/ubuntu/ubuntu-base_20.04.3.bb
@@ -3,8 +3,10 @@ require ubuntu-license.inc
SECTION = "devel"
# Desktop 20.04.2 baseline
-SRC_URI[md5sum] = "b39023c9ed58323c2bb3c324569cff20"
-SRC_URI[sha256sum] = "e54a49b3f5bc1a4242167a3270d0648cabfb9c02b9a59b7a28a860a9b721cde1"
+#SRC_URI[md5sum] = "b39023c9ed58323c2bb3c324569cff20"
+SRC_URI[md5sum] = "b58b9b3d7476184b0514e3770679867c"
+#SRC_URI[sha256sum] = "e54a49b3f5bc1a4242167a3270d0648cabfb9c02b9a59b7a28a860a9b721cde1"
+SRC_URI[sha256sum] = "86cdcd2beca9aa34b6c0334cd055ddaa3433750e71224cf4c07282e5aa3c8c2a"
require ubuntu-base.inc
diff --git a/recipes-fsl/images/imx-image-desktop.bb b/recipes-fsl/images/imx-image-desktop.bb
index 7979d14..dfd1d77 100644
--- a/recipes-fsl/images/imx-image-desktop.bb
+++ b/recipes-fsl/images/imx-image-desktop.bb
@@ -51,11 +51,13 @@ IMAGE_INSTALL += "\
clutter-gst-3.0 \
cheese \
xserver-xorg-xwayland \
- chromium-ozone-wayland \
tensorflow-lite \
${ML_NNSTREAMER_PKGS} \
armnn \
"
+
+# chromium-ozone-wayland
+#
# We want to have an itb to boot from in the /boot directory to be flexible
# about U-Boot behavior
#IMAGE_INSTALL += "\
after my mading a compilation, I got the following ERROR:
ERROR: imx-image-desktop-21.10-r0 do_rootfs: Could not invoke dnf. Command '/data/ynliu/imx-yocto-bsp/build-desktop/tmp/work/imx8mpevk-fsl-linux/imx-image-desktop/21.10-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /data/ynliu/imx-yocto-bsp/build-desktop/tmp/work/imx8mpevk-fsl-linux/imx-image-desktop/21.10-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/data/ynliu/imx-yocto-bsp/build-desktop/tmp/work/imx8mpevk-fsl-linux/imx-image-desktop/21.10-r0/rootfs/etc/yum.repos.d --installroot=/data/ynliu/imx-yocto-bsp/build-desktop/tmp/work/imx8mpevk-fsl-linux/imx-image-desktop/21.10-r0/rootfs --setopt=logdir=/data/ynliu/imx-yocto-bsp/build-desktop/tmp/work/imx8mpevk-fsl-linux/imx-image-desktop/21.10-r0/temp --repofrompath=oe-repo,/data/ynliu/imx-yocto-bsp/build-desktop/tmp/work/imx8mpevk-fsl-linux/imx-image-desktop/21.10-r0/oe-rootfs-repo --nogpgcheck install alsa-state apitrace armnn basler-camera cheese clutter-gst-3.0 firmware-imx-easrc-imx8mn firmware-imx-sdma-imx7d firmware-imx-xcvr-imx8mp firmwared gputop imx-alsa-plugins imx-g2d-samples imx-gpu-viv-tools imx-m7-demos isp-imx kernel-devicetree kernel-image kernel-module-isp-vvcam kernel-module-nxp89xx kernel-modules libclc-imx libclc-imx-dev libcogl libdrm-vivante libegl-imx libegl-imx-dev libgal-imx libgal-imx-dev libgbm-imx libgbm-imx-dev libgles1-imx libgles1-imx-dev libgles2-imx libgles2-imx-dev libgles3-imx-dev libglslc-imx libgpuperfcnt libnn-imx libopencl-imx libopenvx-imx libopenvx-imx-dev libvsc-imx libvulkan-imx linux-firmware-ath10k linux-firmware-nxp89xx nnshark nnstreamer nnstreamer-protobuf nnstreamer-python3 nnstreamer-tensorflow-lite nxp-wlan-sdk packagegroup-fsl-gstreamer1.0 packagegroup-fsl-gstreamer1.0-full perf sof-imx systemd-gpuconfig tensorflow-lite ubuntu-base ubuntu-base-dbg ubuntu-base-dev ubuntu-base-doc udev-rules-imx wayland-protocols xserver-xorg-xwayland' returned 1:
DNF version: 4.6.0
cachedir: /data/ynliu/imx-yocto-bsp/build-desktop/tmp/work/imx8mpevk-fsl-linux/imx-image-desktop/21.10-r0/rootfs/var/cache/dnf
Added oe-repo repo from /data/ynliu/imx-yocto-bsp/build-desktop/tmp/work/imx8mpevk-fsl-linux/imx-image-desktop/21.10-r0/oe-rootfs-repo
User-Agent: falling back to 'libdnf': could not detect OS or basearch
repo: using cache for: oe-repo
oe-repo: using metadata from Fri 28 Jan 2022 08:35:13 AM UTC.
Last metadata expiration check: 0:00:01 ago on Fri 28 Jan 2022 08:35:13 AM UTC.
--> Starting dependency resolution
--> Finished dependency resolution
Error:
Problem 1: conflicting requests
- nothing provides ubuntu-base = 21.10 needed by isp-imx-4.2.2.16.0d-r0.cortexa53_crypto_mx8mp
Problem 2: conflicting requests
..................
I suspect that the glibc version lead to the problem, I have no too much ideas to it, any suggestion or help
is welcome.
Thanks in advance
Hello yueningliu,
We haven't tested the ubuntu 21.10 but you can access to 20.04 ubuntu BSP:
https://source.codeaurora.org/external/imx/meta-nxp-desktop/tree/README.md?h=imx-5.10.72-hardknott
Regards