u-boot for odroid
This directory contains the source code for U-Boot, a boot loader for Embedded boards based on PowerPC, ARM, MIPS and several other processors, which can be installed in a boot ROM and used to initialize and test the hardware or to download and run application code.
The development of U-Boot is closely related to Linux: some parts of the source code originate in the Linux source tree, we have some header files in common, and special provision has been made to support booting of Linux images.
Some attention has been paid to make this software easily configurable and extendable. For instance, all monitor commands are implemented with the same call interface, so that it's very easy to add new commands. Also, instead of permanently adding rarely used code (for instance hardware test utilities) to the monitor, you can load and run it dynamically.
In general, all boards for which a configuration option exists in the Makefile have been tested to some extent and can be considered "working". In fact, many of them are used in production systems.
In case of problems see the CHANGELOG and CREDITS files to find out who contributed the specific port. The boards.cfg file lists board maintainers.
Note: There is no CHANGELOG file in the actual U-Boot source tree; it can be created dynamically from the Git log using:
make CHANGELOGIn case you have questions about, problems with or contributions for U-Boot you should send a message to the U-Boot mailing list at . There is also an archive of previous traffic on the mailing list - please search the archive before asking FAQ's. Please see http://lists.denx.de/pipermail/u-boot and http://dir.gmane.org/gmane.comp.boot-loaders.u-boot
The U-Boot source code is maintained in the git repository at git://www.denx.de/git/u-boot.git ; you can browse it online at http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=summary
The "snapshot" links on this page allow you to download tarballs of any version you might be interested in. Official releases are also available for FTP download from the ftp://ftp.denx.de/pub/u-boot/ directory.
Pre-built (and tested) images are available from ftp://ftp.denx.de/pub/u-boot/images/
The "official" name of this project is "Das U-Boot". The spelling "U-Boot" shall be used in all written text (documentation, comments in source files etc.). Example:
This is the README file for the U-Boot project.File names etc. shall be based on the string "u-boot". Examples:
include/asm-ppc/u-boot.h
#include Variable names, preprocessor constants etc. shall be either based on the string "u_boot" or on "U_BOOT". Example:
U_BOOT_VERSION u_boot_logo
IH_OS_U_BOOT u_boot_hush_startStarting with the release in October 2008, the names of the releases were changed from numerical release numbers without deeper meaning into a time stamp based numbering. Regular releases are identified by names consisting of the calendar year and month of the release date. Additional fields (if present) indicate release candidates or bug fix releases in "stable" maintenance trees.
Examples: U-Boot v2009.11 - Release November 2009 U-Boot v2009.11.1 - Release 1 in version November 2009 stable tree U-Boot v2010.09-rc1 - Release candiate 1 for September 2010 release
/arch Architecture specific files /arc Files generic to ARC architecture /cpu CPU specific files /arc700 Files specific to ARC 700 CPUs /lib Architecture specific library files /arm Files generic to ARM architecture /cpu CPU specific files /arm720t Files specific to ARM 720 CPUs /arm920t Files specific to ARM 920 CPUs /at91 Files specific to Atmel AT91RM9200 CPU /imx Files specific to Freescale MC9328 i.MX CPUs /s3c24x0 Files specific to Samsung S3C24X0 CPUs /arm926ejs Files specific to ARM 926 CPUs /arm1136 Files specific to ARM 1136 CPUs /pxa Files specific to Intel XScale PXA CPUs /sa1100 Files specific to Intel StrongARM SA1100 CPUs /lib Architecture specific library files /avr32 Files generic to AVR32 architecture /cpu CPU specific files /lib Architecture specific library files /blackfin Files generic to Analog Devices Blackfin architecture /cpu CPU specific files /lib Architecture specific library files /m68k Files generic to m68k architecture /cpu CPU specific files /mcf52x2 Files specific to Freescale ColdFire MCF52x2 CPUs /mcf5227x Files specific to Freescale ColdFire MCF5227x CPUs /mcf532x Files specific to Freescale ColdFire MCF5329 CPUs /mcf5445x Files specific to Freescale ColdFire MCF5445x CPUs /mcf547x_8x Files specific to Freescale ColdFire MCF547x_8x CPUs /lib Architecture specific library files /microblaze Files generic to microblaze architecture /cpu CPU specific files /lib Architecture specific library files /mips Files generic to MIPS architecture /cpu CPU specific files /mips32 Files specific to MIPS32 CPUs /mips64 Files specific to MIPS64 CPUs /lib Architecture specific library files /nds32 Files generic to NDS32 architecture /cpu CPU specific files /n1213 Files specific to Andes Technology N1213 CPUs /lib Architecture specific library files /nios2 Files generic to Altera NIOS2 architecture /cpu CPU specific files /lib Architecture specific library files /openrisc Files generic to OpenRISC architecture /cpu CPU specific files /lib Architecture specific library files /powerpc Files generic to PowerPC architecture /cpu CPU specific files /74xx_7xx Files specific to Freescale MPC74xx and 7xx CPUs /mpc5xx Files specific to Freescale MPC5xx CPUs /mpc5xxx Files specific to Freescale MPC5xxx CPUs /mpc8xx Files specific to Freescale MPC8xx CPUs /mpc8260 Files specific to Freescale MPC8260 CPUs /mpc85xx Files specific to Freescale MPC85xx CPUs /ppc4xx Files specific to AMCC PowerPC 4xx CPUs /lib Architecture specific library files /sh Files generic to SH architecture /cpu CPU specific files /sh2 Files specific to sh2 CPUs /sh3 Files specific to sh3 CPUs /sh4 Files specific to sh4 CPUs /lib Architecture specific library files /sparc Files generic to SPARC architecture /cpu CPU specific files /leon2 Files specific to Gaisler LEON2 SPARC CPU /leon3 Files specific to Gaisler LEON3 SPARC CPU /lib Architecture specific library files /x86 Files generic to x86 architecture /cpu CPU specific files /lib Architecture specific library files /api Machine/arch independent API for external apps /board Board dependent files /common Misc architecture independent functions /disk Code for disk drive partition handling /doc Documentation (don't expect too much) /drivers Commonly used device drivers /dts Contains Makefile for building internal U-Boot fdt. /examples Example code for standalone applications, etc. /fs Filesystem code (cramfs, ext2, jffs2, etc.) /include Header Files /lib Files generic to all architectures /libfdt Library files to support flattened device trees /lzma Library files to support LZMA decompression /lzo Library files to support LZO decompression /net Networking code /post Power On Self Test /spl Secondary Program Loader framework /tools Tools to build S-Record or U-Boot images, etc.
Configuration is usually done using C preprocessor defines; the rationale behind that is to avoid dead code whenever possible.
There are two classes of configuration variables:
Configuration OPTIONS: These are selectable by the user and have names beginning with "CONFIG_".
Configuration SETTINGS: These depend on the hardware etc. and should not be meddled with if you don't know what you're doing; they have names beginning with "CONFIG_SYS_".
Later we will add a configuration tool - probably similar to or even identical to what's used for the Linux kernel. Right now, we have to do the configuration by hand, which means creating some symbolic links and editing some configuration files. We use the TQM8xxL boards as an example here.
For all supported boards there are ready-to-use default configurations available; just type "make _defconfig".
Example: For a TQM823L module type:
cd u-boot
make TQM823L_defconfigFor the Cogent platform, you need to specify the CPU type as well; e.g. "make cogent_mpc8xx_defconfig". And also configure the cogent directory according to the instructions in cogent/README.
U-Boot can be built natively to run on a Linux host using the 'sandbox' board. This allows feature development which is not board- or architecture- specific to be undertaken on a native platform. The sandbox is also used to run some of U-Boot's tests.
See board/sandbox/README.sandbox for more details.
Configuration depends on the combination of board and CPU type; all such information is kept in a configuration file "include/configs/.h".
Example: For a TQM823L module, all configuration settings are in "include/configs/TQM823L.h".
Many of the options are named exactly as the corresponding Linux kernel configuration options. The intention is to make it easier to build a config tool - later.
The following options need to be configured:
CPU Type: Define exactly one, e.g. CONFIG_MPC85XX.
Board Type: Define exactly one, e.g. CONFIG_MPC8540ADS.
CPU Daughterboard Type: (if CONFIG_ATSTK1000 is defined) Define exactly one, e.g. CONFIG_ATSTK1002
CPU Module Type: (if CONFIG_COGENT is defined) Define exactly one of CONFIG_CMA286_60_OLD
--- FIXME --- not tested yet: CONFIG_CMA286_60, CONFIG_CMA286_21, CONFIG_CMA286_60P, CONFIG_CMA287_23, CONFIG_CMA287_50
Motherboard Type: (if CONFIG_COGENT is defined) Define exactly one of CONFIG_CMA101, CONFIG_CMA102
Motherboard I/O Modules: (if CONFIG_COGENT is defined) Define one or more of CONFIG_CMA302
Motherboard Options: (if CONFIG_CMA101 or CONFIG_CMA102 are defined) Define one or more of CONFIG_LCD_HEARTBEAT - update a character position on the LCD display every second with a "rotator" |-/|-/
Marvell Family Member CONFIG_SYS_MVFS - define it if you want to enable multiple fs option at one time for marvell soc family
8xx CPU Options: (if using an MPC8xx CPU) CONFIG_8xx_GCLK_FREQ - deprecated: CPU clock if get_gclk_freq() cannot work e.g. if there is no 32KHz reference PIT/RTC clock CONFIG_8xx_OSCLK - PLL input clock (either EXTCLK or XTAL/EXTAL)
859/866/885 CPU options: (if using a MPC859 or MPC866 or MPC885 CPU): CONFIG_SYS_8xx_CPUCLK_MIN CONFIG_SYS_8xx_CP
No open issues yet, or sync has not completed.