m1n1 VS linux

Compare m1n1 vs linux and see what are their differences.

m1n1

A bootloader and experimentation playground for Apple Silicon (by AsahiLinux)

linux

Linux kernel source tree (by AsahiLinux)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
m1n1 linux
17 30
3,376 2,091
2.2% 3.0%
8.9 0.0
20 days ago 8 days ago
Python C
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

m1n1

Posts with mentions or reviews of m1n1. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-15.
  • Asahi Linux project's OpenGL support on Apple Silicon officially surpasses Apple
    2 projects | news.ycombinator.com | 15 Feb 2024
    One of the coolest things (IMO) about the entire Asahi effort, and why I'm not at all surprised that they surpassed Apple, was the dedicated effort to build bespoke developer-friendly Python tooling early in the reverse engineering process.

    https://asahilinux.org/2021/08/progress-report-august-2021/

    > Since the hypervisor is built on m1n1, it works together with Python code running on a separate host machine. Effectively, the Python host can “puppeteer” the M1 and its guest OS remotely. The hypervisor itself is partially written in Python! This allows us to have a very fast test cycle, and we can even update parts of the hypervisor itself live during guest execution, without a reboot.

    > We then started building a Python implementation of this RPC protocol and marshaling system. This implementation serves a triple purpose: it allows us to parse the DCP logs from the hypervisor to understand what macOS does, it allows us to build a prototype DCP driver entirely in Python, and it will in the future be used to automatically generate marshaling code for the Linux kernel DCP driver.

    Code here: https://github.com/AsahiLinux/m1n1/blob/main/proxyclient/m1n...

    If you watch any of Asahi Lina's streams from the time before they had working drivers, she's able to weave together complex bitflag-manipulating pipelines at the speed of thought with self-documenting code, all in Python running on the host machine, all while joking with viewers via her adorable avatar. I've never seen anything like it before. The whole workflow is a tremendous and unprecedented accomplishment by the entire Asahi team.

  • Strange (scheduling?) latency on the host when KVM guest runs something demanding
    2 projects | /r/AsahiLinux | 4 May 2023
    I wrote a m1n1 experiment to test IRQ delivery in EL1 and noticed something was weird. I already knew about that IRQ control register (3 masks IRQs entirely and is the default, that whole thing took like a day or two back when I first added M1 Pro/Max support), so I tried other values and 2 fixed it.
  • Apple Silicon - iBoot
    1 project | /r/osdev | 4 Apr 2023
    They have not dropped hardly any official documentation on iBoot. The best safe documentation is in: https://github.com/AsahiLinux/m1n1/ There's a lot of tainted docs out there because the source to iBoot was illegally leaked a while back, but marcan is known for being a bit of a hardass when it comes to legal reverse engineering (thankfully).
  • Everything we know about the Apple Neural Engine (ANE)
    9 projects | news.ycombinator.com | 25 Mar 2023
  • Dumb question - is it possible to install Windows on top of Asahi?
    1 project | /r/AsahiLinux | 1 Mar 2023
    No its uefi boot manager “https://github.com/AsahiLinux/m1n1 “
  • Updates galore! November 2022 Progress Report
    2 projects | news.ycombinator.com | 22 Nov 2022
    What makes you say there isn't community participation? The repo for m1n1, at least, has 42 contributors according to Github[1]. There's plenty more reporting bugs and such, and their IRC channel seems relatively active.

    1: https://github.com/AsahiLinux/m1n1

  • A Secret Apple Silicon (M1) Extension to Accommodate an Intel 8080 Artifact
    1 project | /r/mac | 18 Nov 2022
    I can confirm that’s pretty much exactly what happens. I did some digging with the help of m1n1 a while back, and essentially yeah, this is almost exactly what it does. The only difference is that, rather than tracking which cores are running emulated code, the scheduler keeps track of which processes are running in emulation mode, and prior to returning to userland after a context switch, the kernel sets control register bits for features like TSO (which is what I was interested in looking into at the time; I believe that specifically is controlled somewhere in the actlr_el1 register). Although only the P-cores actually implement the necessary x86 emulation behavior, the scheduler of course wants to ensure that a process is not pinned to any one core, and that native and emulated processes alike can preempt and interleave with each other on the P-cores just as they would if there were no emulation.
  • Asahi Lina (Linux Developer VTuber) wants to write the new Apple Silicon GPU driver for Linux in Rust!
    3 projects | /r/linux | 11 Aug 2022
    That shim/stub is m1n1. It is the bootloader for Asahi Linux, but also makes it possible to talk to the hardware over USB as just described by Lina. marcan even implemented a small hypervisor in m1n1, so it can be used to run MacOS and trace how MacOS is accessing the hardware.
  • questions about the new architecture
    1 project | /r/mac | 9 Aug 2022
    Windows 11 ARM dualboot will come to M1 macs in the near future. See m1n1 for progress.
  • First triangle ever rendered on an M1 Mac with a fully open-source driver
    1 project | news.ycombinator.com | 5 Jun 2022

linux

