Asahi Linux devs merge effort to run Linux on Apple M1 silicon into kernel
- Reference: 1617953404
- News link: https://www.theregister.co.uk/2021/04/09/asahi_linux_merged/
- Source link:
A [1]merge from kernel hacker Arnd Bergmann of Linux-on-Arm outfit Linaro and a [2]kernel mailing list post from Asahi Linux backer Hector Martin delivered the news.
[3]
Martin also tweeted an alert, while also acknowledging that Linux overlord Linus Torvalds could banish the effort.
(technically Linus could still reject the SoC merge, but I'm kind of hoping we don't run into something there :P) — Hector Martin (@marcan42) [4]April 9, 2021
[5]
The mailing list post details considerable difficulties making the port work, among them the need for a new bootloader, working with custom USB commands Apple includes on its devices.
“Currently, the easiest way to get a serial console on these machines is to use a second M1 box and a simple USB C cable,” Martin writes.
The alternative is to “build a DIY interface using an Arduino, a FUSB302 chip or board, and a 1.2V UART-TTL adapter.”
Asahi's plan for Linux on Apple's new silicon shows Cupertino has gone back to basics with iOS booting [6]READ MORE
“In the coming weeks we will be designing an open hardware project to provide serial/debug connectivity to these machines (and, hopefully, also support other UART-over-Type C setups from other vendors).”
Martin says the port works.
“This has been tested on an Apple M1 Mac Mini booting to a framebuffer and serial console, with SMP and KASLR, with an arm64 defconfig (+ CONFIG_FB_SIMPLE for the fb),” he wrote.
Instructions on how to boot Linux on an M1 box can be found [7]here .
[8]
The code has been merged for the next version 5.13 of the Linux kernel. Linus Torvalds this week issued rc6 of version 5.12, and each release usually runs to eight weekly release candidates and then a two-week merge window. If all goes well, Asahi Linux could therefore be a reality in about 12 weeks. ®
Get our [9]Tech Resources
[1] https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?h=for-next&id=0d5fe4b31785b732b71e764b55cda5c8d6e3bbbf
[2] http://lkml.iu.edu/hypermail/linux/kernel/2104.1/00960.html
[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2YHAl4gBNROtZeZSqPFZIwQAAAI0&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[4] https://twitter.com/marcan42/status/1380365920418209795?ref_src=twsrc%5Etfw
[5] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33YHAl4gBNROtZeZSqPFZIwQAAAI0&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[6] https://www.theregister.com/2021/03/13/asahi_linux_apple/
[7] https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart
[8] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YHAl4gBNROtZeZSqPFZIwQAAAI0&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[9] https://whitepapers.theregister.com/
Re: The next generation will attempt to port the kernel to Javascript...
I can't imagine them objecting. They've never really had a problem with users running windows or linux on macs, as long as they buy the hardware.Though they dont encourage it either.
Re: The next generation will attempt to port the kernel to Javascript...
Apple refuses to acknowledge The Register and usually there is a line like "Apple refused to comment", which was and is missing from the article.
A nice idea
But looking at the hoops you have to jump through to get anything other than MacOS to boot on an M1 I think its probably only for the extremely dedicated linux and Apple hardware fans who have absolutely nothing else to do with their time. Even though I own 2 linux boxes and an x86 Mini I've never tried to install Linux on the mini, lifes just too short to deal with all the Apple security BS.
Re: A nice idea
actually, it's easy to install Linux on old Macs, once the drivers have been found/reverse-engineered. I do it all the time (cos I like their hardware but I dislike the walled garden)
I notice Apple wasn't approached for comment ;)