macos 如何在 OSX 10.6(“雪豹”)下模拟 ARM 架构?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1535111/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 06:28:24  来源:igfitidea点击:

How to emulate an ARM architecture under OSX 10.6 ("Snow Leopard")?

macososx-snow-leopardarmemulationqemu

提问by Gegtik

I wish to emulate an ARM architecture (I wish to compile software for my DNS-323 NAS drive, to be more precise) and I'm having a hard time.

我希望模拟 ARM 架构(我希望为我的 DNS-323 NAS 驱动器编译软件,更准确地说)并且我很难过。

First I tried installing Q, which is an OSX port of QEMU. It freezes when I try to launch it. Then I tried to download the source code for QEMU and apply a patch someone had written to compile QEMU under Leopard, but that isn't working either.

首先我尝试安装 Q,它是 QEMU 的 OSX 端口。当我尝试启动它时它会冻结。然后我尝试下载 QEMU 的源代码并应用某人编写的补丁来在 Leopard 下编译 QEMU,但这也不起作用。

Does anyone have any suggestions?

有没有人有什么建议?

采纳答案by zxcat

UPDATE:looks like SkyEye project is (almost) dead now. It's still available on sourceforge.

更新:看起来 SkyEye 项目现在(几乎)死了。它仍然在sourceforge 上可用。

But qemuis better now. It can be installed from macportsor brew:

但是qemu现在更好了。它可以从macports或安装brew

brew install qemu

or

或者

sudo port install qemu +target_arm


Try SkyEye. SkyEye is an Open Source Simulator, which simulates series ARM and other Processor. The goal of SkyEye is to provide an integrated simulation environment in Linux and Windows. But it can be build for Mac OS X too.

试试天。SkyEye是一款开源模拟器,可以模拟ARM系列等处理器。SkyEye 的目标是在 Linux 和 Windows 中提供一个集成的模拟环境。但它也可以为 Mac OS X 构建。

I can't find complete information on Mac build, but check this:

我找不到有关 Mac 版本的完整信息,但请检查以下内容:

回答by yeeking

I was trying to get this running so I could check out the Raspberry PI OS under Mac OSX. I found this page:

我试图让它运行,以便我可以在 Mac OSX 下检查 Raspberry PI OS。我找到了这个页面:

http://cgi.cs.indiana.edu/~geobrown/stm32/Main/Simulation

http://cgi.cs.indiana.edu/~geobrown/stm32/Main/Simulation

The steps are:

步骤是:

  1. Install macports
  2. In a terminal, type: sudo port install qemu +target_arm
  1. 安装macports
  2. 在终端中,键入: sudo port install qemu +target_arm

That's it!

而已!

回答by bugmagnet

Perhaps ARM Emulation With QEMUusing Q, the Mac port of QEMU.

也许ARM仿真随着QEMU使用Q,的Mac移植QEMU