iMX8 Yocto U-Boot Configurations - Select Boot Device

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

iMX8 Yocto U-Boot Configurations - Select Boot Device

5,018 次查看
prashanthkumar
Contributor II

In 4.14.98 BSP, I have multiple u-boot configurations for a custom iMX8QM device. I am trying to build two different versions of u-boot.bin based on different boot devices, an "sd" and "fspi" device. Is there any way to differentiate the two u-boot.bin files. Each configuration produces the same u-boot.bin binaries. In the manufacturing tool file directory, the Freescale devices have different u-boot file names according to the boot device. Is this something done automatically or do I create these files using the u-boot file created?

In sources/meta-fsl-bsp-release/imx/meta-bsp/conf/machine/imx8qmmek.conf machine file, I have the following options:

UBOOT_CONFIG ??= "sd"
UBOOT_CONFIG_SD = \
    "${@bb.utils.contains('MACHINE', 'imx8qm_iwg27m', 'imx8qm_mek_4gb_defconfig', \
                                                        'imx8qm_mek_8gb_defconfig', d)}"
UBOOT_CONFIG_FSPI = \
    "${@bb.utils.contains('COMBINED_FEATURES', 'optee', 'imx8qm_mek_spl_fspi_defconfig', \
                                                        'imx8qm_mek_fspi_defconfig', d)}"
UBOOT_CONFIG[sd]   = "${UBOOT_CONFIG_SD},sdcard"
UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_FSPI}"


The following selections tried but did not build because of an error stating only one configuration is allowed.

UBOOT_CONFIG ??= "fspi sd"
or
UBOOT_CONFIG ??= "sd fspi"

How do I get the builds to produce different output files for "sd" and "fspi" in same compilation???

Best Regards,

Prashanth Kumar K

0 项奖励
回复
3 回复数

4,365 次查看
prashanthkumar
Contributor II

Hi Igor,

Section "4.5.12 How to build U-Boot and Kernel in standalone environment" is telling standalone compilation.

But I need full compilation during Yocto build.

Can you please help me to compile in yocto build itself like adding below.

UBOOT_CONFIG ??= "sd fspi"

Best Regards,

Prashanth Kumar K

0 项奖励
回复

4,365 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Prashanth

suggested documentation is given for currently supported features.

If this is not sufficient, one can get additional support with Commercial Support and Engineering Services | NXP 

Please note that this part is not officially released yet and has not full support.

Best regards
igor

0 项奖励
回复

4,365 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Prashanth

for building uboot with different defconfigs one can look at sect.4.5.12 How to build U-Boot

Linux Guide included in Linux L4.14.98_2.0.0 Documentation .

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复