你是对的,你需要一个适当的MIPS工具链交叉编译应用程序和Buildroot能做到这一点。但你可能需要调整buildroot的menuconfig选项。 根据file
的输出,您的选项可能会更改。在我的系统,二进制应用程序通知如下:
ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1 (SYSV)
这是我为我的Buildroot里面的menuconfig的启用的选项:
Target Architecture (mips) --->
Target Architecture Variant (mips 32r2) --->
Target ABI (o32) --->
Target options --->
Build options --->
(/opt/cross-mips-buildroot) Toolchain and header file location?
Toolchain --->
Toolchain type (Buildroot toolchain) --->
Kernel Headers (Linux 2.6.34.x kernel headers) --->
uClibc C library Version (uClibc 0.9.31.x) --->
[*] Build/install a shared libgcc?
[*] Enable compiler tls support
[*] Build gdb debugger for the Target
[*] Build gdb server for the Target
[*] Build gdb for the Host
GDB debugger Version (gdb 6.8) --->
[*] Enable large file (files > 2 GB) support?
[*] Enable WCHAR support
[*] Use software floating point by default
[*] Enable stack protection support
[*] Build/install c++ compiler and libstdc++?
[*] Include target utils in cross toolchain
Package Selection for the target --->
[*] BusyBox
[*] Run BusyBox's own full installation
Libraries --->
Networking --->
[*] libcurl
Text and terminal handling --->
[*] icu
-*- ncurses
Target filesystem options --->
Bootloaders --->
Kernel --->
本身安装在工具链的/ opt /交叉mips-buildroot。你可以找到/选择/交叉MIPS-buildroot的在/ usr/bin中/
尝试编译器和其他工具来编译一个简单的的Hello World应用程序,看看你是否能在MIPS系统内部运行它。
注意:此配置不会构建C++编译器。如果您需要它,您可以grep LIBSTDCPP .config
并检查它是否启用并将其更改为您喜欢的。然后make menuconfig
使它发生。
找到MIPS系统和exec ** **文件在其上的任何二进制应用程序和与我们共享的输出 – karlphillip 2011-01-20 20:09:35
好了,文件的输出用于从所述系统可执行的是: ELF 32位LSB的可执行,MIPS,MIPS-I版本1(SYSV),动态链接(使用共享库),剥离 感谢您的所有帮助。 – sagenite 2011-01-20 22:11:28