Is it possible to create only a U-Boot in Yocto?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Is it possible to create only a U-Boot in Yocto?

3,233件の閲覧回数
Tom2023
Contributor II

Is there a way to just build U-Boot and a boot container (flash.bin) in Yocto rather than building a full Linux distribution which takes quite a long time? What is the fastest way to create a flash.bin?

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

3,213件の閲覧回数
BillStrahm
Contributor III

Yes there is,

The joy of yocto is you can build anything that the final image depends on by itself.  (and of course the dependency of that thing)

I believe what you need is actually:

bitbake u-boot-imx

There may be an additional bitbake you need to get the flash image depending on where it boots from 

that may only build the uboot and you will need to find the build for the correct flash.bin image (well called something.bin) in the yocto guilde here

i.MX Yocto Project User's Guide (nxp.com)

3,175件の閲覧回数
Tom2023
Contributor II

It works. This command does the trick:

bitbake imx-boot

It produces not only U-Boot, but also the complete boot container. And instead of 14GB, I only need 2GB of tar files in the downloads directory in order to generate flash.bin. That's wonderful. Thanks again!

 

0 件の賞賛
返信

3,202件の閲覧回数
Tom2023
Contributor II

Thank you so much. I will try it.

0 件の賞賛
返信