[U-Boot-Users] How to Port U-Boot to New Hardware Platform?

Haifeng.Wu at infineon.com Haifeng.Wu at infineon.com
Thu Mar 1 03:27:13 CET 2007

Hello Ben, 

Thank you for your advice and I've read through the README file in the
top directory and the Manual on the wiki site.
Both of them emphasize the configuration for different platforms, with
less on how to port it.
Here I've found that in the 7th chapter of <Embedded Linux Primer> the
function and basic concept of bootloader is clearly explained.
I hope that it will help those guys like me.

I've tried to find the most similar board to our platform, but I don't
know where can find more information on the boards list in the /configs
Google gives too many useless results, which always give just some words
on it, yet not details.

Thank you for your help.


WU Haifeng

-----Original Message-----
From: Ben Warren [mailto:bwarren at qstreams.com] 
Sent: Wednesday, February 28, 2007 10:39 PM
To: Wu Haifeng
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] How to Port U-Boot to New Hardware Platform?

On Wed, 2007-02-28 at 11:24 +0800, Haifeng.Wu at infineon.com wrote:
> Dear All,
> I'm fairly new to U-Boot and not familiar with the architecture of 
> U-Boot.
> But I think the directory hierarchy can tell me that U-Boot divides 
> all the codes into board-related, CPU-related and common.
> I'm interested in porting U-Boot to our hardware platform, yet I don't

> know which code should be modified or added.
> Have some one done U-Boot porting for new hardware platform before?
> Would you like to share how to do it with me?

As we always do in engineering, find something similar to what you have
and copy it as much as possible.  If you have a new CPU, of course it's
much more complicated.

Board-specific stuff is in two places in the U-boot source hierarchy:

include/configs/<YOUR_BOARD>.h	- configuration information
board/<your_board>/		- board-specific code

You'll also have to modify the main Makefile, again following the
example of a similar board.

Make sure you start with the latest from the git repo:

cg-clone git://www.denx.de/git/<project_name>  <your_repository_name>/

Recommended reading:


More information about the U-Boot mailing list