Deploying Kernel to an image

Hi community, IΒ΄m working with module imx6ull 512MB, and I want to customized the device tree.
In this moment I was can compilation the kernel, following the steps on this documentation: Build Linux Kernel from Source Code | Toradex Developer Center

But now, I want integrate my customized Kernel, into my image (tdx-reference-minimal-image).
I had my image that I got executeding the command

bitbake tdx-reference-minimal-image

after, was created one folder colibri-imx6ull in the address /home/yocto-project/oe-core/build/deploy/images .
I replace the files zImage and imx6ull-colibri-eval-v3.dtb with the files zImage and imx6ull-colibri-eval-v3.dtb located in the address: /home/yocto-project/linux/arch/arm/boot and /home/yocto-project/linux/arch/arm/boot/dts, respectively.

When I created the file .tar and ejecute Toradez Easy Installer with my image, the installation is successful, but I reset and power on the module, but I donΒ΄t image, i.e. there appears to be no OS.

Is there a step that IΒ΄m doing worng?

Thanks for your time

Hi @facundo.n.r !

From what I understood, you have only replaced the device tree (.dtb file) and the kernel (the zImage file) on the image, right?

Given that you customized the kernel, most probably the image failed to boot because the kernel modules (the drivers) are strongly dependent on the kernel so modifying the kernel will most probably render the kernel modules unloadable by this new/customized kernel.

If you share the log (serial output) of the boot process of this image, we will have better understanding of what might be going on :slight_smile:

The article you pointed out shows 2 ways of deploying your customized kernel to an image. Please check the Deploying the Kernel to an Image and Linux Kernel Module Compilation and Deployment sections in there.

Please keep in mind that those methods are good for quick tests, but it is recommended to make use of Yocto (layers/recipes) to completely build your image for production, so you have a reproducible image and you will be capable of performing proper maintenance in the future.

Best regards,

Hi @herique.tx I customized the kerne following this documentation Custom meta layers, recipes and images in Yocto Project (hello-world examples) | Toradex Developer Center

This is my file of device tree:

/dts-v1/;

#include "imx6ull-colibri-wifi.dtsi"
#include "imx6ull-colibri-eval-v3.dtsi"

/ {
        model = "Toradex Colibri iMX6ULL 512MB on Colibri Evaluation Board V3";
        compatible = "toradex,colibri-imx6ull-wifi-eval", "fsl,imx6ull";
};

/*Creo un nodo uart3 para configurar los puertos*/


&uart3{
    pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart3>;
	uart-has-rtscts;
	fsl,dte-mode;
};
&pinctrl_gpio1{
    /delete-property/ fsl,pins;
};
&iomuxc {
    pinctrl-0 = <&pinctrl_uart3>;
    imx6ull-colibri{
        pinctrl_uart3: uart3grp {
                fsl,pins = <
                    MX6UL_PAD_UART3_TX_DATA__UART3_DCE_TX	0x1b0b1 /* SODIMM 135 */
                    MX6UL_PAD_UART3_RX_DATA__UART3_DCE_RX	0x1b0b1 /* SODIMM 77 */
                    
                >;
        };
    };
};

I remove the property of node pinctrl_gpio, because I need to only use the port SODIMM 135 and 77, for use the uart3.
I can compile the image using command: bitbake tdx-reference-minimal-image but when I intall it in my module, and look for the file ttymxc2 that corresponds to uart3 , I do not see it.

Also, when compile, I get two signal Warning:

bitbake tdx-reference-minimal-image
Loading cache: 100% |##################################################################| Time: 0:00:02
Loaded 4724 entries from dependency cache.
WARNING: No recipes in default available for:
  /home/yocto-project/oe-core/build/../layers/meta-customer/recipes-bsp/u-boot/u-boot-toradex_v6.1.55%.bbappend
  /home/yocto-project/oe-core/build/../layers/meta-customer/recipes-kernel/linux/linux-toradex_v6.1.55%.bbappend
  /home/yocto-project/oe-core/build/../layers/meta-toradex-nxp/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.0.imx.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-tdx-linux-gnueabi"
MACHINE              = "colibri-imx6ull"
DISTRO               = "tdx-xwayland-upstream"
DISTRO_VERSION       = "6.5.0-devel-20240104160510+build.0"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-toradex-nxp     = "HEAD:adee5ba8699ac0e0ccd2d7f3897f024c0b85bed4"
meta-freescale       = "HEAD:47e0b467d8555e38a996b731977d9eed9ab02051"
meta-freescale-3rdparty = "HEAD:9e94b64bdfebcf7bfdf2af6447cec866a4efa814"
meta-toradex-ti      = "HEAD:c4416ba464203669f7a3379b73ff87cd3b15b6f4"
meta-arm-toolchain
meta-arm             = "HEAD:b187fb9232ca0a6b5f8f90b4715958546fc41d73"
meta-ti-bsp
meta-ti-extras       = "HEAD:6ad91a192fa1ab33775a22894a413aefd0b67106"
meta-toradex-bsp-common = "HEAD:e89c5c838d971f6fc8c95842b7b93cc0fea74c14"
meta-oe
meta-filesystems
meta-gnome
meta-xfce
meta-networking
meta-multimedia
meta-python          = "HEAD:8a75c61cce2aa1d6e5a3597ab8fc5a7e6aeae1e4"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-toradex-demos   = "HEAD:6b65323381ffd8d25d040b658dac26e7e781c967"
meta-qt5             = "HEAD:ae8a97f79364bed1abc297636f7933d0e35f22be"
meta-toradex-distro  = "HEAD:8363ba48d2c3207a97974aec662b373692310b08"
meta-poky            = "HEAD:10e9c5a4c80fe4ee717b9ff63a08c58a9ac094e2"
meta                 = "HEAD:11da43b58e19583a9bc16044309610cfb2e86469"
meta-customer        = "<unknown>:<unknown>"

