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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

3,205 Views
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?

0 Kudos
Reply
3 Replies

3,185 Views
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,147 Views
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 Kudos
Reply

3,174 Views
Tom2023
Contributor II

Thank you so much. I will try it.

0 Kudos
Reply