码迷,mamicode.com
首页 > 其他好文 > 详细

Odroid cross compile setup

时间:2015-08-18 18:55:37      阅读:129      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!