使用ELDK 5.0编译U-Boot中的smdk2410

来源:LinuxIDC.com 作者:LinuxIDC.com
  

准备玩玩ARM板子了,今天尝试着建立一下编译环境。

U-BOOT的ELDK已经发到5.0版本了。

而且,相较以前的ELDK版本,这个版本的安装路径不能在重定位了,规定死了要安装在 /opt/eldk-5.0/ 目录下,所以我预先建立了/opt/eldk-5.0/路径。

root@xUbuntu-laptop:/opt#

至于,我选择的是针对 普通ARM的 armv5te架构的版本,下载的文件则有,见下面红色字体的文件

root@xUbuntu-laptop:/home/eldk-download# 

 

安装很简单,如下,蓝色部分为提示信息

root@xUbuntu-laptop:/home/eldk-download# ./install.sh -i qte armv5te
--------------------------------------------------------------------
NOTICE: superuser priviledges will be needed to install the
root file system; make sure you have sufficient permissions.
--------------------------------------------------------------------
*** Installing ./targets/armv5te/poky-image-qte-sdk-armv5te.tar.gz
*** Installing ./targets/armv5te/eldk-eglibc-i686-arm-toolchain-qte-5.0.tar.bz2

运行完毕,则进入/opt/eldk-5.0 目录

root@xUbuntu-laptop:/opt/eldk-5.0# 

利用 source 命令,更新eldk相关的环境变量

root@xUbuntu-laptop:/opt/eldk-5.0/armv5te# source environment-setup-armv5te-linux-gnueabi

利用export显示环境变量

root@xUbuntu-laptop:/opt/eldk-5.0/armv5te# 

 

显示一下arm-linux-gnueabi-gcc的信息

xUbuntu@xubuntu-laptop:/home/u-boot-2011.09$ arm-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/libexec/armv5te-linux-gnueabi/gcc/arm-linux-gnueabi/4.5.1/lto-wrapper
Target: arm-linux-gnueabi
Configured with: /opt/poky/build/eldk-2011-05-20-5cde06e-armv5te/tmp/work/i686-nativesdk-oesdk-linux/gcc-cross-canadian-arm-4.5.1-r4/gcc-4.5.1/configure --build=x86_64-linux --host=i686-oesdk-linux --target=arm-linux-gnueabi --prefix=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr --exec_prefix=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr --bindir=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/bin/armv5te-linux-gnueabi --sbindir=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/bin/armv5te-linux-gnueabi --libexecdir=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/libexec/armv5te-linux-gnueabi --datadir=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/share --sysconfdir=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/etc --sharedstatedir=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/com --localstatedir=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/var --libdir=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/lib/armv5te-linux-gnueabi --includedir=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/include --oldincludedir=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/include --infodir=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/share/info --mandir=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/share/man --with-libtool-sysroot=/opt/poky/build/eldk-2011-05-20-5cde06e-armv5te/tmp/sysroots/i686-oesdk-linux-nativesdk --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-linux-gnueabi- --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap --enable-cheaders=c_global --with-float=soft --with-local-prefix=/opt/eldk-5.0/armv5te/sysroots/arm-linux-gnueabi/usr --with-gxx-include-dir=/usr/include/c++ --with-build-time-tools=/opt/poky/build/eldk-2011-05-20-5cde06e-armv5te/tmp/sysroots/x86_64-linux/usr/arm-linux-gnueabi/bin --with-sysroot=/opt/eldk-5.0/armv5te/sysroots/arm-linux-gnueabi --with-build-sysroot=/opt/poky/build/eldk-2011-05-20-5cde06e-armv5te/tmp/sysroots/armv5te --disable-libunwind-exceptions --disable-libssp --disable-libgomp --disable-libmudflap --with-mpfr=/opt/poky/build/eldk-2011-05-20-5cde06e-armv5te/tmp/sysroots/i686-oesdk-linux-nativesdk --with-mpc=/opt/poky/build/eldk-2011-05-20-5cde06e-armv5te/tmp/sysroots/i686-oesdk-linux-nativesdk --enable-__cxa_atexit
Thread model: posix
gcc version 4.5.1 (GCC)


时间:2011-10-16 09:58 来源:LinuxIDC.com 作者:LinuxIDC.com 原文链接

好文,顶一下
(0)
0%
文章真差,踩一下
(0)
0%
------分隔线----------------------------


把开源带在你的身边-精美linux小纪念品
无觅相关文章插件,快速提升流量