Been working with im8mn EVK and now trying to setup the yocto build for my custom board that has IMX8MN, but different LPDDR4.
I created a new layer. It has a machine/.conf; custom file for my board. I added a patch file to modify the lpddr4_timing.c that is for the IMX8MN EVK. This works, but it seems less than satisfying way to do this. In particular, I can no longer build for the EVK since my new build config is usual the EVK config with minimal changes to support by hardware.
Also, the build still uses a DTB named im8mn_evk.
How do I fully customize the board config? The info seems to be spread over several files and directories. What are the files I need to modify or replace?
Drilling in, I think I need to copy the following files, add them to my layer and modify for my board. Yes?
sources/meta-freescale/conf/machine/imx8mm-lpddr4-evk.conf
sources/meta-freescale/conf/machine/include/imx8mn-evk.inc
But what to change in these files?
I changed both KERNEL_DEVICETREE_BASENAME and UBOOT_CONFIG_BASENAME since they both had values like imx8mn_evk. But, then the build fails saying it can't find a _defconfig named by my change to these variables. That brings me to:
(build)/tmp/work/compton-poky-linux/u-boot-imx/2024.04/git/configs/imx8mn_evk_defconfig
Which seems to be the defconfig the build uses for the EVK. That under tmp; not sources. How do I affect this file for my board/build/customization?