8u-boot compilation, Ktt20/pitx software guide – Kontron KTT20-pITX User Manual
Page 31
 
KTD-S0045-D
Page 27
U-Boot Compilation
 
 
KTT20/pITX Software Guide
8
U-Boot Compilation
 
You can find a suitable compiler without major effort. One option is to use the Linaro
TM
ARM
®
compiler
downloadable from the internet address
http://www.linaro.org/
You need only four command lines to compile the U-Boot sourcecode. For an example:
export
PATH=/<compiler
path>/arm-none-eabi-gcc-4_6/bin/:$PATH
make
distclean
CROSS_COMPILE=arm-none-eabi-
make
harmony_config
CROSS_COMPILE=arm-none-eabi-
make
all
CROSS_COMPILE=arm-none-eabi-
The KTT20/pITX board be based on NVIDIAs
®
'Harmony' evaluation board. This explains the compiler switch
harmony_config
. The appendant U-Boot sourcecode is downloadable from the internet address
http://git.denx.de/?p=u-boot.git;a=summary
Another possibility:
http://nv-tegra.nvidia.com/gitweb/?p=3rdparty/u-boot.git;a=summary
The directory 'include/configs' contains a really important file named 'harmony.h'. For adaption some 
changes are necessary. 
/* 
 * (C) Copyright 2010, 2011 
 * NVIDIA Corporation <www.nvidia.com> 
* See file CREDITS for list of people who contributed to this project.
 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public 
 * License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any 
 * later version. 
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the 
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 
 * License for more details. 
 * You should have received a copy of the GNU General Public License along with this program; if not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
 */ 
#ifndef __CONFIG_H 
#define __CONFIG_H 
#include <asm/sizes.h> 
#include "tegra2-common.h"