Reputation: 928
I'm using Yocto to build an embedded environment. I want to change the actual recipe of generation of bootloader. Exist a graphical tool to edit the u-boot recipe? Or how can I change the packages available in u-boot image?
Upvotes: 3
Views: 8559
Reputation: 2596
While this is old, there's probably someone looking for this answer (Along with the ability to do other menuconfig configurations in Yocto transparently...) as it is a common refrain. Got this lovely config-frag system for Yocto to frame in subsets of configuration for a Menuconfig build system and NO tooling to easily MAKE these things.
Well, look no further than some of the .bbclass-es from PHA-Linux. There's a means unto which you can have Yocto generate .cfg configuration fragments for Yocto's build processes fairly transparently.
First, you either need to be using meta-pha (My distro's metadata layer) or crib pieces from it.
You'll want the following FROM this:
pha-menuconfig.bbclass process_frag.awk
These two will empower you, via a .bbappend to do this very thing.
All you need to do to activate the menuconfig frag generator tool is inherit pha-menuconfig (Or whatever you call it...) in the beginnings of your .bbappend or .bb file and add the following minimum definition in your file just before the inherit:
LOCAL_FILES_PATH := "${THISDIR}/${PN}"
The inherit will prepend the value assigned to ${LOCAL_FILES_PATH} to FILESEXTRAPATHS properly and then stage it up for the generator to do it's right things. (It was designed this way to force it to the recipe you're extending this to since there's no good way to sanely drop the configuration fragment into otherwise...) From there, just call, "-c menuconfig" on the recipes you've extended with this and just do what you'd normally do. It will on exit of the menuconfig session for the recipe drop a config_frag.cfg file in the path specified by LOCAL_FILES_PATH. You can then fairly easily rename the fragment to what you want/need with the .cfg extension and add it to your SRC_URI path.
Upvotes: 0
Reputation: 3913
What kind of board are you using? From the NXP forum, I have found a document on modifying the U-boot for Freescale i.MX6X. It contains information about U-boot Set Up, Image Install Instruction, How to use U-boot, etc. The link is here
To find the u-boot and modify, you need to look at the machine configuration. In there, it will shows where the kernel and u-boot comes from.
For example, the iMX6 sabrelite
Then, find the bsp for u-boot recipe for the compatible machine In there, at URI, you will find the git repository that tell where the u-boot is, change the branch and clone the u-boot.
Then, do whatever you want to modify the u-boot. After that, point your machine u-boot URI to where you store the u-boot repository.
Upvotes: 1