Initialising tasks: 100% |#############################################################| Time: 0:00:08
Sstate summary: Wanted 260 Local 260 Mirrors 0 Missed 0 Current 2014 (100% match, 100% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 5536 tasks of which 5536 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 37 seconds

Summary: There was 1 WARNING message.

Now, I created a new file .dts for custom the device tree with another name. Apply the steps of Customize the Kernel with a meta layer. And I get two ERRORS:

yocto-project@server:~/oe-core/build$ bitbake tdx-reference-minimal-image
Loading cache: 100% |############################################| Time: 0:00:03
Loaded 4724 entries from dependency cache.
WARNING: No recipes in default available for:
  /home/yocto-project/oe-core/build/../layers/meta-customer/recipes-bsp/u-boot/u-boot-toradex_6.5%.bbappend
  /home/yocto-project/oe-core/build/../layers/meta-customer/recipes-kernel/linux/linux-toradex_6.5%.bbappend
  /home/yocto-project/oe-core/build/../layers/meta-toradex-nxp/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.0.imx.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-tdx-linux-gnueabi"
MACHINE              = "colibri-imx6ull"
DISTRO               = "tdx-xwayland-upstream"
DISTRO_VERSION       = "6.5.0-devel-20240105115454+build.0"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-toradex-nxp     = "HEAD:adee5ba8699ac0e0ccd2d7f3897f024c0b85bed4"
meta-freescale       = "HEAD:47e0b467d8555e38a996b731977d9eed9ab02051"
meta-freescale-3rdparty = "HEAD:9e94b64bdfebcf7bfdf2af6447cec866a4efa814"
meta-toradex-ti      = "HEAD:c4416ba464203669f7a3379b73ff87cd3b15b6f4"
meta-arm-toolchain
meta-arm             = "HEAD:b187fb9232ca0a6b5f8f90b4715958546fc41d73"
meta-ti-bsp
meta-ti-extras       = "HEAD:6ad91a192fa1ab33775a22894a413aefd0b67106"
meta-toradex-bsp-common = "HEAD:e89c5c838d971f6fc8c95842b7b93cc0fea74c14"
meta-oe
meta-filesystems
meta-gnome
meta-xfce
meta-networking
meta-multimedia
meta-python          = "HEAD:8a75c61cce2aa1d6e5a3597ab8fc5a7e6aeae1e4"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-toradex-demos   = "HEAD:6b65323381ffd8d25d040b658dac26e7e781c967"
meta-qt5             = "HEAD:ae8a97f79364bed1abc297636f7933d0e35f22be"
meta-toradex-distro  = "HEAD:8363ba48d2c3207a97974aec662b373692310b08"
meta-poky            = "HEAD:10e9c5a4c80fe4ee717b9ff63a08c58a9ac094e2"
meta                 = "HEAD:11da43b58e19583a9bc16044309610cfb2e86469"
meta-customer        = "<unknown>:<unknown>"

Initialising tasks: 100% |#######################################| Time: 0:00:08
Sstate summary: Wanted 286 Local 257 Mirrors 0 Missed 29 Current 1988 (89% match, 98% complete)
NOTE: Executing Tasks
ERROR: linux-toradex-mainline-6.1.65+gitAUTOINC+c6114c8459-r0 do_compile: oe_runmake failed
ERROR: linux-toradex-mainline-6.1.65+gitAUTOINC+c6114c8459-r0 do_compile: ExecutionError('/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/temp/run.do_compile.26682', 1, None, None)
ERROR: Logfile of failure stored in: /home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/temp/log.do_compile.26682
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: KBUILD_BUILD_TIMESTAMP: Sun Dec  3 06:32:13 UTC 2023
| NOTE: make -j 4 CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
          -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
            -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel LD=arm-tdx-linux-gnueabi-ld.bfd   HOSTCC=gcc  HOSTCFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib
               -L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags
      -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib
      -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/yocto-project/oe-core/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  HOSTCXXFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe -j 4 zImage
|   SYNC    include/config/auto.conf.cmd
|   GEN     Makefile
|   GEN     Makefile
|   CALL    /home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source/scripts/checksyscalls.sh
|   Kernel: arch/arm/boot/Image is ready
|   Kernel: arch/arm/boot/zImage is ready
| NOTE: make -j 4 CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
          -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
            -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel LD=arm-tdx-linux-gnueabi-ld.bfd   HOSTCC=gcc  HOSTCFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib
               -L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags
      -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib
      -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/yocto-project/oe-core/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  HOSTCXXFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe imx6ull-colibri-eval-v3.dtb CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel   LD=arm-tdx-linux-gnueabi-ld.bfd
|   SYNC    include/config/auto.conf.cmd
|   GEN     Makefile
| NOTE: make -j 4 CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
          -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
            -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel LD=arm-tdx-linux-gnueabi-ld.bfd   HOSTCC=gcc  HOSTCFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib
               -L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags
      -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib
      -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/yocto-project/oe-core/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  HOSTCXXFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe imx6ull-colibri-wifi-eval-v3.dtb CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
 -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel   LD=arm-tdx-linux-gnueabi-ld.bfd
| NOTE: make -j 4 CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
          -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
            -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel LD=arm-tdx-linux-gnueabi-ld.bfd   HOSTCC=gcc  HOSTCFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib
               -L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags
      -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib
      -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/yocto-project/oe-core/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  HOSTCXXFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe mi-imx6ull-colibri-wifi-eval-v3.dtb CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
    -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel   LD=arm-tdx-linux-gnueabi-ld.bfd
| make[1]: *** No rule to make target 'arch/arm/boot/dts/mi-imx6ull-colibri-wifi-eval-v3.dtb'.  Stop.
| make: *** [/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source/Makefile:1471: mi-imx6ull-colibri-wifi-eval-v3.dtb] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/yocto-project/oe-core/build/../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5459 tasks of which 5458 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 37 seconds

Summary: 1 task failed:
  /home/yocto-project/oe-core/build/../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_git.bb:do_compile
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

I resolved those erorrs making make DTC_FLAGS=β€œ-@” mi-imx6ull-colibri-wifi-eval-v3.dtb and copy and paste that .dtb file in /home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/build/arch/arm/boot/dts . But the problem persists, the image that I have, no modify the device tree.
And still I get the before WARNING

Hi @facundo.n.r ,

Can you please share with us all the changes you are executing in your layer folder?

In my understanding, you are using the .dtb compiled separately using the kernel repository and replacing it with the sources file of the Yocto to build the new image with your .dtb, is that correct?

In my concern, that is not the correct approach because you are changing the sources built directly. The best approach here is working directly with the linux-toradex recipe, where you make all the correct changes on your kernel repository, generate a patch with all those changes, and apply this patch to the linux-toradex recipe. This will make sure that every time you build the kernel it will have all your changes correctly being applied.

Please let me know if you have any doubts.

Best regards,
Daniel Morais

Hi @daniel_m.tx,

Yes, that is correct, because, when I work with just linux-toradex recipe, there are this errors:

yocto-project@server:~/oe-core/build$ bitbake tdx-reference-minimal-image
Loading cache: 100% |############################################| Time: 0:00:03
Loaded 4724 entries from dependency cache.
WARNING: No recipes in default available for:
  /home/yocto-project/oe-core/build/../layers/meta-customer/recipes-bsp/u-boot/u-boot-toradex_6.5%.bbappend
  /home/yocto-project/oe-core/build/../layers/meta-customer/recipes-kernel/linux/linux-toradex_6.5%.bbappend
  /home/yocto-project/oe-core/build/../layers/meta-toradex-nxp/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.0.imx.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-tdx-linux-gnueabi"
MACHINE              = "colibri-imx6ull"
DISTRO               = "tdx-xwayland-upstream"
DISTRO_VERSION       = "6.5.0-devel-20240105115454+build.0"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-toradex-nxp     = "HEAD:adee5ba8699ac0e0ccd2d7f3897f024c0b85bed4"
meta-freescale       = "HEAD:47e0b467d8555e38a996b731977d9eed9ab02051"
meta-freescale-3rdparty = "HEAD:9e94b64bdfebcf7bfdf2af6447cec866a4efa814"
meta-toradex-ti      = "HEAD:c4416ba464203669f7a3379b73ff87cd3b15b6f4"
meta-arm-toolchain
meta-arm             = "HEAD:b187fb9232ca0a6b5f8f90b4715958546fc41d73"
meta-ti-bsp
meta-ti-extras       = "HEAD:6ad91a192fa1ab33775a22894a413aefd0b67106"
meta-toradex-bsp-common = "HEAD:e89c5c838d971f6fc8c95842b7b93cc0fea74c14"
meta-oe
meta-filesystems
meta-gnome
meta-xfce
meta-networking
meta-multimedia
meta-python          = "HEAD:8a75c61cce2aa1d6e5a3597ab8fc5a7e6aeae1e4"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-toradex-demos   = "HEAD:6b65323381ffd8d25d040b658dac26e7e781c967"
meta-qt5             = "HEAD:ae8a97f79364bed1abc297636f7933d0e35f22be"
meta-toradex-distro  = "HEAD:8363ba48d2c3207a97974aec662b373692310b08"
meta-poky            = "HEAD:10e9c5a4c80fe4ee717b9ff63a08c58a9ac094e2"
meta                 = "HEAD:11da43b58e19583a9bc16044309610cfb2e86469"
meta-customer        = "<unknown>:<unknown>"

Initialising tasks: 100% |#######################################| Time: 0:00:08
Sstate summary: Wanted 286 Local 257 Mirrors 0 Missed 29 Current 1988 (89% match, 98% complete)
NOTE: Executing Tasks
ERROR: linux-toradex-mainline-6.1.65+gitAUTOINC+c6114c8459-r0 do_compile: oe_runmake failed
ERROR: linux-toradex-mainline-6.1.65+gitAUTOINC+c6114c8459-r0 do_compile: ExecutionError('/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/temp/run.do_compile.26682', 1, None, None)
ERROR: Logfile of failure stored in: /home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/temp/log.do_compile.26682
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: KBUILD_BUILD_TIMESTAMP: Sun Dec  3 06:32:13 UTC 2023
| NOTE: make -j 4 CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
          -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
            -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel LD=arm-tdx-linux-gnueabi-ld.bfd   HOSTCC=gcc  HOSTCFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib
               -L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags
      -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib
      -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/yocto-project/oe-core/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  HOSTCXXFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe -j 4 zImage
|   SYNC    include/config/auto.conf.cmd
|   GEN     Makefile
|   GEN     Makefile
|   CALL    /home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source/scripts/checksyscalls.sh
|   Kernel: arch/arm/boot/Image is ready
|   Kernel: arch/arm/boot/zImage is ready
| NOTE: make -j 4 CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
          -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
            -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel LD=arm-tdx-linux-gnueabi-ld.bfd   HOSTCC=gcc  HOSTCFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib
               -L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags
      -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib
      -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/yocto-project/oe-core/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  HOSTCXXFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe imx6ull-colibri-eval-v3.dtb CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel   LD=arm-tdx-linux-gnueabi-ld.bfd
|   SYNC    include/config/auto.conf.cmd
|   GEN     Makefile
| NOTE: make -j 4 CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
          -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
            -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel LD=arm-tdx-linux-gnueabi-ld.bfd   HOSTCC=gcc  HOSTCFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib
               -L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags
      -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib
      -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/yocto-project/oe-core/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  HOSTCXXFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe imx6ull-colibri-wifi-eval-v3.dtb CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
 -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel   LD=arm-tdx-linux-gnueabi-ld.bfd
| NOTE: make -j 4 CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
          -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
            -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel LD=arm-tdx-linux-gnueabi-ld.bfd   HOSTCC=gcc  HOSTCFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib
               -L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags
      -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib
      -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/yocto-project/oe-core/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  HOSTCXXFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe mi-imx6ull-colibri-wifi-eval-v3.dtb CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
    -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel   LD=arm-tdx-linux-gnueabi-ld.bfd
| make[1]: *** No rule to make target 'arch/arm/boot/dts/mi-imx6ull-colibri-wifi-eval-v3.dtb'.  Stop.
| make: *** [/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source/Makefile:1471: mi-imx6ull-colibri-wifi-eval-v3.dtb] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/yocto-project/oe-core/build/../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5459 tasks of which 5458 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 37 seconds

Summary: 1 task failed:
  /home/yocto-project/oe-core/build/../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_git.bb:do_compile
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

I want to know, if my device tree customize is correct:

/dts-v1/;

#include "imx6ull-colibri-wifi.dtsi"
#include "imx6ull-colibri-eval-v3.dtsi"

/ {
        model = "Toradex Colibri iMX6ULL 512MB on Colibri Evaluation Board V3";
        compatible = "toradex,colibri-imx6ull-wifi-eval", "fsl,imx6ull";
};

/*Creo un nodo uart3 para configurar los puertos*/

&pinctrl_gpio1{
    /delete-property/ fsl,pins;
    fsl,pins = <
        MX6UL_PAD_JTAG_TCK__GPIO1_IO14		0x70a0 /* SODIMM 99 */
        MX6UL_PAD_NAND_CE1_B__GPIO4_IO14	0x10b0 /* SODIMM 133 */
        MX6UL_PAD_UART3_CTS_B__GPIO1_IO26	0x10b0 /* SODIMM 100 */
        MX6UL_PAD_JTAG_TRST_B__GPIO1_IO15	0x70a0 /* SODIMM 102 */
        MX6UL_PAD_ENET1_RX_ER__GPIO2_IO07	0x10b0 /* SODIMM 104 */
        MX6UL_PAD_UART3_RTS_B__GPIO1_IO27	0x10b0 /* SODIMM 186 */
    >;
};

&uart3{
    pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart3>;
	uart-has-rtscts;
	fsl,dte-mode;
};

&iomuxc {
    imx6ull-colibri{
        pinctrl_uart3: uart3grp {
            fsl,pins = <
                MX6UL_PAD_UART3_TX_DATA__UART3_DCE_TX	0x1b0b1 /* SODIMM 135 */
                MX6UL_PAD_UART3_RX_DATA__UART3_DCE_RX	0x1b0b1 /* SODIMM 77 */     
            >;
        };
    };
};

Hi @facundo.n.r ,

Can you please share all changes you did in the layers when you face this issue?

Best regards,
Daniel Morais

Hi @daniel_m.tx , here I share all the files and folders.

I started from scratch.

This is my layer to customize the kernell

meta-customer
β”œβ”€β”€ conf
β”‚   β”œβ”€β”€ layer.conf
β”‚   └── machine
β”‚       └── colibri-imx6ull-extra.conf
β”œβ”€β”€ COPYING.MIT
β”œβ”€β”€ README
β”œβ”€β”€ recipes-bsp
β”‚   └── u-boot
β”‚       └── u-boot-toradex_6.5%.bbappend
β”œβ”€β”€ recipes-example
β”‚   └── example
β”‚       └── example_0.1.bb
└── recipes-kernel
    └── linux
        β”œβ”€β”€ linux-toradex
        β”‚   β”œβ”€β”€ custom-display.patch
        β”‚   β”œβ”€β”€ defconfig
        β”‚   └── mi-devicetree.dts
        └── linux-toradex_6.5%.bbappend

9 directories, 10 files

Here shared zip file of meta-customer.
meta-customer.tar (20 KB)

when I executed bitbake tdx-reference-minimal-image, I get:

Loading cache: 100% |                                           | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:01:39
Parsing of 3213 .bb files complete (0 cached, 3213 parsed). 4724 targets, 423 skipped, 0 masked, 0 errors.
WARNING: No recipes in default available for:
  /home/yocto-project/oe-core/build/../layers/meta-customer/recipes-bsp/u-boot/u-boot-toradex_6.5%.bbappend
  /home/yocto-project/oe-core/build/../layers/meta-customer/recipes-kernel/linux/linux-toradex_6.5%.bbappend
  /home/yocto-project/oe-core/build/../layers/meta-toradex-nxp/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.0.imx.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-tdx-linux-gnueabi"
MACHINE              = "colibri-imx6ull"
DISTRO               = "tdx-xwayland-upstream"
DISTRO_VERSION       = "6.5.0-devel-20240108121354+build.0"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-toradex-nxp     = "HEAD:adee5ba8699ac0e0ccd2d7f3897f024c0b85bed4"
meta-freescale       = "HEAD:47e0b467d8555e38a996b731977d9eed9ab02051"
meta-freescale-3rdparty = "HEAD:9e94b64bdfebcf7bfdf2af6447cec866a4efa814"
meta-toradex-ti      = "HEAD:c4416ba464203669f7a3379b73ff87cd3b15b6f4"
meta-arm-toolchain
meta-arm             = "HEAD:b187fb9232ca0a6b5f8f90b4715958546fc41d73"
meta-ti-bsp
meta-ti-extras       = "HEAD:5769fcfb036661a3ceaeb8f90d8a9928e3d29199"
meta-toradex-bsp-common = "HEAD:e89c5c838d971f6fc8c95842b7b93cc0fea74c14"
meta-oe
meta-filesystems
meta-gnome
meta-xfce
meta-networking
meta-multimedia
meta-python          = "HEAD:402affcc073db39f782c1ebfd718edd5f11eed4c"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-toradex-demos   = "HEAD:6b65323381ffd8d25d040b658dac26e7e781c967"
meta-qt5             = "HEAD:ae8a97f79364bed1abc297636f7933d0e35f22be"
meta-toradex-distro  = "HEAD:8363ba48d2c3207a97974aec662b373692310b08"
meta-poky            = "HEAD:77c2830ae0c3e7370f7c816796981932ba0ec99a"
meta                 = "HEAD:2afd9a6002cba2a23dd62a1805b4be04083c041b"
meta-customer        = "<unknown>:<unknown>"

Initialising tasks: 100% |#######################################| Time: 0:00:08
Sstate summary: Wanted 544 Local 515 Mirrors 0 Missed 29 Current 1730 (94% match, 98% complete)
Removing 25 stale sstate objects for arch colibri_imx6ull: 100% || Time: 0:00:01
NOTE: Executing Tasks
ERROR: linux-toradex-mainline-6.1.65+gitAUTOINC+c6114c8459-r0 do_compile: oe_runmake failed
ERROR: linux-toradex-mainline-6.1.65+gitAUTOINC+c6114c8459-r0 do_compile: ExecutionError('/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/temp/run.do_compile.6663', 1, None, None)
ERROR: Logfile of failure stored in: /home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/temp/log.do_compile.6663
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: KBUILD_BUILD_TIMESTAMP: Sun Dec  3 06:32:13 UTC 2023
| NOTE: make -j 4 CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
          -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
            -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel LD=arm-tdx-linux-gnueabi-ld.bfd   HOSTCC=gcc  HOSTCFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib
               -L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags
      -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib
      -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/yocto-project/oe-core/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  HOSTCXXFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe -j 4 zImage
|   GEN     Makefile
|   CALL    /home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source/scripts/checksyscalls.sh
|   HOSTCC  certs/extract-cert
|   CERT    certs/x509_certificate_list
|   CERT    certs/signing_key.x509
|   AS      certs/system_certificates.o
|   AR      certs/built-in.a
|   AR      built-in.a
|   AR      vmlinux.a
|   LD      vmlinux.o
|   OBJCOPY modules.builtin.modinfo
|   GEN     modules.builtin
|   GEN     .vmlinux.objs
|   MODPOST vmlinux.symvers
|   LD      .tmp_vmlinux.kallsyms1
|   NM      .tmp_vmlinux.kallsyms1.syms
|   KSYMS   .tmp_vmlinux.kallsyms1.S
|   AS      .tmp_vmlinux.kallsyms1.S
|   LD      .tmp_vmlinux.kallsyms2
|   NM      .tmp_vmlinux.kallsyms2.syms
|   KSYMS   .tmp_vmlinux.kallsyms2.S
|   AS      .tmp_vmlinux.kallsyms2.S
|   LD      vmlinux
|   NM      System.map
|   SORTTAB vmlinux
|   OBJCOPY arch/arm/boot/Image
|   Kernel: arch/arm/boot/Image is ready
|   LZ4     arch/arm/boot/compressed/piggy_data
|   AS      arch/arm/boot/compressed/piggy.o
|   LD      arch/arm/boot/compressed/vmlinux
|   OBJCOPY arch/arm/boot/zImage
|   Kernel: arch/arm/boot/zImage is ready
| NOTE: make -j 4 CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
          -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
            -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel LD=arm-tdx-linux-gnueabi-ld.bfd   HOSTCC=gcc  HOSTCFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib
               -L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags
      -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib
      -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/yocto-project/oe-core/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  HOSTCXXFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe imx6ull-colibri-eval-v3.dtb CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel   LD=arm-tdx-linux-gnueabi-ld.bfd
|   SYNC    include/config/auto.conf.cmd
|   GEN     Makefile
| NOTE: make -j 4 CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
          -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
            -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel LD=arm-tdx-linux-gnueabi-ld.bfd   HOSTCC=gcc  HOSTCFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib
               -L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags
      -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib
      -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/yocto-project/oe-core/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  HOSTCXXFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe imx6ull-colibri-wifi-eval-v3.dtb CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
 -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel   LD=arm-tdx-linux-gnueabi-ld.bfd
| NOTE: make -j 4 CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
          -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0
            -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel LD=arm-tdx-linux-gnueabi-ld.bfd   HOSTCC=gcc  HOSTCFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib
               -L/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags
      -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib
      -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/yocto-project/oe-core/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  HOSTCXXFLAGS=-isystem/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native/usr/include -O2 -pipe mi-devicetree.dtb CC=arm-tdx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0=/usr/src/debug/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-build-artifacts=/usr/src/kernel   LD=arm-tdx-linux-gnueabi-ld.bfd
| make[1]: *** No rule to make target 'arch/arm/boot/dts/mi-devicetree.dtb'.  Stop.
| make: *** [/home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source/Makefile:1471: mi-devicetree.dtb] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/yocto-project/oe-core/build/../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5459 tasks of which 5456 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 18 seconds

Summary: 1 task failed:
  /home/yocto-project/oe-core/build/../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_git.bb:do_compile
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

Hi @facundo.n.r ,

Thanks a lot for sharing your layer.

I will do some tests on my side and come back to you as soon as possible.

Best regards,
Daniel Morais

1 Like

Hi @daniel_m.tx , Were you able to compiler the image?

Hi @facundo.n.r ,

I did some tests with your layer and there are some files with wrong names.

About the U-boot files, the recipe you named is u-boot-toradex_6.5%.bbappend, this means that the expected package version is 6.5*, which does not match any U-Boot recipe, to know what the version of the bootloader you are building I recommend executing the following:

yocto@6c3f8ca131ea:/workdir/bsp6/build$ bitbake u-boot-toradex -e | grep ^PV=
PV="2022.07"

Having this said, to build U-Boot correctly I renamed the .bbappend from u-boot-toradex_6.5%.bbappend to u-boot-toradex_%.bbappend.

The same issue mentioned above also happens with your kernel .bbappend, in this case, the name you used was linux-toradex_6.5%.bbappend, checking the PN and PV we get the following:

yocto@6c3f8ca131ea:/workdir/bsp6/build$ bitbake virtual/kernel -e | grep ^PN=
PN="linux-toradex-mainline"
yocto@6c3f8ca131ea:/workdir/bsp6/build$ bitbake virtual/kernel -e | grep ^PV=
PV="6.1.71+gitAUTOINC+38fb82ecd1"

Having this said, to build Kernel correctly I renamed the .bbappend from linux-toradex_6.5%.bbappend to linux-toradex-mainline_%.bbappend.

On the Kernel recipe, I also had an issue when applying your patch, so I removed it from SRC_URI, I recommend you check if you generated the patch into the correct kernel branch.

After building the image I was able to see your device tree binary generated correctly:

daniel (Colibri-iMX6ULL_Reference-Minimal-Image-upstream-Tezi_6.5.0-devel-20240109142040+build.0) $ ls | grep .dtb
imx6ull-colibri-aster.dtb
imx6ull-colibri-eval-v3.dtb
imx6ull-colibri-iris.dtb
imx6ull-colibri-iris-v2.dtb
imx6ull-colibri-wifi-aster.dtb
imx6ull-colibri-wifi-eval-v3.dtb
imx6ull-colibri-wifi-iris.dtb
imx6ull-colibri-wifi-iris-v2.dtb
mi-devicetree.dtb

Can you please do some tests with the information mentioned here and tell me if it works for you?

Please let me know if you have any issues.

Best regards,
Daniel Morais

@daniel_m.tx , thank you for your time. I can compile the image with your explanation, but when I install it in my module, don’t run it.

I add the custom-display.patch again, I think this may be it. But when I run bitbake, I get this error:

yocto-project@server:~/oe-core/build$ bitbake tdx-reference-minimal-image
Loading cache: 100% |############################################| Time: 0:00:02
Loaded 4724 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:01
Parsing of 3213 .bb files complete (3212 cached, 1 parsed). 4724 targets, 423 skipped, 0 masked, 0 errors.
WARNING: No recipes in default available for:
  /home/yocto-project/oe-core/build/../layers/meta-toradex-nxp/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.0.imx.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-tdx-linux-gnueabi"
MACHINE              = "colibri-imx6ull"
DISTRO               = "tdx-xwayland-upstream"
DISTRO_VERSION       = "6.5.0-devel-20240109151150+build.0"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-customer        = "<unknown>:<unknown>"
meta-toradex-nxp     = "HEAD:adee5ba8699ac0e0ccd2d7f3897f024c0b85bed4"
meta-freescale       = "HEAD:47e0b467d8555e38a996b731977d9eed9ab02051"
meta-freescale-3rdparty = "HEAD:9e94b64bdfebcf7bfdf2af6447cec866a4efa814"
meta-toradex-ti      = "HEAD:c4416ba464203669f7a3379b73ff87cd3b15b6f4"
meta-arm-toolchain
meta-arm             = "HEAD:b187fb9232ca0a6b5f8f90b4715958546fc41d73"
meta-ti-bsp
meta-ti-extras       = "HEAD:5769fcfb036661a3ceaeb8f90d8a9928e3d29199"
meta-toradex-bsp-common = "HEAD:e89c5c838d971f6fc8c95842b7b93cc0fea74c14"
meta-oe
meta-filesystems
meta-gnome
meta-xfce
meta-networking
meta-multimedia
meta-python          = "HEAD:402affcc073db39f782c1ebfd718edd5f11eed4c"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-toradex-demos   = "HEAD:6b65323381ffd8d25d040b658dac26e7e781c967"
meta-qt5             = "HEAD:ae8a97f79364bed1abc297636f7933d0e35f22be"
meta-toradex-distro  = "HEAD:8363ba48d2c3207a97974aec662b373692310b08"
meta-poky            = "HEAD:77c2830ae0c3e7370f7c816796981932ba0ec99a"
meta                 = "HEAD:2afd9a6002cba2a23dd62a1805b4be04083c041b"

Initialising tasks: 100% |#######################################| Time: 0:00:08
Sstate summary: Wanted 295 Local 258 Mirrors 0 Missed 37 Current 1979 (87% match, 98% complete)
Removing 32 stale sstate objects for arch colibri_imx6ull: 100% || Time: 0:00:01
NOTE: Executing Tasks
ERROR: linux-toradex-mainline-6.1.65+gitAUTOINC+c6114c8459-r0 do_patch: Could not apply patches for colibri-imx6ull.
ERROR: linux-toradex-mainline-6.1.65+gitAUTOINC+c6114c8459-r0 do_patch: Patch failures can be resolved in the linux source directory /home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source)
ERROR: linux-toradex-mainline-6.1.65+gitAUTOINC+c6114c8459-r0 do_patch: ExecutionError('/home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/temp/run.do_patch.68263', 1, None, None)
ERROR: Logfile of failure stored in: /home/yocto-project/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.65+gitAUTOINC+c6114c8459-r0/temp/log.do_patch.68263
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/yocto-project/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', '/home/yocto-project/oe-core/build/../layers/openembedded-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', 'virtual:native:/home/yocto-project/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['quilt-native', 'kern-tools-native', 'patch-native', 'attr-native', 'libtool-native', 'gettext-minimal-native', 'texinfo-dummy-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_patch
| (1/26) custom-display.patch
| [INFO]: check of .kernel-meta//patches//./custom-display.patch with "git am" did not pass, trying reduced context.
| [INFO]: Context reduced git-am of .kernel-meta//patches//./custom-display.patch with "git am" did not work, trying "apply".
| Context reduced to (1/1) to apply fragment at 3930
| error: patch failed: drivers/gpu/drm/panel/panel-simple.c:2271
| error: drivers/gpu/drm/panel/panel-simple.c: patch does not apply
| [ERROR]: Application of .kernel-meta//patches//./custom-display.patch failed.
|          Patch needs to be refreshed. Sample resolution script:
|              .git/rebase-apply/resolve_rejects
| ERROR: Could not apply patches for colibri-imx6ull.
| ERROR: Patch failures can be resolved in the linux source directory /home/yocto-project/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source)
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/yocto-project/oe-core/build/../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_git.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5443 tasks of which 5426 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 20 seconds

