Hello @ToradexAI,
I have the followed the steps exactly for the above given recipes-bsp and recipes-kernel exactly but I have recieved the error at the time of uocto build, why?
recipes-kernel Layer:
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-kernel/linux$ tree .
.
├── files
│ ├── ppp.cfg
│ └── verdin-imx8mp-qmi.cfg
├── linux-toradex
│ └── fast-boot.cfg
└── linux-toradex_%.bbappend
2 directories, 4 files
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-kernel/linux$ cat linux-toradex/fast-boot.cfg
# Fast boot kernel optimizations
CONFIG_PRINTK=n
CONFIG_EARLY_PRINTK=n
CONFIG_LOGO=n
CONFIG_UBI_SILENCE_MSG=y
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-kernel/linux$ cat linux-toradex_%.bbappend
FILESEXTRAPATHS:prepend := "${THISDIR}/linux-toradex:"
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
# Prevent the use of in-tree defconfig
unset KBUILD_DEFCONFIG
SRC_URI += "\
file://fast-boot.cfg \
"
# include both config fragments in SRC_URI so Yocto stages them
SRC_URI += "file://verdin-imx8mp-qmi.cfg \
file://ppp.cfg"
# Tell the kernel recipe these config fragments should be applied
KERNEL_CONFIG_FRAGMENTS += "verdin-imx8mp-qmi.cfg ppp.cfg"
do_configure:append() {
# Remove existing fdtfile, if there is one
sed -i '/"fdtfile=.*\\0" \\/d' ${S}/include/configs/verdin-imx8mp.h
# Add console disable and fast boot parameters
sed -i 's/\("fdt_board=.*\\0" \\\)/\0\n "tdxargs=quiet loglevel=0 logo.nologo vt.global_cursor_default=0 vt.default_redraw=0\\0" \\/' ${S}/include/configs/verdin-imx8mp.h
}
# Toradex-supported kernel cmdline injection
# APPENDARGS += " quiet loglevel=0 logo.nologo vt.global_cursor_default=0 vt.default_redraw=0"
recipes-bsp Layer:
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-bsp$ tree .
.
└── u-boot
├── files
│ └── verdin-imx8mp
│ ├── disable-console-logs.patch
│ └── fast-boot-config.patch
└── u-boot-toradex_%.bbappend
3 directories, 3 files
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-bsp$ cat u-boot/files/verdin-imx8mp/disable-console-logs.patch
diff --git a/include/configs/verdin-imx8mp.h b/include/configs/verdin-imx8mp.h
index 1234567..abcdefg 100644
--- a/include/configs/verdin-imx8mp.h
+++ b/include/configs/verdin-imx8mp.h
@@ -XX,X +XX,X @@
- "tdxargs=\0" \
+ "tdxargs=quiet loglevel=0 logo.nologo vt.global_cursor_default=0 vt.default_redraw=0\0" \
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-bsp$ cat u-boot/files/verdin-imx8mp/fast-boot-config.patch
diff --git a/include/configs/verdin-imx8mp.h b/include/configs/verdin-imx8mp.h
index 1234567..abcdefg 100644
--- a/include/configs/verdin-imx8mp.h
+++ b/include/configs/verdin-imx8mp.h
@@ -XX,X +XX,X @@
-#define CONFIG_BOOTDELAY 1
+#define CONFIG_BOOTDELAY 0
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-bsp$ cat u-boot/u-boot-toradex_%.bbappend
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += "\
file://disable-console-logs.patch \
file://fast-boot-config.patch \
"
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-bsp$
I got an error while building the Yocto build in Host Machine:
hari@Administrator:~/oe-core/build$ bitbake -k tdx-reference-multimedia-image
NOTE: Reconnecting to bitbake server...
Loading cache: 100% |########################################################################################| Time: 0:00:02
Loaded 5421 entries from dependency cache.
Parsing recipes: 100% |######################################################################################| Time: 0:00:01
Parsing of 3393 .bb files complete (3391 cached, 2 parsed). 5423 targets, 638 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
WARNING: preferred version 1.24.7.imx of gstreamer1.0-plugins-ugly not available (for item gstreamer1.0-plugins-ugly-meta)
WARNING: versions of gstreamer1.0-plugins-ugly available: 1.22.12 1.24.0.imx
WARNING: preferred version 1.24.7.imx of gstreamer1.0-libav not available (for item gstreamer1.0-libav)
WARNING: versions of gstreamer1.0-libav available: 1.22.12 1.24.0.imx
WARNING: preferred version 1.24.7.imx of gstreamer1.0-plugins-ugly not available (for item gstreamer1.0-plugins-ugly)
WARNING: versions of gstreamer1.0-plugins-ugly available: 1.22.12 1.24.0.imx
WARNING: preferred version 1.24.7.imx of gstreamer1.0-plugins-ugly not available (for item gstreamer1.0-plugins-ugly-dev)
WARNING: versions of gstreamer1.0-plugins-ugly available: 1.22.12 1.24.0.imx
WARNING: preferred version 1.24.7.imx of gstreamer1.0-plugins-ugly not available (for item gstreamer1.0-plugins-ugly-asf)
WARNING: versions of gstreamer1.0-plugins-ugly available: 1.22.12 1.24.0.imx
WARNING: preferred version 1.24.7.imx of gstreamer1.0-libav not available (for item gstreamer1.0-libav-dev)
WARNING: versions of gstreamer1.0-libav available: 1.22.12 1.24.0.imx
Build Configuration:
BB_VERSION = "2.8.1"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-22.04"
TARGET_SYS = "aarch64-tdx-linux"
MACHINE = "verdin-imx8mp"
DISTRO = "tdx-xwayland"
DISTRO_VERSION = "7.5.0-devel-20260105070441+build.0"
TUNE_FEATURES = "aarch64 armv8a crypto"
TARGET_FPU = ""
meta-toradex-nxp = "HEAD:c8b1e7c44c930edd8ff889ad01ab4a5f636948d8"
meta-freescale = "HEAD:7d83a350d8b28498321a481a2a1c51bb4afb48e9"
meta-freescale-3rdparty = "HEAD:70c83e96c7f75e73245cb77f1b0cada9ed4bbc6d"
meta-toradex-ti = "HEAD:699cbb557f3c5e57dbdffa2c2023993ee081cf07"
meta-arm-toolchain
meta-arm = "HEAD:a81c19915b5b9e71ed394032e9a50fd06919e1cd"
meta-ti-bsp
meta-ti-extras = "HEAD:5b095d968eb225b72e44dc164683aa9157ec2b93"
meta-toradex-bsp-common = "HEAD:366aae1eecae26cf31d6f227217670a8245a93f1"
meta-oe
meta-filesystems
meta-networking
meta-multimedia
meta-python = "HEAD:15e18246dd0c0585cd1515a0be8ee5e2016d1329"
meta-freescale-distro = "HEAD:b9d6a5d9931922558046d230c1f5f4ef6ee72345"
meta-toradex-demos = "HEAD:4ba1cebc6909ee7a83d569e8cc748f69e6a0a24f"
meta-qt5 = "HEAD:e197839013fa2cfd59339508303bce91fef48928"
meta-tpm = "HEAD:bc865c5276c2ab4031229916e8d7c20148dfbac3"
meta-toradex-distro = "HEAD:71f3887a63d9b10b925afd75d6fb00085cd420b3"
meta-poky = "HEAD:3ff7ca786732390cd56ae92ff4a43aba46a1bf2e"
meta = "HEAD:06d4981313ce67a8d53b1c14be9845b4b5a9f4cf"
meta-toradex-chromium = "<unknown>:<unknown>"
meta-chromium = "HEAD:dc31889c0899971def535dc1c040edf18bc16691"
meta-clang = "scarthgap:731488911f55ebfe746068512b426351192f82f2"
meta-lokbest = "<unknown>:<unknown>"
Sstate summary: Wanted 498 Local 419 Mirrors 0 Missed 79 Current 5626 (84% match, 98% complete)##### | ETA: 0:00:01
Removing 39 stale sstate objects for arch verdin_imx8mp: 100% |##############################################| Time: 0:00:00
NOTE: Executing Tasks
ERROR: u-boot-toradex-1_2024.07-r0 do_patch: Applying patch 'disable-console-logs.patch' on target directory '/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/u-boot-toradex/2024.07/git'
CmdError('quilt --quiltrc /home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/u-boot-toradex/2024.07/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch disable-console-logs.patch
patching file include/configs/verdin-imx8mp.h
patch: **** missing line number at line 5: @@ -XX,X +XX,X @@
Patch disable-console-logs.patch does not apply (enforce with -f)
stderr: ')
ERROR: Logfile of failure stored in: /home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/u-boot-toradex/2024.07/temp/log.do_patch.5366
ERROR: Task (/home/hari/oe-core/build/../layers/meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-toradex_2024.07.bb:do_patch) failed with exit code '1'
ERROR: linux-toradex-6.6.101+git-r0 do_configure: ExecutionError('/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/temp/run.do_configure.11489', 2, None, None)
ERROR: Logfile of failure stored in: /home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/temp/log.do_configure.11489
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/hari/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/binutils/binutils-cross_2.42.bb:do_populate_sysroot', '/home/hari/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_13.4.bb:do_populate_sysroot', '/home/hari/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', '/home/hari/oe-core/build/../layers/openembedded-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', 'virtual:native:/home/hari/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/bison/bison_3.8.2.bb:do_populate_sysroot', 'virtual:native:/home/hari/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/hari/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/home/hari/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/hari/oe-core/build/../layers/openembedded-core/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot', 'virtual:native:/home/hari/oe-core/build/../layers/openembedded-core/meta/recipes-kernel/kmod/kmod_31.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['gettext-minimal-native', 'binutils-cross-aarch64', 'cmake-native', 'gcc-cross-aarch64', 'libtool-native', 'm4-native', 'quilt-native', 'texinfo-dummy-native', 'kern-tools-native', 'linux-libc-headers', 'openssl-native', 'expat-native', 'ncurses-native', 'readline-native', 'util-linux-libuuid-native', 'zlib-native', 'bison-native', 'flex-native', 'git-native', 'gnu-config-native', 'libedit-native', 'make-native', 'patch-native', 'perl-native', 'pkgconfig-native', 'pseudo-native', 'python3-native', 'bc-native', 'bzip2-native', 'libnsl2-native', 'libtirpc-native', 'xz-native', 'zstd-native', 'kmod-native', 'attr-native', 'ca-certificates-native', 'curl-native', 'gdbm-native', 'gmp-native', 'libffi-native', 'libmpc-native', 'mpfr-native', 'sqlite3-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| NOTE: make CC=aarch64-tdx-linux-gcc -fuse-ld=bfd -fcanon-prefix-map -fmacro-prefix-map=/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/git=/usr/src/debug/linux-toradex/6.6.101+git -fdebug-prefix-map=/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/git=/usr/src/debug/linux-toradex/6.6.101+git -fmacro-prefix-map=/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/build=/usr/src/debug/linux-toradex/6.6.101+git -fdebug-prefix-map=/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/build=/usr/src/debug/linux-toradex/6.6.101+git -fdebug-prefix-map=/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/recipe-sysroot= -fmacro-prefix-map=/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/recipe-sysroot= -fdebug-prefix-map=/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/recipe-sysroot-native= -fdebug-prefix-map=/home/hari/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-source=/usr/src/kernel -fmacro-prefix-map=/home/hari/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/hari/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-build-artifacts=/usr/src/kernel -fmacro-prefix-map=/home/hari/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-build-artifacts=/usr/src/kernel LD=aarch64-tdx-linux-ld.bfd OBJCOPY=aarch64-tdx-linux-objcopy STRIP=aarch64-tdx-linux-strip HOSTCC=gcc HOSTCFLAGS=-isystem/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/recipe-sysroot-native/usr/lib -L/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/recipe-sysroot-native/lib -Wl,-rpath,/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/recipe-sysroot-native/lib -Wl,-O1 HOSTCPP=gcc -E HOSTCXX=g++ HOSTCXXFLAGS=-isystem/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/recipe-sysroot-native/usr/include -O2 -pipe HOSTPKG_CONFIG=pkg-config-native -C /home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/git O=/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/build olddefconfig
| make: Entering directory '/home/hari/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-source'
| make[1]: Entering directory '/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/build'
| GEN Makefile
| HOSTCC scripts/basic/fixdep
| HOSTCC scripts/kconfig/conf.o
| HOSTCC scripts/kconfig/confdata.o
| HOSTCC scripts/kconfig/expr.o
| HOSTCC scripts/kconfig/lexer.lex.o
| HOSTCC scripts/kconfig/menu.o
| HOSTCC scripts/kconfig/parser.tab.o
| HOSTCC scripts/kconfig/preprocess.o
| HOSTCC scripts/kconfig/symbol.o
| HOSTCC scripts/kconfig/util.o
| HOSTLD scripts/kconfig/conf
| #
| # No change to .config
| #
| make[1]: Leaving directory '/home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/build'
| make: Leaving directory '/home/hari/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-source'
| sed: can't read /home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/git/include/configs/verdin-imx8mp.h: No such file or directory
| WARNING: exit code 2 from a shell command.
ERROR: Task (/home/hari/oe-core/build/../layers/meta-toradex-nxp/recipes-kernel/linux/linux-toradex_6.6-2.2.x.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 12420 tasks of which 12371 didn't need to be rerun and 2 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds
Summary: 2 tasks failed:
/home/hari/oe-core/build/../layers/meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-toradex_2024.07.bb:do_patch
log: /home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/u-boot-toradex/2024.07/temp/log.do_patch.5366
/home/hari/oe-core/build/../layers/meta-toradex-nxp/recipes-kernel/linux/linux-toradex_6.6-2.2.x.bb:do_configure
log: /home/hari/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex/6.6.101+git/temp/log.do_configure.11489
Summary: There were 12 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.
hari@Administrator:~/oe-core/build$
I need the solution for the error clearance and correct configs and recipe layer for the required setup for my build.