2 ms·
Is that really true that M1 is just an ARM processor? I've heard the difficulty in emulating it is due to Apple specific things, whether they be drivers or new
by cercatrova 6y ago
Is that really true that M1 is just an ARM processor? I've heard the difficulty in emulating it is due to Apple specific things, whether they be drivers or new instructions.
- ithkuil 6y agoIt's an asymmetrical situation: If you have code that makes use of custom instructions, even if only sprinkled in a few places, the emulator must support them. If you have a cpu with those extra instructions that is otherwise backwards compatible, you can run code that doesn't make use of such instructions just fine (of course, you won't benefit from the functionality/performance offered by those new instructions)
- vlovich123 6y agoI understood this thread to be about running Linux bare metal natively on the M1, so there's no emulation there & new instructions don't matter. Drivers & secure boot are always the biggest problem. It sounds like you can sign your own kernel & add it so in theory secure boot may not be a problem. Then the question is which driver support are missing & need implementation & how close that lines up with existing ARM device trees.
- my123 6y agoAn experimental Linux kernel that runs on Apple A10 devices is at: https://github.com/corellium/linux-sandcastle https://github.com/corellium/linux-sandcastle See https://arstechnica.com/gadgets/2020/03/project-sandcastle-brings-android-to-the-iphone/ https://arstechnica.com/gadgets/2020/03/project-sandcastle-b... on details about it. This work, especially as there's no exploiting security bugs required here, will benefit Linux on those Macs quite a lot.
- vlovich123 6y ago> This work, especially as there's no exploiting security bugs required here, will benefit Linux on those Macs quite a lot. Right, it sounds like Apple was very careful to provide an out here for enthusiasts by making it possible to sign your own kernel, something you can't do for iPhone/iPad/Watch. Seems like an astute appreciation of differences in their target market.