Hello!
I'm following i.MX Porting Guide (30 sept 2021), in the chapter "3 Porting U-Boot" -> "3.1.2 How to build and load U-Boot in Yocto Project", step 5 says:
"5. Edit the machine configuration file with UBOOT_CONFIG options."
What modifcations do I have to make here exactly?
I use XM8XL, so starting from machine imx8dxl-lpddr4-evk.conf I copy that file to my custom layer as imx8dxl-custom.conf.
The content of this file is:
require conf/machine/include/imx8dxl-evk.inc
KERNEL_DEVICETREE_BASENAME = "imx8dxl-evk"
KERNEL_DEVICETREE:append:use-nxp-bsp = " \
freescale/${KERNEL_DEVICETREE_BASENAME}-enet0.dtb \
freescale/${KERNEL_DEVICETREE_BASENAME}-enet0-tja1100.dtb \
freescale/${KERNEL_DEVICETREE_BASENAME}-inmate.dtb \
freescale/${KERNEL_DEVICETREE_BASENAME}-lcdif.dtb \
freescale/${KERNEL_DEVICETREE_BASENAME}-lpspi-slave.dtb \
freescale/${KERNEL_DEVICETREE_BASENAME}-pcie-ep.dtb \
freescale/${KERNEL_DEVICETREE_BASENAME}-root.dtb \
"
UBOOT_CONFIG_BASENAME = "imx8dxl_evk"
UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_fspi_defconfig"
If I want to boot from mfgtool or eMMC should I add this?
UBOOT_CONFIG_BASENAME = "imx8dxl_evk"
UBOOT_CONFIG ??= "mfgtool"
UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_fspi_defconfig"
UBOOT_CONFIG[mfgtool] = "${UBOOT_CONFIG_BASENAME}_defconfig"
UBOOT_CONFIG[emmc] = "${UBOOT_CONFIG_BASENAME}_emmc_config,sdcard"
Thanks!
you can refer to the link as below:
“https://community.nxp.com/t5/i-MX-Processors/How-to-configure-u-boot-for-emmc/m-p/1208739#”
but I still suggest that you can refer to the chapter 4.5.13 How to build imx-boot image by using imx-mkimage of linux user guide, this tools is easy to build customized uboot