Yocto disable building of u-boot

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

Yocto disable building of u-boot

跳至解决方案
5,641 次查看
bjørnarsyversta
Contributor II

How can I disable building of u-boot in Yocto?

标签 (1)
标记 (2)
1 解答
3,287 次查看
daiane_angolini
NXP Employee
NXP Employee

meta-fsl-arm configuration set u-boot as the default configuration.

You can change some variables in order to avoid the u-boot build, or (better) build the other bootloader you need.

please, take a look on the following 2 files/lines

meta-fsl-arm - Layer containing Freescale ARM hardware support metadata (line 93)

meta-fsl-arm - Layer containing Freescale ARM hardware support metadata (line 3)

It will prevent you to have u-boot built. In case you´re creating your own meta layer, you can override the value of those variable in your configurations. But, be aware that the sdcard class (the one which creates the image *.sdcard) fail if you don´t provide any bootloader image (it will be a do_rootfs error, something like *file not found* for the bootloader file)

try and let me know the results.

在原帖中查看解决方案

4 回复数
3,287 次查看
csoapy
Contributor III

Just add IMAGE_BOOTLOADER = "" to your local.conf

0 项奖励
回复
3,287 次查看
LeonardoSandova
Specialist I

BTW, Any reason to avoid building u-boot with Yocto?

0 项奖励
回复
3,286 次查看
bjørnarsyversta
Contributor II

It seems for me that SMARC-sAMX6i from Kontron only delivers precompiled u-boot.

I have not seen into u-boot source from community, so could be that it is there....

0 项奖励
回复
3,288 次查看
daiane_angolini
NXP Employee
NXP Employee

meta-fsl-arm configuration set u-boot as the default configuration.

You can change some variables in order to avoid the u-boot build, or (better) build the other bootloader you need.

please, take a look on the following 2 files/lines

meta-fsl-arm - Layer containing Freescale ARM hardware support metadata (line 93)

meta-fsl-arm - Layer containing Freescale ARM hardware support metadata (line 3)

It will prevent you to have u-boot built. In case you´re creating your own meta layer, you can override the value of those variable in your configurations. But, be aware that the sdcard class (the one which creates the image *.sdcard) fail if you don´t provide any bootloader image (it will be a do_rootfs error, something like *file not found* for the bootloader file)

try and let me know the results.