如何在 x86 平台上运行 MIPS 二进制文件? [英] How to run a MIPS binary on x86 platform?

查看:50
本文介绍了如何在 x86 平台上运行 MIPS 二进制文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 Linux x86/x86-x64 机器上运行 MIPS 二进制文件?我有一些 Enigma2 机顶盒(也基于 Linux)的应用程序,我想在 x86/x86-64 机器上运行.这些插件仅适用于 MIPS 处理器.

解决方案

关键字是 "emulator".最著名的模拟器是 qemu,它几乎可以模拟任何架构,但也有很多 MIPS您可以在 Linux-MIPS wiki 中找到 Linux 上的模拟器:

<块引用>

  1. 开放虚拟平台 (OVP) OVPsim
  2. GXemul
  3. SimOS
  4. 苏力马
  5. MIPSsim
  6. MipsSim
  7. SPIM
  8. VMIPS
  9. Virtutech Simics
  10. SandUPSim
  11. 公安部
  12. YAMS
  13. MAME/MESS
  14. 错过
  15. 思科 7200 模拟器
  16. QEMU
  17. 虚拟 MIPS
  18. 米普
  19. 火星
  20. QtMips

请注意,有全系统模拟(更重)和用户模式模拟,模拟单个进程.根据您需要的类型,您必须选择一种,但 qemu 支持两者

<块引用>
  • 全系统仿真:在任何支持的架构上为任何机器运行操作系统
  • 用户模式仿真:在任何支持的架构上为另一个 Linux/BSD 目标运行程序

但是,性能会很糟糕,因此您永远不会希望运行像机顶盒中的视频解码器一样需要快速运行的应用.如果源代码可用,则重新编译它

参见在 x86_64 Ubuntu 下反编译/运行 MIPS 可执行文件

Is there any way to run a MIPS binary on a Linux x86/x86-x64 machine? I got some applications for Enigma2 set-top-boxes (which is also based on Linux) that I want to run on a x86/x86-64 machine. These plugins are only available for MIPS processors.

解决方案

The keyword is "emulator". The most famous emulator is qemu which can pretty much emulate any architectures out there, but there are also lots of MIPS emulators on Linux that you can find in the Linux-MIPS wiki:

  1. Open Virtual Platforms (OVP) OVPsim
  2. GXemul
  3. SimOS
  4. Sulima
  5. MIPSsim
  6. MipsSim
  7. SPIM
  8. VMIPS
  9. Virtutech Simics
  10. SandUPSim
  11. MPS
  12. YAMS
  13. MAME/MESS
  14. MISSE
  15. Cisco 7200 Simulator
  16. QEMU
  17. VirtualMIPS
  18. Miep
  19. MARS
  20. QtMips

Note that there are full-system emulation (which is heavier) and user-mode emulation which emulates a single process. Depending on which type you need you must choose one, but qemu supports both

  • Full-system emulation: Run operating systems for any machine, on any supported architecture
  • User-mode emulation: Run programs for another Linux/BSD target, on any supported architecture

However performance will be terrible so you'll never want to run an app that need to be fast like a video decoder in a set-top-box. If the source is available then just recompile it

See Decompile / Run MIPS executable under x86_64 Ubuntu

这篇关于如何在 x86 平台上运行 MIPS 二进制文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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