Building U-boot

Document created by rogeriopimentel Employee on Oct 14, 2015
Version 1Show Document
  • View in full screen mode

Building Freescale U-boot

 

The U-boot provided by Freescale can be downloaded in the following link:

http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/

 

 

1 - Set the cross compiler environment variables. When using Yocto, it can be made by the following command (see more details at Yocto Trainning Yocto Training - HOME )

 

source /opt/poky/1.7/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi

 

2 - Download the source code using "git clone":

 

git clone  http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git

 

3 - Create a local branch based on some remote branch. In this example, lets use branch origin/imx_v2014.04_3.14.28_1.0.0_ga

 

cd uboot-imx
git checkout -b imx_v2014.04_3.14.28_1.0.0_ga_local origin/imx_v2014.04_3.14.28_1.0.0_ga

 

4 - Configure the project with the board you want to build. All board are listed on file boards.cfg. Check the exactly name of the choosen board and add "_config" to build the project. In this example, lets use mx6qsabresd

 

make mx6qsabresd_config
make

 

5 - The binary file will be generated and will be located at project root folder. The generated file in this case will be u-boot.imx

 

6 - More details can be found on files

 

doc/README.imx6 
doc/README.imximage 
README

 

 

 

Building Mainline U-boot

 

The U-boot project is developed and maintained by Denx Computer Systems can be downloaded in the following link:

http://git.denx.de/?p=u-boot.git;a=summary

 

1 - Set the cross compiler environment variables. When using Yocto, it can be made by the following command (see more details at Yocto Trainning Yocto Training - HOME )

 

source /opt/poky/1.7/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi

 

2 - Download the source code using "git clone":

 

git clone http://git.denx.de/u-boot.git

 

3 - Check the name of the board on "configs" folder. In this case lets use mx6qsabresd_config

 

make mx6qsabresd_config
make

 

4 - The binary file will be generated and will be located at project root folder. The generated file in this case will be u-boot.imx

2 people found this helpful

Attachments

    Outcomes