Verdin IMx8mp upstream 6.12bb

Hi Everyone, Im trying to build to Refrence image with yocto Project for upstream kernel v6.12.y on Verdin iMX8MP with Yocto Linux BSP Version 7. When I execute this Command for Building the image for yocto bitbake tdx-reference-minimal-image.Its building Downstream Image.
What Changes should be done in local.conf or bblayer.conf or Any other file, such that I can build upstream kernel v6.12.y as mentioned in this path https://git.toradex.com/cgit/meta-toradex-bsp-common.git/tree/recipes-kernel/linux/linux-toradex-upstream_6.12.bb

Thanks

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

The Verdin iMX8M Plus in BSP 7.0.0 utilizes a downstream Toradex kernel version 6.6.23, which is based on the NXP BSP. Unfortunately, the kernel version 6.12.y you are interested in is not documented in the available resources.

To build a reference image with the supported kernel version, please follow these steps:

  1. Set up your environment by sourcing the export file:

    $ . export
    

    You can find more details in the Toradex documentation.

  2. Configure your build by editing build/conf/local.conf and setting the machine type:

    MACHINE ?= "verdin-imx8mp"
    
  3. Accept the NXP EULA for NXP-based System on Modules (SoMs) by adding the following line:

    ACCEPT_FSL_EULA = "1"
    

Since you are considering using a different kernel version than what is officially supported in BSP 7.0.0, specific instructions for such modifications are not covered in the provided documentation. However, you might find useful insights by exploring the Toradex Community or visiting Toradex GitHub.

If you would like guidance on building with the officially supported kernel version, please let me know.

Best regards,
Toradex AI Assistant.

Hi Can Please Elaborate on how to bring upstream 6.12 version.

Hi @ssg!

The upstream image for Verdin iMX8MP uses kernel 6.12, as you can see here. To use it, your meta-toradex-nxp layer needs to be in scarthgap-7.x.y branch. After you have set the right branch, set the machine in your local.conf, and then you can build the image by running:

DISTRO=tdx-xwayland-upstream bitbake tdx-reference-minimal-image

If you just want the image, you can download it directly from our artifacts.

Although, if you want to test it, you can install using Toradex Easy Installer. For that, select the image called Toradex Embedded Linux Reference Minimal Image (UPSTREAM).

Best regards.
Lucas Azeituno

For Adding wifi driver to kernel should we use this command
bitbake -c menuconfig virtual/kernel for verdin imx8mp or is there any other command, because when I do this im getting error like this.
tmux split-window -c “{cwd}” “do_terminal”
tmux new-window -c “{cwd}” -n “linux-toradex-upstream Configuration” “do_terminal”

Hi @ssg!

The command bitbake -c menuconfig virtual/kernel is right. I tested it, and I could open menuconfig.

Could you send the full error? Per what you sent, it seems to be an issue in tmux and not in Yocto or the bitbake command.

Best regards.
Lucas Azeituno

Hi this is the error I get when I try with enter menuconfig and unable to enter into menuconfig
ERROR: linux-toradex-upstream-6.12-r0 do_menuconfig: No valid terminal found, unable to open devshell.
Tried the following commands:
tmux split-window -c “{cwd}” “do_terminal”
tmux new-window -c “{cwd}” -n “linux-toradex-upstream Configuration” “do_terminal”
xfce4-terminal -T “linux-toradex-upstream Configuration” -e “do_terminal”
terminology -T=“linux-toradex-upstream Configuration” -e do_terminal
mate-terminal --disable-factory -t “linux-toradex-upstream Configuration” -x do_terminal
konsole --separate --workdir . -p tabtitle=“linux-toradex-upstream Configuration” -e do_terminal
gnome-terminal -t “linux-toradex-upstream Configuration” – do_terminal
xterm -T “linux-toradex-upstream Configuration” -e do_terminal
urxvt -T “linux-toradex-upstream Configuration” -e do_terminal
rxvt -T “linux-toradex-upstream Configuration” -e do_terminal
tmux new -c “{cwd}” -d -s devshell -n devshell “do_terminal”
screen -D -m -t “linux-toradex-upstream Configuration” -S devshell do_terminal
ERROR: Logfile of failure stored in: /path-to-direct/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/linux-toradex-upstream/6.12/temp/log.do_menuconfig.383
ERROR: Task (/path-to-direct/oe-core/build/…/layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_6.12.bb:do_menuconfig) failed with exit code ‘1’

Hi @ssg!

Do you have tmux installed? If not, please try to install it and rerun the command.

In my setup, I use this container to run the Yocto bitbake command, and I have tmux installed.

Best regards.
Lucas Azeituno