[meta-freescale] Use barebox instead of u-boot

Otavio Salvador otavio at ossystems.com.br
Wed Jan 9 01:33:12 PST 2013


On Tue, Jan 8, 2013 at 11:22 PM, Jeff Horn <jeff at everlook.net> wrote:
> I've been tasked to test yocto to build our BSP.  We have a custom board
> based on the i.MX53.  I was able to follow the instructions and did manage
> to generate an image for the i.MX53 QSB.  That was nice!  Now I'm lost in
> layer land trying to figure out how yocto determines what packages are built
> when I type bitbake fsl-image-gui.

I advice you to read the Yocto documentation; it is a rich
documentation and it will avoid a lot of common mistakes from your
side.

Please go to https://www.yoctoproject.org/documentation/current and
check the available docs.

> We are currently using barebox so I would like to use barebox instead of
> u-boot for the bootloader.  I tried adding my own layer and then added a
> machine configuration but I am lost at what to do next.
>
> How can I change the imx53qsb build to use barebox?  Maybe that will help.
> Also, am I on the right track to add my own layer so I can add additional
> patches to barebox and the kernel.

To change the bootloader, in the machine you need to set the
IMAGE_BOOTLOADER variable so the sdcard will use barebox instead of
u-boot:

Your machine.conf ought to have:

IMAGE_BOOTLOADER = "barebox"

> I only need to patch barebox and the kernel to boot my board.  I could just
> hack the imx53qsb build but I want to learn how to do this the yocto way.

Yes; the right way to do it is to use a custom layer. If this is a
public board you can add it to meta-fsl-arm-extra and send the patches
for us to integrate them otherwise use an internal layer for your
custom boards.

Regards,

--
Otavio Salvador                             O.S. Systems
E-mail: otavio at ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



More information about the meta-freescale mailing list