news@appleinsider.com (Malcolm Owen)
2025-04-08 12:29:00
appleinsider.com
The Asahi Linux project is having trouble bringing the operating system to M4 Macs, with some chip changes making working with the latest Apple Silicon models a lot tougher.
Asahi Linux is a project to make the Linux kernel work with Apple Silicon, so that Linux users can natively use modern Macs with Linux. After having success with M1 and M2 chips, the project is running into issues when trying to work with M4.
In a post to Mastodon on April 4, developer Sven Peter describes the work to add M4 support to Asahi Linux as “rather painful.” This is in comparison to the challenges the project faced when it came to supporting M1 and M2.
The project, for the moment, is focusing on upstreaming M1 and M2 support, but it has started to look towards the M4 workload. Unfortunately, trying to run the m1n1 bootloader isn’t working properly for some M4 users who have tried it, as Apple has changed something for the M4 generation.
Chip challenges
In describing the issue, Peter mentions how, when configuring a boot object, the environment is set where Apple’s SPTM (Secure Page Table Monitor) is set to the GL2 register. The boot loader is supposed to communicate from EL2 (Exception Level 2) with the MMU (Memory Management Unit) enabled to set up pagetables.
The problem is that it doesn’t work for Linux, Peter explains. It also doesn’t help for running XNU, Apple’s OS kernel, for reverse engineering purposes.
Configuring a raw boot object drops the process into EL2 with GL2, but with most of the Apple-specific extensions disabled. While this is OK for linux, it means XNU cannot be run under the project’s hypervisor.
This is a bit of a roadblock for the project, and will make it considerably harder to enable M4 support to Asahi Linux in future. However, in a reply, Peter offers hope that a hijacking of XNU exception handlers and pagetable code could be a path forward.
There is no clear timetable for M4 support.
Keep track of your essentials with the Apple AirTag 4 Pack, the ultimate tracking solution for your belongings. With over 5,972 ratings and a stellar 4.7-star average, this product has quickly become a customer favorite. Over 10,000 units were purchased in the past month, solidifying its status as a highly rated Amazon Choice product.
For just $79.98, you can enjoy peace of mind knowing your items are always within reach. Order now for only $79.98 at Amazon!
Help Power Techcratic’s Future – Scan To Support
If Techcratic’s content and insights have helped you, consider giving back by supporting the platform with crypto. Every contribution makes a difference, whether it’s for high-quality content, server maintenance, or future updates. Techcratic is constantly evolving, and your support helps drive that progress.
As a solo operator who wears all the hats, creating content, managing the tech, and running the site, your support allows me to stay focused on delivering valuable resources. Your support keeps everything running smoothly and enables me to continue creating the content you love. I’m deeply grateful for your support, it truly means the world to me! Thank you!
BITCOIN bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge Scan the QR code with your crypto wallet app |
DOGECOIN D64GwvvYQxFXYyan3oQCrmWfidf6T3JpBA Scan the QR code with your crypto wallet app |
ETHEREUM 0xe9BC980DF3d985730dA827996B43E4A62CCBAA7a Scan the QR code with your crypto wallet app |
Please read the Privacy and Security Disclaimer on how Techcratic handles your support.
Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.