[U-Boot] Building imximage for mx53ard board, supporting NAND and YAFFS2

Dirk Behme dirk.behme at de.bosch.com
Tue Mar 6 07:42:03 CET 2012

On 06.03.2012 04:13, Bud Miljkovic wrote:
> Hi Fabio,
> I understand, from the MAINTAINERS file list, that you are the
> maintainer for the mx53ard board.  I took a copy of the u-boot sources
> for the Freescale SABRE Automotive Infotainment board (aka mx53ard
> board) from the Freescale site.  As the result I got the u-boot-2009.08
> building tree directory along with the associated cross compiler
> gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.386 tools.
> After some trial and error I managed to configure the mx53_ard_dd3.h for
> NAND and YAFFS2 support and successfully ran make, resulting in creation
> of the following files:
> *         u-boot
> *         u-boot.bin
> *         u-boot.srec
> *         u-boot.map
> *         u-boot.lds
> However, I would want to initially boot from SD-card and I would like to
> be able to generate an imx image of the u-boot when running make.  I
> looked at the Makefile from the Freescale release of u-boot-2009.08 and
> saw that it is fairly outdated - it does not support making of
> u-boot.imx image.  At the same time I see that the general denx
> distribution (u-boot-2011.12) of u-boot sources does have the support
> for making u-boot.imx image in its Makefile.  So I am wondering if a
> patch that can be applied to the u-boot-2009.08 Freescale u-boot source
> that will bring the make tools up to date and able to make u-boot.imx
> file does exist?

Using the Freescale 2009.08 U-Boot, you have everything you need with 
the generated u-boot.bin. Or in other words: The Freescale U-Boot 
u-boot.bin is from (SD) header point of view the same like the mainline 
u-boot.imx. Or in other words: The Freescale U-Boot uses the 
compiler/assembler to generate the header (see the file flash_header.S). 
The mainline U-Boot uses the mkimage/imximage tool *after* the 
u-boot.bin is generated to put the correct header in front of the 
u-boot.bin resulting in u-boot.imx. I.e. the Freescale U-Boot does 
everything in one step with the compiler/assembler, the mainline U-Boot 
does the same in two steps with an extra tool.

Best regards


More information about the U-Boot mailing list