开发环境:CentOS 6.5
U-boot版本:u-boot.2010.09
交叉编译工具链:buildroot-2012.08
硬件平台:FL2440
CPU: S3C2440 ARM920T,ARMV4,400MHz
SDRAM: H57V2562GTR 32MB*2=64MB
NandFlash: K9F2G08U0B 256MB
NorFlash: 无
网卡: DM9000
1、交叉编译器的安装
交叉编译器下载地址:http://buildroot.uclibc.org/downloads/
在此我们选择的是buildroot-2012.08.tar.bz2
1.1解压:
tar -xf buildroot-2012.08.tar.bz2 -C .
首先让opt具有777权限, 进入buildroot-2012.08目录,make menuconfig
注意修改的地方:
Target Architecture (ARM (little endian)) ->
Target Architecture Variant (arm920t) ->
Target ABI (EABI) ->
Build options ->
($(TOPDIR)/dl)Download dir
($(TOPDIR)/arm920t) Host dir
Toolchain ->
KernelHeaders (Linux 3.0.x kernel headers) ->
uClibc Clibrary Version (uClibc 0.9.33.x) ->
…
[*] Enable MMU support
[*] Use software floating point by default
…
[*] Enable large file (files > 2 GB) support
[*] Enable IPv6 support
[*] Enable RPC support
[*] Enable WCHAR support
[*] Enable toolchain locale/i18n support
[*] Enable C++ support
…
System configuration ->不做修改
Packagr Selection for the target ->
Libraries ->
Compressionand decompression ->
[*] lzo
[*] zlib
Filesystem images -> 全部取消不选
Bootloaders -> 全部取消不选
Kernel -> 全部取消不选
之后保存退出,然后直接make,大约1小时左右,编译通过,如下图:
这时我们可以ls/opt/buildroot-2012.08/arm920t/usr/bin/arm-linux-*看到如下:
到此我们的交叉编译器就算完成了。
注:若提示you must install 'makeinfo' on your build machine,makeinfo is usually part of the texinfo package in your distribution,那么直接安装#yum install texinfo。