Live data from Hacker News

Linux Running on Apple M1

twitter.com

181–190 of 282 posts

Re: Linux Running on Apple M1

#181
post #174

Earlier quoted context omitted.

Hello, marcan is CCed on that set of patches as a courtesy, and he can help with figuring out better approaches before it's merged. Because it's set in stone forever after that. - someone

You're right! I should've paid more attention to the headers. Still, this is only very basic support for the CPU. Much more work is needed.

Some more explanations about the choices taken for the first submission: https://threedots.ovh/blog/2021/01/linux-on-apple-silicon-ma...

Re: Linux Running on Apple M1

#182
post #156

Earlier quoted context omitted.

The thing is, many more people are using phone and tablets, than Windows and many more people are using Windows, than Macs and many more people are using Macs, than desktop Linuxes and many more people are using desktop Linuxes, than desktop BSDs. So the anecdata goes against your mountain of anecdata that goes against a world of anecdata from people using those platforms.

Yeah, because when I use a phone or tablet I have to worry about installing my own drivers :-) Apples, oranges.

I don't remember installing any drivers in Linux in last... I don't even know how many... years. For the hardware I happened to use, it was Mac-like experience.

And actually, Windows 10 is also approaching this state, but it is not there yet.

Re: Linux Running on Apple M1

#183
post #156

Earlier quoted context omitted.

The thing is, many more people are using phone and tablets, than Windows and many more people are using Windows, than Macs and many more people are using Macs, than desktop Linuxes and many more people are using desktop Linuxes, than desktop BSDs. So the anecdata goes against your mountain of anecdata that goes against a world of anecdata from people using those platforms.

Yeah, because when I use a phone or tablet I have to worry about installing my own drivers :-) Apples, oranges.

I last installed drivers on Linux... in 2007? 2008?

I last installed drivers on Windows late last year.

Re: Linux Running on Apple M1

#184

Earlier quoted context omitted.

Funny, that's how I feel with Windows and Mac. I grab a machine and install Linux, and it works more or less out of the box. Maybe a few fixable quirks. And I don't use Thinkpads. I try to use Windows or macos, and it's a coin toss. Windows handling USB like hot garbage (hub balancing/buffer sizes leading to devices unable to activate, webcams glitching, input lagging at random intervals), display issues (macos doesn…

MacOS a coin toss and Linux being robust regarding drivers/hardware support on desktop? Are you talking about Hackintosh, or do we not live on the same planet?

Things like printers/scanners can be a problem. With Mac, I cannot scan on Samsung M2070w MFP in color (with the Samsung/HP driver installed, which must be done manually).

No such problem with Linux.

Re: Linux Running on Apple M1

#185

Earlier quoted context omitted.

