Modify u-boot in Yocto

cancel
Showing results for 
Search instead for 
Did you mean: 

Modify u-boot in Yocto

32,753 Views
AlbertT
Contributor V

Hello,

I am starting to use Yocto but I have a lots of difficulties to understand how it works. Let's say I just want to modify u-boot, how should I proceed ?

I am following the Tasks which are published on this forum. I have found sources of u-boot extracted in build/tmp/work/imx6qsabresd-poky-linux-gnueabi and modified this files but when I recompile nothing happens.

Thanks !

Labels (2)
Tags (2)
10 Replies

2,022 Views
marianodo
Contributor I

Hi all. I'm Mariano Dominguez, Sorry that i'm re-open this question but i have the same problem and i  don't know how to resolve it. I'm using Yocto 1.4 for I.MX 53. I'm compiling with bitbake. I want to make a change into u-boot-dey but then i can't re-compile. I put "bitbake u-boot-dey" but nothing happends, then i tried with "bitbake -f u-boot-dey", but still not working and finally i tried with "bitbake -c clean u-boot-dey" and then "bitbake u-boot-dey", this worked but when i put the flag "-c clean" all my changes was delete and then when compile, it genereted the new image but without my changes. How can i re-compile?

Thanks

Mariano

0 Kudos

2,022 Views
OtavioSalvador
Senior Contributor II

When I hack U-Boot I never do it inside Yocto build system but I use a toolchain (which is build using Yocto) for it.

For toolchain build:

$: bitbake meta-toolchain

Using this you can build U-Boot byhand.

Once you did the need changes, considering you're making a product, you would do:

* make a company/product layer

* add a board file which is based on your development platform

* add a bbappend to apply the need patch for it

I hope it is helpful.

2,022 Views
AlbertT
Contributor V

Yep totally ! I usually compile by myself, but I wanted to see the possibilities of Yocto. Thanks !

0 Kudos

2,022 Views
eladyosef
Contributor I

Hi all, sorry for re-asking this question but I'm trying to automate the my build using Yocto and also have the ability to replace SDK versions easily.

I have u-boot.patch file and bbappend that adds the patch to SRC_URI.

the bbappend file is located under my_layer/recipes/recipes-kernel/u-boot/

but for some reason bitbake -f u-boot does not take my changes.

I also tested my bbappend by over-writting the "do_listtasks" to echo to console.

when I place the bbappend in the same folder with the u-boot.bb it works

Can anyone assist?

Thanks

Elad

0 Kudos

2,022 Views
OtavioSalvador
Senior Contributor II

It all depends on the u-boot recipe you are going to use.

In meta-fsl-arm we have:

  • u-boot-imx
  • u-boot-fslc

OE-Core/Poky has:

  • u-boot

I think you intend to bbappend u-boot-fslc.

0 Kudos

2,022 Views
LeonardoSandova
Specialist I

2,022 Views
saikumarmails
Contributor II

The link is broken, can you share a working one? Thanks.

2,022 Views
AlbertT
Contributor V

Thanks Leo ! I tried this procedure with the command bitbake -c u-boot but it didn't worked. Since there are multiple directories u-boot I am not sure I am modifying the good one.

0 Kudos

2,022 Views
LeonardoSandova
Specialist I

Well, in that case do a –c clean, then –c compile, then compare timestamps on all u-boot folders. Do you work on the folder with latest timestamps.

Leo

0 Kudos

2,022 Views
AlbertT
Contributor V

Ok thanks I will try this one. !

0 Kudos