Summary: 1 task failed:
  /home/yocto-project/oe-core/build/../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_git.bb:do_patch
Summary: There was 1 WARNING message.
Summary: There were 3 ERROR messages, returning a non-zero exit code.

The custom-display.patch file, contain:

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index e817a71062dbb..2d9f1ca8a04bb 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2053,6 +2053,31 @@ static const struct panel_desc winstar_wf35ltiacd = {
    .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
 };
 
+static const struct drm_display_mode custom_display_mode = {
+   .clock = 6410,
+   .hdisplay = 320,
+   .hsync_start = 320 + 20,
+   .hsync_end = 320 + 20 + 30,
+   .htotal = 320 + 20 + 30 + 38,
+   .vdisplay = 240,
+   .vsync_start = 240 + 4,
+   .vsync_end = 240 + 4 + 3,
+   .vtotal = 240 + 4 + 3 + 15,
+   .vscan = 60,
+   .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc custom_display = {
+   .modes = &custom_display_mode,
+   .num_modes = 1,
+   .bpc = 8,
+   .size = {
+       .width = 80,
+       .height = 63,
+   },
+   .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+};
+
 static const struct of_device_id platform_of_match[] = {
    {
        .compatible = "ampire,am-480272h3tmqw-t01h",
@@ -2271,6 +2296,9 @@ static const struct of_device_id platform_of_match[] = {
        .compatible = "winstar,wf35ltiacd",
        .data = &winstar_wf35ltiacd,
    }, {
+       .compatible = "custom,display",
+       .data = &custom_display,
+   }, {
        /* sentinel */
    }
 };

I copy it of the link Custom meta layers, recipes and images in Yocto Project (hello-world examples) | Toradex Developer Center

Also,

Blockquote
After building the image I was able to see your device tree binary generated correctly:

I get this:

yocto-project@server:~/oe-core/build$ ls deploy/images/colibri-imx6ull | grep .d
tb
imx6ull-colibri-aster--6.1.65+git0+c6114c8459-r0-colibri-imx6ull-20240109144533.dtb
imx6ull-colibri-aster-colibri-imx6ull.dtb
imx6ull-colibri-aster.dtb
imx6ull-colibri-eval-v3--6.1.65+git0+c6114c8459-r0-colibri-imx6ull-20240109144533.dtb
imx6ull-colibri-eval-v3-colibri-imx6ull.dtb
imx6ull-colibri-eval-v3.dtb
imx6ull-colibri-iris--6.1.65+git0+c6114c8459-r0-colibri-imx6ull-20240109144533.dtb
imx6ull-colibri-iris-colibri-imx6ull.dtb
imx6ull-colibri-iris.dtb
imx6ull-colibri-iris-v2--6.1.65+git0+c6114c8459-r0-colibri-imx6ull-20240109144533.dtb
imx6ull-colibri-iris-v2-colibri-imx6ull.dtb
imx6ull-colibri-iris-v2.dtb
imx6ull-colibri-wifi-aster--6.1.65+git0+c6114c8459-r0-colibri-imx6ull-20240109144533.dtb
imx6ull-colibri-wifi-aster-colibri-imx6ull.dtb
imx6ull-colibri-wifi-aster.dtb
imx6ull-colibri-wifi-eval-v3--6.1.65+git0+c6114c8459-r0-colibri-imx6ull-20240109144533.dtb
imx6ull-colibri-wifi-eval-v3-colibri-imx6ull.dtb
imx6ull-colibri-wifi-eval-v3.dtb
imx6ull-colibri-wifi-iris--6.1.65+git0+c6114c8459-r0-colibri-imx6ull-20240109144533.dtb
imx6ull-colibri-wifi-iris-colibri-imx6ull.dtb
imx6ull-colibri-wifi-iris.dtb
imx6ull-colibri-wifi-iris-v2--6.1.65+git0+c6114c8459-r0-colibri-imx6ull-20240109144533.dtb
imx6ull-colibri-wifi-iris-v2-colibri-imx6ull.dtb
imx6ull-colibri-wifi-iris-v2.dtb
mi-devicetree--6.1.65+git0+c6114c8459-r0-colibri-imx6ull-20240109144533.dtb
mi-devicetree-colibri-imx6ull.dtb
mi-devicetree.dtb

Hi @facundo.n.r ,

Yes, as mentioned before it seems that your patch isn’t working, it is recommended that you generate the patch on the same version of the kernel you are building. Can you please check if you did this?

Also, I checked, and your patch adds new display timings, you can also achieve the same by working with device tree overlays, for more information please check this article.

Best regards,
Daniel Morais

How can I generate the patch in this version? Where can I copy it?

My module working with NAND, and does not accept device tree overlays. For this a reason, I tried customized the devicetree with a recipe.

First try customizing the device tree, using this
Build Linux Kernel from Source Code | Toradex Developer Center .

But I get the same result as now. I can compile everything, but when I install the final image in my module, it doesn’t run. It doesn’t show me anything on the monitor.

Is this code correct?

/dts-v1/;
#include "imx6ull-colibri-wifi-eval-v3.dtsi"

/ {
        model = "Toradex Colibri iMX6ULL 512MB on Colibri Evaluation Board V3";
        compatible = "toradex,colibri-imx6ull-wifi-eval", "fsl,imx6ull";
};

/*Creo un nodo uart3 para configurar los puertos*/

&pinctrl_gpio1{
    /delete-property/ fsl,pins;
    fsl,pins = <
        MX6UL_PAD_JTAG_TCK__GPIO1_IO14		0x70a0 /* SODIMM 99 */
        MX6UL_PAD_NAND_CE1_B__GPIO4_IO14	0x10b0 /* SODIMM 133 */
        MX6UL_PAD_UART3_CTS_B__GPIO1_IO26	0x10b0 /* SODIMM 100 */
        MX6UL_PAD_JTAG_TRST_B__GPIO1_IO15	0x70a0 /* SODIMM 102 */
        MX6UL_PAD_ENET1_RX_ER__GPIO2_IO07	0x10b0 /* SODIMM 104 */
        MX6UL_PAD_UART3_RTS_B__GPIO1_IO27	0x10b0 /* SODIMM 186 */
    >;
};

&uart3{
    pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart3>;
	uart-has-rtscts;
	fsl,dte-mode;
};

&iomuxc {
    imx6ull-colibri{
        pinctrl_uart3: uart3grp {
            fsl,pins = <
                MX6UL_PAD_UART3_TX_DATA__UART3_DCE_TX	0x1b0b1 /* SODIMM 135 */
                MX6UL_PAD_UART3_RX_DATA__UART3_DCE_RX	0x1b0b1 /* SODIMM 77 */     
            >;
        };
    };
};

Hi @facundo.n.r ,

Sorry, I forgot which was your module.

You can find in the layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_git.bb recipe the kernel repository and the branch used, the best approach is cloning this repository and generating the patch there.

Your dtb might be causing this issue, can you please test other .dtb available in your image and check if the module boots correctly?

Best regards,
Daniel Morais

Hi @daniel_m.tx , is it necesary use a path? Because, I cant find one to reeplace custom-display.
If I compiler without the recipe, the module boots correcltly.
I share with you my layer for customized the kernel:
meta-customer.tar (30 KB)

Also, I belive than need a defconfig file of same version than Im using