交叉编译从86手臂 [英] Cross compiling for arm from x86

查看:154
本文介绍了交叉编译从86手臂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图插入 .ko 内核模块到ARM处理器,运行Linux。我建了一个 .ko 文件在我的办公桌上的PC是一个x86的之一。我如何交叉编译它来武装规格。我是新来这个领域。

I am trying to insert a .ko kernel module into the linux running in arm processor. I built a .ko file in my desk PC which is a x86 one. How do I cross compile it to arm specs. I am new to this field.

在此先感谢

推荐答案

有关,你需要先下载的ARM编译器。我建议你​​从 http://www.linaro.org/downloads/ 下载编译器然后设置CROSS_COMPILE环境变量为arm-linux的-GCC。

For that you need to download the ARM compilers first. I suggest you download the compiler from http://www.linaro.org/downloads/ then set the CROSS_COMPILE environment variable to arm-linux-gcc.

设置PATH variable.You可以通过出口PATH = $ PATH做的bin目录路径:/路径/要/ ARM /二进制/

set the bin directory path in PATH variable.You can do it by export PATH=$PATH:/path/to/arm/binaries/

最后编译那么code在ARM上运行。

Finally compile the code then run in ARM.

使用文件<文件名方式> 无论是ARM可执行文件或不

use file <filename> whether it is ARM executable or not.

这篇关于交叉编译从86手臂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