Use case 2: same SOM as one supported by Welma, but different carrier board¶
In this page, we show how to adapt Welma and use a custom kernel device tree overlay. Feel free to refer to meta-demo-onboarding to get the details of the files being modified.
-
Copy Welma's machine conf to our layer: meta-demo-onboarding/conf/machine/sm2s-imx93-custom.conf
-
Adjust KERNEL_DEVICETREE to build our own device tree overlay (specific to our carrier board):
-
Add this device tree overlay in recipes-kernel/linux/linux-imx_%.bbappend:
This device tree overlay overlay-custom.dts is added to the source
code of the kernel through a patch.
-
Modify U-Boot to select this overlay at startup: recipes-bsp/u-boot/u-boot-imx/distro-bootcmd.env:
-
Modify the local.conf template: conf/templates/default/local.conf.sample:
-
Build:
-
Flash & run: