User`s guide
i.MX53 System Development User’s Guide, Rev. 1
Freescale Semiconductor 11-1
Chapter 11
Porting U-Boot from an i.MX53 Reference Board to an
i.MX53 Custom Board
This chapter provides a step-by-step guide that explains how to add i.MX53 custom board support to
U-Boot. This developer's guide is based on U-Boot version rel_imx_2.6.35_10.12.01_RC4, which is
present as a package on the LTIB-based Linux BSP at
http://opensource.freescale.com/git?p=imx/uboot-imx.git.
For an introduction to the use of U-Boot firmware with i.MX processors, read AN4173, “U-Boot for
i.MX51 Based Designs,” which is available on the Freescale website.
11.1 Obtaining the Source Code for the U-Boot
The following steps explain how to obtain the source code.
1. Install LTIB as usual. Make sure you deselect U-Boot from compilation.
2. Manually unpack u-boot: ./ltib -m prep -p u-boot.
The U-Boot code is now located at rpm/BUILD/u-boot-<version number>. The guide will now refer to the
U-Boot main directory as <UBOOT_DIR> and assumes that your shell working directory is <UBOOT_DIR>.
11.2 Preparing the Code
The following steps explain how to prepare the code.
1. Make a copy of the board directory, using the following instruction:
$cp -R board/freescale/mx53_<reference board name> board/freescale/mx53_<custom board
name>
2. Copy the existing mx53_<reference board name>.h board configuration file as mx53_<custom board
name>.h
, using the following instruction.
$cp include/configs/mx53_<reference board name>.h include/configs/mx53_<custom board
name>.h
3. Create one entry in <UBOOT_DIR>/Makefile for the new i.MX53-based configuration. This file is in
alphabetical order. The instruction to use is as follows:
mx53_<custom board name>_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 mx53_<custom board name> freescale mx53