Posts with mentions or reviews of linux. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-20.
  • Red Hat to Author New Linux Driver for Nvidia GPUs in Rust
    2 projects | news.ycombinator.com | 20 Mar 2024
    You're missing on a lot of things Rust (or any language with non-toy types) can provide. Lock ordering, better accessible complex structures, enforcement of enumerated options, rich description of APIs, and many others. Atomic values are usable transparently https://github.com/AsahiLinux/linux/blob/97c628055904a7f2ef1... and multithreaded reference counting is easily enforced https://github.com/AsahiLinux/linux/blob/bd0a1a7d465fcb60685... also issues like type confusion https://www.vicarius.io/vsociety/posts/a-type-confusion-bug-... are less likely if you can easily use tagged unions checked by the compiler.
  • Asahi Linux project's OpenGL support on Apple Silicon officially surpasses Apple
    2 projects | news.ycombinator.com | 15 Feb 2024
    From the gpu issue tracker[0]:

    > For a bit of context -- Google Maps loads images to the GPU at.. inopportune times. While games would typically load their images during a load screen (so slow image loading just means longer loading screens), Google Maps loads when scrolling around I think (so slow image loading means the whole map stutters). I don't think there's a fundamental driver bug we can fix here, but we can make image loading a lot faster which makes the symptoms go away.

    [0]: https://github.com/AsahiLinux/linux/issues/72#issuecomment-1...

  • Committing to Rust for Kernel Code
    5 projects | news.ycombinator.com | 23 Nov 2023
    > Is this mostly just a thing to get more young people interested in kernel development...allowing them to start out in less important areas and in a language they are passionate about?

    Not likely. At the moment you need to do extra work to get Rust working well. It's not exactly beginner friendly and doing work in the kernel, you'll need to dig into C anyway.

    > Or is this a serious proposal about the future of operating systems and other low level infrastructure code?

    Serious code already exists, so... Yes?

    > Do you just program everything in unsafe mode? What about runtimes?

    Why would you? You need that only when interfacing with something that can't hold the Rust compiler assumptions. See for example https://github.com/AsahiLinux/linux/blob/gpu/rebase-6.4/driv...

    The few places that need direct access / unsafe are almost all single-line areas with an explanation.

  • Speaker Support in Asahi Linux
    4 projects | news.ycombinator.com | 12 Nov 2023
    I think the idea with the M-series laptops in particular is that you can drive the speakers at volumes that actually damage them very quickly ( see https://github.com/AsahiLinux/linux/issues/53 ). The idea AIUI is that you can use a DSP along with a physical model of the voice coil to get better sound than you would if the speakers were volume-limited.
  • Ask HN: How is Rust used in the Linux kernel today?
    2 projects | news.ycombinator.com | 12 Sep 2023
    I am using Asahi Linux and the GPU driver works great, it even supports OpenGL 3.1 (https://asahilinux.org/2023/06/opengl-3-1-on-asahi-linux/). Definitely not alpha, I would say it's close to a "release candidate". Many bugs got resolved, nothing much left (besides newer OpenGL and Vulkan of course, but current state is very stable): https://github.com/AsahiLinux/linux/issues/72
  • Charging Threshold for Gnome Asahi Linux users
    1 project | /r/AsahiLinux | 12 May 2023
  • The Linux Kernel Module Programming Guide
    2 projects | news.ycombinator.com | 1 May 2023
    There aren't really any non-trivial mainline modules, since the Rust support is so new. There's the non-mainline Asahi M1 GPU driver though! It will eventually be mainlined, but IIRC some more Rust support code needs to be mainlined first.

    https://github.com/AsahiLinux/linux/tree/asahi/drivers/gpu/d...

  • Asahi Linux: Initial Apple M2 Pro/Max device trees and early support added to the Linux kernel (bringup)
    1 project | /r/linux | 11 Apr 2023
  • Initial M2 Pro/Max device trees and early support added to m1n1 and Linux kernel
    1 project | /r/AsahiLinux | 11 Apr 2023
  • Fix Asahi Linux Screen Temperature?
    1 project | /r/AsahiLinux | 21 Mar 2023
    You can follow the progress here: https://github.com/AsahiLinux/linux/issues/91

What are some alternatives?

When comparing m1n1 and linux you can also consider the following projects:

HelloSilicon - An introduction to ARM64 assembly on Apple Silicon Macs

Amethyst - Automatic tiling window manager for macOS à la xmonad.

unix-history-repo - Continuous Unix commit history from 1970 until today

fritter - A privacy-friendly Twitter frontend for mobile devices

pdp7-unix - A project to resurrect Unix on the PDP-7 from a scan of the original assembly code

linux-m1 - Linux kernel source tree

freebsd-src - The FreeBSD src tree publish-only repository. Experimenting with 'simple' pull requests....

docs - Hardware and software docs / wiki

rss-proxy - RSS-proxy allows you to do create an RSS or ATOM feed of almost any website, just by analyzing just the static HTML structure.

ExpansionCards - Reference designs and documentation to create Expansion Cards for the Framework Laptop

nixos-apple-silicon - Resources to install NixOS bare metal on Apple Silicon Macs

nomicon - The Dark Arts of Advanced and Unsafe Rust Programming