歡迎您光臨本站 註冊首頁

使用ELDK 5.0編譯U-Boot中的smdk2410

←手機掃碼閱讀     火星人 @ 2014-03-12 , reply:0
  

準備玩玩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)



[火星人 ] 使用ELDK 5.0編譯U-Boot中的smdk2410已經有499次圍觀

http://coctec.com/docs/program/show-post-71509.html