问题描述
是否可以编译一些 Linux 内核并在 QEMU 上运行它,模拟一些 Big Endian ARM 处理器?
Is it possible to compile some Linux Kernel and run it over QEMU, emulating some Big Endian ARM processor?
如果 QEMU 不能做到这一点,我很想听听其他系统模拟器的情况.
If QEMU is not capable of that, I'd love to hear about other system emulators than can.
我的基本目标是在尽可能多的原生环境中运行和调试专用的 Big Endian ELF.
My basic goal is to run and debug dedicated Big Endian ELFs in as much as possible native environment.
每一个接近的解决方案或想法都会有所帮助!
Every close solution or idea would help!
推荐答案
QEMU 支持 big-endian ARM CPU,但目前不支持模拟任何具有 big-endian ARM CPU 的特定机器(板)在他们之中.ARM Linux 内核通常只在它们编译的硬件上运行,所以你不能只采用随机的大端 ARM Linux 内核并在任何东西上运行它——你需要对内核想要的硬件进行建模先看.
QEMU has support for big-endian ARM CPUs, but it does not currently have support for emulation of any specific machines (boards) which have big-endian ARM CPUs in them. ARM Linux kernels will generally only run on the hardware they're compiled for, so you can't just take a random big-endian ARM Linux kernel and run it on anything -- you'd need to model the hardware the kernel wanted to see first.
造成这种情况的根本原因是大端 ARM 系统非常罕见——几乎每个人都以小端模式运行 ARM CPU,而今天所有的 QEMU 模型板都是小端模式.
The underlying reason for this is that big-endian ARM systems are very rare -- almost everybody runs ARM CPUs in little-endian mode, and all the boards QEMU models today are little-endian.
这篇关于使用 QEMU 模拟 Big Endian ARM 系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!