标签:
参考
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
标签:
原文地址:http://www.cnblogs.com/fastwave2004/p/4740034.html