首页 > 其他 > 详细

Odroid cross compile setup

时间:2015-08-18 18:52:22      阅读:388      评论:0      收藏:0      [点我收藏+]

参考

http://odroid.com/dokuwiki/doku.php?id=en:xu3_building_kernel

1. 安装交叉编译工具 

按照参考下载http://dn.odroid.com/ODROID-XU/compiler/arm-eabi-4.6.tar.gz

#arm-eabi- gcc cannot execute binary file

查看文件是elf 64-bit ,Linux 是32bit的

root@rzhou-pc:/opt/arm-eabi-4.6/bin# file arm-eabi-gcc
arm-eabi-gcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, BuildID[sha1]=0x8017f14da2903b7ff324011e39c63adc9355ed07, stripped

下载32位的交叉编译

https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/+/jb-release

tar -zxvf arm-eabi-4.6-jb-release.tar.gz -C toolchain/

安装成功后下载linux源码树

git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidxu3-3.10.y

  

cd linux
make odroidxu3_defconfig
make

应用编译  

 apt-get install  gcc-4.6-arm-linux-gnueabi

 

Odroid cross compile setup

原文:http://www.cnblogs.com/fastwave2004/p/4740034.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!