A middle finger from Apple would be locking the bootloader–keeping it open, plus providing minimal tooling and telling people to figure it out, is about as close to "we'd love to see what you'll do with it" as Apple could possibly give. (Dealing with the GPU is going to be the majority of the work, I'd think.)

While Correlium is a bit of a minefield for obvious reasons, I don't understand why Apple hasn't blessed Marcan's work. I wouldn't expect them to commit any development resources of their own, but I'd think it would be in their interest to (A) provide Marcan with some documentation and (B) make an engineer available to answer occasional questions. Apple makes money selling hardware, and Linux support will sell more h…

I can't see why they would? Marcan is capable to be sure, but he's also a random guy with a Patreon. Why would Apple ever officially bless his work? I'd sooner seem them collaborating with Corellium, because that at least gives them a corporate entity to interact with. Plus, like, releasing documentation without giving away the stuff they want to keep to themselves, and without promising too much and having it break later, is work in and of itself that Apple is really not getting anything from. I mean, this is the company that still FairPlays apps, so…

Re: Linux Running on Apple M1

#186

Earlier quoted context omitted.

Agreed. Check out the state of Linux support on Intel Macs that were released in and after 2016[1], it's abysmal. Once Apple started adding non-standard hardware, Linux support never caught up. It isn't like the lack of support is Linux developers' fault. Apple doesn't provide datasheets for their hardware, and they don't cooperate with developers writing drivers for their custom hardware. There are hundreds, if not…

> that doesn't mean much because they're actually running Linux forks Many of these Arm SoCs are running linux forks because there are some terrible baked in drivers, and no spec associated with them. Still, that is a step ahead of the M1 as there are at least drivers that don't have to be decompiled and reverse engineered.

These drivers are baked, even if there are specs for them.

The thing is, that these SoCs have no PCIe or other enumerable bus. You (=your kernel) must know what hardware it is running on and which drivers to load without being able to ask the hardware, what is really present. One wrong POKE and the entire system can hang.

And that is on top of the problem, how to boot in the first place. There is not such thing as UEFI on these SoCs. Every single one is a special snowflake with its own special way to boot.

Hence, kernels built for specific systems, even if it is just Device Tree.

Re: Linux Running on Apple M1

#187
post #139

Earlier quoted context omitted.

What instructions from an extended ISA are you referring to? The only ones I've seen written up have been: 1. Instructions to change the memory ordering mode, which allows Rosetta2 to skip some expensive memory fences when translating x86 binaries to ARM. 2. Some instructions for matrix math. I wouldn't expect either of these to affect typical usage or battery life much, unless your workflow involves running things t…

And the former isn't even an instruction, set a single bit in ACTLR_EL1 and off you go. The second is an extension that talks to a coprocessor that's quite application specific. And that has an unstable ISA that changes every year. Probably not the biggest priority for anyone.

Well, four bits: in addition ACTLR_EL1_EnTSO to the kernel also sets ACTLR_EL1_EnAPFLG | ACTLR_EL1_EnAFP | ACTLR_EL1_EnPRSV, whatever those are.

Re: Linux Running on Apple M1

#188
post #84

Linux might run, but good luck with the drivers. And good luck with it keeping working with future upgrades of both, hardware and software. Heck, even today it is pretty difficult to get things working reliably unless it is a thinkpad or some other Linux friendly brand. A Mac with subpar support for a webcam, energy saving, suspend/resume, the trackpad, brightness/volume controls, etc is not a laptop, it's an expensi…

Funny, that's how I feel with Windows and Mac. I grab a machine and install Linux, and it works more or less out of the box. Maybe a few fixable quirks. And I don't use Thinkpads. I try to use Windows or macos, and it's a coin toss. Windows handling USB like hot garbage (hub balancing/buffer sizes leading to devices unable to activate, webcams glitching, input lagging at random intervals), display issues (macos doesn…

>Funny, that's how I feel with Windows and Mac.

Based on...? Apple is pretty straightforward: they support hardware until they don't. And they're quite explicit about ending support and it's almost always a major release. You might be able to hack support after that, but I've literally never had it be a "toss-up" about when Apple was or wasn't supporting their own hardware.

As for Windows... I've got a 10 year old 2600k based desktop that runs the latest version of windows flawlessly. I guess if you go back 20? 30? 40? years you might find something that can't run the latest version of windows, but you're going to be down a really, REALLY obscure rabbit hole. I can't say I ever recall it being a coin toss, it was about 10 seconds on google of finding or not finding a driver.

Linux on the other hand... the support of hardware is awesome, but determining if something is or isn't supported is generally an afternoon of reading mailing lists.

Re: Linux Running on Apple M1

#189
post #84

Linux might run, but good luck with the drivers. And good luck with it keeping working with future upgrades of both, hardware and software. Heck, even today it is pretty difficult to get things working reliably unless it is a thinkpad or some other Linux friendly brand. A Mac with subpar support for a webcam, energy saving, suspend/resume, the trackpad, brightness/volume controls, etc is not a laptop, it's an expensi…

Apple's poor support for Linux on Mac hardware may reverse if the company gains data center ambition for the M1. Partnering with a cloud provider (maybe Microsoft?) to deliver seamless Linux deployment on M1 would be significant...

Re: Linux Running on Apple M1

#190

Earlier quoted context omitted.

Funny, that's how I feel with Windows and Mac. I grab a machine and install Linux, and it works more or less out of the box. Maybe a few fixable quirks. And I don't use Thinkpads. I try to use Windows or macos, and it's a coin toss. Windows handling USB like hot garbage (hub balancing/buffer sizes leading to devices unable to activate, webcams glitching, input lagging at random intervals), display issues (macos doesn…

MacOS a coin toss and Linux being robust regarding drivers/hardware support on desktop? Are you talking about Hackintosh, or do we not live on the same planet?

It's the smaller things. Obviously MacOS won't have trouble with mac hardware, but my work macbook can't wake up my monitor through HDMI, or chain DP displays, or connect to my phone's storage through USB, etc...
Post reply on HN