News for hackers. Stuff that matters.
[dead]
Re:Asahi Linux for M1 Macs: progress report for September 2021 by dang on Sunday October 10, 2021 @05:14PM (#28822038)
You broke the site guidelines badly with this flamewar. We ban accounts that behave that way, so please don't do anything like that again. More explanation here: https://news.ycombinator.com/item?id=28822026.

We detached this subthread from https://news.ycombinator.com/item?id=28763252.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by marcan_42 on Tuesday October 05, 2021 @02:33PM (#28763603)
Our project's goal is not to produce an "unsupported hack", it's to make these machines work at least as good as, if not better than, any other machine with "actual Linux support" ;-)
Re:Asahi Linux for M1 Macs: progress report for September 2021 by nextos on Tuesday October 05, 2021 @02:52PM (#28763896)
That's cool. Some Macs rank near the top in terms of Linux support and openness. E.g., the MacBook 2,1 is one of the very few laptops supported by Libreboot. Others are totally unusable.

I like Apple hardware (and ThinkPads), but I prefer the openness of Linux (and BSD).

Current MacBook Airs are pretty competitive in terms of price, and the fanless CPU is very appealing. Is it much of a gamble to purchase one now expecting to run mainline Linux in a year or so?

Aside from the new architecture, some components Apple has been using are quite unfriendly. Broadcom wireless cards tend to perform really poorly with open source drivers.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by marcan_42 on Tuesday October 05, 2021 @03:01PM (#28764019)
The Broadcom fullmac cards should be well supported in Linux. I've seen people complain about poor WiFi range and the like on other Macs, but that is almost certainly caused by wrong/mismatched firmware and NvRAM distributed with linux-firmware for those machines. We're going to be using Apple's blobs exactly the same way macOS does, which are tuned to each specific machine and module variant, so radio performance should be identical to macOS.

I wouldn't buy an M1 right now... just because the next generation is likely around the corner :-). But yes, I can't promise all the polish or that every single thing will be upstream, but things should be solidly in the "daily driver" category a year from now. I'd be surprised if there was any non-optional (i.e. excluding accelerators - no idea if anyone cares about the Neural Engine yet...) hardware left without usable support by then. GPU is a big question mark that should become clear in the next month or two as I poke at the kernel side, but honestly I expect solid OpenGL a year from now, at the very least.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by my123 on Tuesday October 05, 2021 @03:14PM (#28764209)
For the user-mode part of the neural engine, https://github.com/geohot/tinygrad/tree/master/accel/ane helps quite a bit today. There is also no generic neural engine support infrastructure at all in user-mode on Linux. :-(

For the kernel mode part, ANE is behind an ASC.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by marcan_42 on Tuesday October 05, 2021 @03:17PM (#28764260)
It's really just a matter of someone caring. I don't see finding myself with enough time to work on that any time soon, but if someone has a good use case for it and motivation to get it done I'm sure it'll happen (and I'll gladly help).

Some things are dodgier - e.g. though supporting the AMX CPU extensions is quite viable in a kernel fork, I'm not sure if that kind of thing would fly upstream. Same with security features like SPRR - not likely to happen. But these aren't really things the average end user has to care about; they're bonus features, not anything core.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by setpatchaddress on Tuesday October 05, 2021 @04:11PM (#28764941)
Just curious: if someone was inclined to build a set of good (correct style, well-documented, etc) patches to support those extensions, why would the kernel refuse them?

(Put another way: I'm wondering whether you think the difficulty is technical or political.)

Re:Asahi Linux for M1 Macs: progress report for September 2021 by marcan_42 on Tuesday October 05, 2021 @04:19PM (#28765043)
It's a bit of both. It basically boils down to it being an invasive change to core kernel code that doesn't have demonstrable benefit to users, and is specific to one platform. If we can point at a specific application and say "look, this speeds up 300% with AMX" then that might help convince people, but there would definitely be quite some political discussion, not in the least because what Apple did is a violation of the architecture.

I'm hoping we can at least push through a prctl to turn on TSO mode for x86 emulation. I think that one will be simple enough and have enough benefits to convince people.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by amluto on Tuesday October 05, 2021 @08:31PM (#28767627)
Getting proper AMX support on _x86_ Linux merged is nasty because of state size issues. I know nothing about ARM64 extended state, but some of the same issues may exist.

(The x86 xstate design is horrible. I doubt that ARM64 is anywhere near as bad.)

Re:Asahi Linux for M1 Macs: progress report for September 2021 by butterisgood on Tuesday October 05, 2021 @02:50PM (#28763856)
All I can say is I wish you luck!
[dead]
Re:Asahi Linux for M1 Macs: progress report for September 2021 by marcan_42 on Tuesday October 05, 2021 @03:08PM (#28764136)
Apple spent countless development hours writing an entire BootPolicy framework to allow other OSes (and self-built macOS kernels) to run on these machines. Not only that, their secureboot implementation implements per-OS security modes, which means you can dual boot Linux with a full secure macOS, including running iOS apps and Netflix in 4K. Can't do that with LineageOS!

Linux on M1 Macs is "supported" exactly the same as Linux on any random PC without manufacturer support. Sure, it's more work to get running, because it's a new undocumented platform... but we've signed up to do the work. If Linux on these machines is an "unsupported hack" then so is Linux on the vast majority of desktop/laptop computers people use.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by webmobdev on Wednesday October 06, 2021 @02:22AM (#28769838)
The only reason this project is getting so much PR is because of Apple. Apple's PR machination is eager to show that developers are fully behind its new Apple Silicon platform, and thus works behind the scenes to give this project the publicity they need. (Everybody knows what happens to platforms that don't see developer support).

But more than that, it is also to spread the fudge that the M1 supports alternative OSes, where as the reality is that it will never support a fully features OS - Apple's business and design goals with the M1 was to create a locked desktop that can only run macOS and only allow other alternate OSes to run using virtualisation on macOS, so that the users data can always be mined. And they have successfully done that.

The developers behind this project are naive to believe that Apple will let them sabotage their efforts to lock down the macOS platform, like the ios platform that earns, that earns them billions of dollars. The locked-down M1 desktops / laptops are just one of the last step towards this goal. As I said elsewhere, just look at what has been happening to the Mac Mini:

1. The first few Intel Mac Minis allowed you some level of customisation of both the hardware (change RAM or HDD / SSD) and software (install other full featured OS).

2. Then came the Mac Minis with soldered RAM and SSD. You could no longer customise the hardware. Software was still customisable and you could still install other OSes. (Recall that Apple even offered free drivers for another OS, i.e. Windows).

3. The current generation of M1 Mini now doesn't allow you to customise both the hardware (everything is soldered) and the software. Technically you can install other OSes, but the reality is that currently only crippled versions of Linux and xBSD is available and practically the only full-featured OS available for it is macOS.

These are clear indicators of how Apple has been working slowly to lockdown the Mac platform like their ios platforms.

The frog is still slowly boiling - https://en.wikipedia.org/wiki/Boiling_frog - to keep you in denial.

Now the only thing that remains is for the bootloader to be locked, and that will the last nail in the coffin of the M1 desktop platform. And it will happen in the near future once the M1 platform reaches a critical adoption point.

(I can understand why the project developers are hostile here to critics like me - the good publicity has been bringing them money, and that's quite rare for an open source projects).

[dead]
Re:Asahi Linux for M1 Macs: progress report for September 2021 by marcan_42 on Tuesday October 05, 2021 @03:14PM (#28764206)
And yet here I am, with Linux on an Intel laptop that can't play video without tearing. Our M1 DCP driver already does that properly.

Support from chip manufacturers doesn't mean you're actually going to end up with a better user experience.

[dead]
Re:Asahi Linux for M1 Macs: progress report for September 2021 by marcan_42 on Tuesday October 05, 2021 @03:36PM (#28764500)
Apple are absolutely not going to do that. That would be illegal. Sony lost a class action over this, and Apple have a lot more to lose in the PR realm than them. Please don't spread FUD like this. Apple have never, not once, locked down a Mac, post facto or otherwise. It always has been a platform open to third party OSes.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by mtone on Tuesday October 05, 2021 @04:54PM (#28765490)
They did it on iOS countless times to prevent rooting the device. Not sure how that's supposed to be different as the tech converges, but I never owned a Mac so that's all I know of Apple.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by floatboth on Tuesday October 05, 2021 @05:01PM (#28765568)
iOS devices never advertised support for booting whatever you want; Macs always did. Very, very different product lines.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by mtone on Tuesday October 05, 2021 @06:01PM (#28766235)
So the 15" M1 laptop will let you custom boot if you manage to decipher its undocumented internals, but the 10" M1 tablet will actively shut down attempts on the next update. Great.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by _xy8h on Tuesday October 05, 2021 @06:29PM (#28766542)
Yep. This seems to be the point the "FUD! FUD!" criers are ignoring.

Apple has a long, continuous history of locking down hardware. Never having a bootloader unlockable iDevice, unibody, glue, soldered on components that are traditionally user replaceable, soldering in displays and backs when people try to repair batteries, serializing the components so you can't even swap official parts.

Apple has never gone in the reverse direction to make components more easily user serviceable. It's always been in the more restrictive direction. More proprietary with every iteration. Now it's the CPU. Bootloader locking on an M1 Macbook is the next logical step.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by floatboth on Tuesday October 05, 2021 @06:35PM (#28766602)
If that is the next logical step why would they go out of their way to design a whole mechanism for running custom kernels?

They could've just released a locked down Macbook in the first place if that was the goal.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by bscphil on Tuesday October 05, 2021 @06:28PM (#28766540)
I'm sympathetic to marcan's points and I don't think Apple is likely to do anything like this, personally, but this argument isn't very convincing. All this means is that they can't release a firmware update blocking use of a third party OS on existing hardware (contra techrat).

OK, great, but we're talking about a manufacturer that makes products designed to go in the rubbish bin 2-4 years after manufacture (witness the half dozen comments by users in this thread saying they have already put their M1 computers in a drawer somewhere!). Apple are constantly iterating, and the goal of a project like Asahi is to stay ahead of the game and continue running on new hardware.

The proper and correct point that techrat should have made is that the second something like Asahi is a threat to Apple for any reason, Apple can release new hardware that's locked down similar to iOS. You'll even have people on this site defending the changes too, in the name of security or something.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by tpmoney on Tuesday October 05, 2021 @09:00PM (#28767839)
If people have “already put their M1 computers in a drawer somewhere” that’s hardly because Apple “designed [the product] to go in the rubbish bin 2-4 years after manufacture”. Apple has a fairly long arm of support for products. The MacBook pros made in 2014 finally this year stopped receiving new os updates (but are still receiving security updates). The iPhone 6s got iOS 15 this year and that’s a 6 year old device. If people are chucking their devices after 2 years that’s on them
Re:Asahi Linux for M1 Macs: progress report for September 2021 by techrat on Tuesday October 05, 2021 @06:45PM (#28766691)
The bigger point that I've been trying to make (regardless of whether or not you think Apple would try to lock down an M1 Macbook) is that I don't trust Apple because of their history.

They have a LONG history of making decisions that ultimately are hostile to the user. Apple also has a history of explicitly locking out Linux users.

https://www.phoronix.com/scan.php?page=news_item&px=Apple-T2...

> It looks like even if disabling the Secure Boot functionality, the T2 chip is reportedly still blocking operating systems aside from macOS and Windows 10.

This is further than Microsoft has ever gone with hardware.

Apple has been dipping their toes into the telemetry and ad tracking waters for a while now. If they see Asahi cutting into those margins because people are buying Apple hardware and installing an OS that prevents them from collecting user data, I can believe they'd see them as a threat.

Why? Again, history. Apple has shut down numerous developers who made "competing" features for iOS via apps in the App Store... even though those developers had the app first before Apple decided to add the features into iOS.

But yeah, something something security something...

Re:Asahi Linux for M1 Macs: progress report for September 2021 by Wowfunhappy on Tuesday October 05, 2021 @08:49PM (#28767749)
Lots of companies have a history of making decisions that are hostile to users. If you avoided all of them, I dare say you'd have a hard time using the internet. This isn't good, but it is the state of the world.

Just buy the hardware you want to use and don't assume it will get better over time. Even if Apple suddenly decided they wanted to lock out other OS's (they won't), they can't remotely update the bootloader if you're running Linux.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by spookthesunset on Tuesday October 05, 2021 @06:26PM (#28766516)
To my knowledge all jailbreaks on iOS are literally exploiting security vulnerabilities that root your phone. Lord knows what these things installed...
Re:Asahi Linux for M1 Macs: progress report for September 2021 by Macha on Tuesday October 05, 2021 @06:51PM (#28766739)
The early ones were often open source, but between competition in the scene and making it harder for Apple to patch them, a lot of the newer ones are not, which makes it a lot harder to trust them.
[dead]
Re:Asahi Linux for M1 Macs: progress report for September 2021 by marcan_42 on Tuesday October 05, 2021 @03:55PM (#28764748)
Of course Apple advertise running your own kernel code on these machines. Here's the official documentation on custom kernel extensions (which are functionally equivalent to allowing other OSes):

https://developer.apple.com/documentation/apple-silicon/inst...

And here's the kmutil manpage that explicitly describes the option they added to support fully custom kernels, which is what we use:

https://keith.github.io/xcode-man-pages/kmutil.8.html

And here's a blog by the head of XNU development at Apple explaining how to build and run your own XNU kernel for these machines:

https://kernelshaman.blogspot.com/2021/02/building-xnu-for-m...

This isn't an accident. This is a documented, explicitly advertised feature that Apple put a significant amount of engineering time into developing.

[dead]
Re:Asahi Linux for M1 Macs: progress report for September 2021 by crad on Tuesday October 05, 2021 @05:35PM (#28765919)
Are you familiar with BootCamp, an explicitly advertised feature to boot into Windows (https://support.apple.com/boot-camp) - They've advertised it quite a bit. They maintain Windows drivers for their hardware.

Re on the M1 specifically, Apple suggests they'd totally be on board should Microsoft put in the effort:

https://www.macrumors.com/2021/09/14/arm-windows-m1-macs-not...

> Apple's software engineering chief Craig Federighi last year said that Windows coming to M1 Macs is "up to Microsoft." The M1 chip contains the core technologies needed to run Windows, but Microsoft has to decide whether to license its Arm version of Windows to Mac users.

I imagine that once Windows on Arm is supported, they'd be totally be on board.

Perhaps if you weren't so hostile in your replies, you'd be down-voted less. You come across as angry.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by _xy8h on Tuesday October 05, 2021 @05:44PM (#28766029)
Bootcamp is not allowing someone to fully boot any OS from the device. It is still a walled garden that limits hardware access, preventing the user from getting full performance out of the device.

> Perhaps if you weren't so hostile in your replies, you'd be down-voted less. You come across as angry.

You get what you read into it.

Majority of my posts are statements of fact yet they get downvoted because there's no placating the Apple horde with the truth.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by kelnos on Tuesday October 05, 2021 @08:09PM (#28767446)
No, you're getting downvoted because you're making combative statements and picking fights over something that doesn't matter. Why do you care so much about this? Even if marcan and the rest of the Asahi folks are wasting their time, it's their time to waste, and in the meantime they're clearly deriving some amount of happiness from doing this work.

Even if you're right that Apple deliberately locks things down so the 4th or 5th or whatever generation of this hardware can't run anything but macOS, this project still has value. Maybe not to you, but it will to lots of people. And that's really all that matters. Your negativity here is a waste of time and is frankly boring and off topic.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by crad on Tuesday October 05, 2021 @06:15PM (#28766403)
> It is still a walled garden that limits hardware access, preventing the user from getting full performance out of the device.

That's not been my experience, but I guess in such circumstances your mileage may vary.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by crad on Tuesday October 05, 2021 @06:14PM (#28766394)
I understand you see it that way, but...

> ... there's no placating the Apple horde with the truth.

Pretty much summarizes what's I was suggesting as hostile.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by wtallis on Tuesday October 05, 2021 @06:04PM (#28766270)
> It is still a walled garden that limits hardware access, preventing the user from getting full performance out of the device.

What limits are you referring to, and by what performance metrics is Boot Camp unable to make full use of the hardware capabilities?

Re:Asahi Linux for M1 Macs: progress report for September 2021 by easton on Tuesday October 05, 2021 @05:16PM (#28765724)
And Microsoft could ask the OEMs to push a UEFI update that enforces secure boot with only the Windows keys. I don’t think they will though.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by CarelessExpert on Tuesday October 05, 2021 @05:32PM (#28765893)
> And Microsoft could ask the OEMs to push a UEFI update that enforces secure boot with only the Windows keys. I don’t think they will though.

Well, let's be fair: They could try, but again, that'd require those OEMs to cooperate. And you'd still end up with folks like System76 and Framework that'd go their own way because nothing can stop a vendor from creating an open x86-based design. They just wouldn't be able to ship Windows pre-installed.

Apple, by contrast, could just do it by fiat because they own the entire ecosystem, and no one could do a damn thing about it.

That's the difference between an open, interoperable ecosystem and a closed one.

I genuinely don't understand the debate, here. Are you seriously trying to claim that the Apple hardware platform and the x86 ecosystem are equally open/closed?

Re:Asahi Linux for M1 Macs: progress report for September 2021 by theodric on Tuesday October 05, 2021 @03:24PM (#28764357)
You're right, we should just give up and devote our time to other things.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by _xy8h on Tuesday October 05, 2021 @03:36PM (#28764504)
What I'm saying is that I feel it's a better use of man hours of open source advocates to code for hardware from companies that support OSS and not one that is viciously hostile to its users.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by marcan_42 on Tuesday October 05, 2021 @03:39PM (#28764556)
I'd much rather reverse engineer proprietary hardware; I get to have fun doing that and I get to play the upstreaming game better than any of those companies that "support open source" that you love so much (have you seen the mess AMD made? They have hundreds of megabytes of autogenerated headers in the Linux tree now!), while working with a team of motivated and experienced developers and working to make everyone's life as pleasant as possible, minimizing churn, red tape, and inefficiency.

Seriously, there's no way I'd be half as happy working at Intel on Linux drivers as I am working on the M1. And it's not like they support external developers either - most of the chip documentation for Intel/AMD stuff is not public. You can't actually build working graphics drivers from their public docs, not even remotely close. Heck, I had to reverse engineer AMD's GPU microcode to get the variant in the PS4 to work. Totally undocumented stuff.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by notriskfree on Thursday October 07, 2021 @11:23AM (#28787524)
I think other operating systems could also benefit from this reverse engineering work as it shows how to create the drivers needed.

If Apple had provided a bunch of binary blobs for Linux, that would have been great - for Linux only.

It will be ironic if the mac mini becomes the most open hardware platform for alternative systems.

[dead]
Re:Asahi Linux for M1 Macs: progress report for September 2021 by marcan_42 on Tuesday October 05, 2021 @03:59PM (#28764801)
I didn't even own any modern Apple hardware until last year. My rationale for supporting these machines is that they're awesome machines, better than anything with Intel/AMD chips, and people should be able to run Linux on them.

Of course, if that doesn't convince you, we can always fall on the fact that you aren't the person writing the code, and in the world of free software you don't get to tell others what they ought to spend their time on.

[dead]
Re:Asahi Linux for M1 Macs: progress report for September 2021 by marcan_42 on Tuesday October 05, 2021 @04:55PM (#28765505)
Well, they do run kooler and quieter than literally every x86 machine I've ever owned, yes ;)
Re:Asahi Linux for M1 Macs: progress report for September 2021 by CarelessExpert on Tuesday October 05, 2021 @03:19PM (#28764298)
> And yet here I am, with Linux on an Intel laptop that can't play video without tearing.

Odd, because here I am with an Intel laptop running Linux that manages that just fine.

> Support from chip manufacturers doesn't mean you're actually going to end up with a better user experience.

Honestly, this is just ridiculous. Go ask the Nouveau folks how their reverse engineering project is going.

I love the drive you guys have, and I wish you the best of luck. But Apple could pull the rug out from under you any time they want in a future hardware rev (either deliberately or accidentally), and all you can do is keep on reverse engineering in the hopes of keeping up.

Edit: Updated pronouns since apparently the OP is one of the project maintainers.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by marcan_42 on Tuesday October 05, 2021 @04:13PM (#28764968)
> Odd, because here I am with an Intel laptop running Linux that manages that just fine.

Then it's not an Ivy Bridge running multiple external displays on KDE.

> Honestly, this is just ridiculous. Go ask the Nouveau folks how their reverse engineering project is going.

Nvidia created an actively hostile firmware situation. We already have the firmware story worked out. Plus having to support a bazillion GPU generations with incompatible interfaces burns people out. We're starting with one, and Apple has a much better track record of incremental change and avoiding hardware churn. This is unique, and we've literally heard from Apple employees that this is an explicit goal. It shows all throughout the SoC design.

> and all you can do is keep on reverse engineering in the hopes of keeping up.

And we will keep on reverse engineering, and we'll keep up :-)

Re:Asahi Linux for M1 Macs: progress report for September 2021 by CarelessExpert on Tuesday October 05, 2021 @04:20PM (#28765070)
> Then it's not an Ivy Bridge running multiple external displays on KDE.

Tiger Lake (whose microarchitecture I just learned is Willow Cove) running Gnome via Wayland (damn HiDPI...), single external display via USB C dock plus an onboard.

More fully, previously I was running a Lenovo X1C5 with Intel integrated graphics. Again, no issues there. In that case I ran Xorg with TearFree enabled.

I'm currently running a Framework sporting an i7-1165G7 with the aforementioned setup.

It was genuinely a little shocking, having spent my earlier days manually hacking modelines in X, to see this hardware come up flawlessly on first boot with Ubuntu 21.04... amazing what a reasonably open hardware ecosystem will enable. jab jab ;)

> We're starting with one, and Apple has a much better track record of incremental change and avoiding hardware churn. This is unique, and we've literally heard from Apple employees that this is an explicit goal. It shows all throughout the SoC design.

Absolutely a fair point! I concede that the reverse engineering story with Apple may very well be less painful than it is with other vendors. Honestly, I hope for your sanity that it is! :D

Re:Asahi Linux for M1 Macs: progress report for September 2021 by kelnos on Tuesday October 05, 2021 @07:58PM (#28767353)
I think it's a little bizarre that you seem to think that just because you have no issues with video tearing on a few different Linux-based setups you've used, no one else possibly could on their (likely pretty different) setup.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by smoldesu on Tuesday October 05, 2021 @06:52PM (#28766751)
I think you're being incredibly reductive with your claims about screen tearing. I've run a 1080p display off my horribly outdated i5 520m, and I never noticed any tearing on it. Same goes for my Skylake notebook, desktop Haswell iGPU and even my old Raspberry Pi from 2014. You may have just gotten extremely unlucky with your hardware.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by kelnos on Tuesday October 05, 2021 @07:59PM (#28767362)
I feel like the "everything works great on my machine, so if it doesn't on yours then you must be really unlucky" argument should have been retired years ago.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by smoldesu on Wednesday October 06, 2021 @09:19AM (#28772807)
On the contrary, I'd argue it's become increasingly relevant in the age of ARM laptops and Windows 11 hardware requirements.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by cyberpunk on Tuesday October 05, 2021 @03:27PM (#28764404)
cough You may as well say “you” instead of “these guys” btw, perhaps a careless mistake but you were speaking to the lead developer of the Asahi effort and I would hazard a guess his views on the Linux kernel and vendor support are a tad more nuanced than “ridiculous”
Re:Asahi Linux for M1 Macs: progress report for September 2021 by CarelessExpert on Tuesday October 05, 2021 @03:29PM (#28764428)
LOL, just because they're running the project, doesn't mean their opinions are sacrosanct or unquestionable.

The statement they made is ridiculous, and I stand by my decision to label it as such.

If you want to explain to me how I'm wrong instead of simply appealing to authority, you're obviously free to do so.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by kelnos on Tuesday October 05, 2021 @08:03PM (#28767388)
You made an absolutist statement that support from a manufacturer will always result in a better user experience than community support only.

That sounds entirely ridiculous and unsupportable to me.

And please don't trot out the "appealing to authority" bit. That absolutely doesn't apply here; when it comes to an opinion about some hardware/software project, I would 100% take the word of the lead developer on that project over a rando on HN who has for some inexplicable reason decided to pick a fight about something they appear to not have any domain knowledge about.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by kelnos on Tuesday October 05, 2021 @07:55PM (#28767325)
By your definition, a lot of the hardware that works on Linux is an "unsupported hack". I don't see why this even matters; if someone -- even if they are not the original manufacturer -- wants to support something, then by definition it is not "unsupported". Whether or not it's a "hack" or not isn't really relevant, and it really sounds like you don't understand the output of a good reverse engineering effort. If it works, then it works.

Hell, most Lenovo, Dell, IBM, etc. laptops don't have official Linux support from their manufacturers. They're also "unsupported". I guess that means everyone should just buy System76, Framework, or Purism, or one of the scant few models that a small minority of the big manufacturers actually support Linux on, right?

> Compare this to where people make a LineageOS release for their mobile device. Still unsupported by the manufacturer, but GPL requirements often mean there's still device code to work with, if not at least the device ROM being released that images can be used to boot another OS.

This is a pretty bad example considering that many phones with LineageOS support still require closed-source binary blobs since the manufacturers don't provide source for everything. If anything, LineageOS is more of a "hack" than the M1 effort, which aims to produce open-source drivers for everything.

> Apple is still one of the only hardware companies who have gone out of their way to prevent Linux from being run on their hardware.

I think you're ascribing to malice that which is driven by indifference. The things Apple does that incidentally make it hard to run Linux on their hardware are probably driven more by lack of caring than any deliberate effort. As marcan pointed out in reply to one of my other comments here, Apple does things because they need to in order to get the features, performance, battery life, cost, and security they want. If the "Linux friendly" way of doing things doesn't jive with that, they'll go their own way.

> As such, I cannot see why open source advocates would continue to try to get any distro running on Apple hardware

Perhaps you just lack imagination? Your motivations (or lack thereof) are not others'. "Open source advocates" do what they do for a wide variety of reasons. And the people who are working on this might not even be "advocates"; maybe they just like Linux and don't like macOS, but love Apple's hardware.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by Wowfunhappy on Tuesday October 05, 2021 @08:53PM (#28767769)
> By your definition, a lot of the hardware that works on Linux is an "unsupported hack". I don't see why this even matters; if someone -- even if they are not the original manufacturer -- wants to support something, then by definition it is not "unsupported". Whether or not it's a "hack" or not isn't really relevant, and it really sounds like you don't understand the output of a good reverse engineering effort. If it works, then it works.

See also: the entire PC industry exists because IBM's BIOS was reverse engineered!

Re:Asahi Linux for M1 Macs: progress report for September 2021 by webmobdev on Wednesday October 06, 2021 @02:07AM (#28769739)
Don't let the downvotes here detract you from posting these thoughts again on HN - it's just an attempt to silence you here, and create an echo chamber that BigTech doesn't do any wrong, and they work as the "market" dictates. Your criticism about Apple are well deserved and factual.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by reacharavindh on Tuesday October 05, 2021 @03:06PM (#28764102)
I understand the subtlety involved in your argument that Apple may and probably will make closed decisions that strictly benefit their own ecosystem even if at cost of making life difficult for those running Linux on this hardware.

However, “Unsupported hack, at best” is pretty dismissive of the engineering effort going on with this. People running Linux on “windows branded PCs” of the not so distant past could have easily said the same thing because Say Dell and Microsoft would be commercially motivated to only keep Windows running on their hardware. However the ecosystem around Linux made things happen such that it is almost a no-brained that most systems you buy _will_ run say Ubuntu with more than reasonable success.

With enough motivation, and the efforts of engineers such as those listed in this article, I bet we might even see better use of Apple hardware than MacOS. Apple might optimise for their stuff, but Linux can bring the power built for other needs(HPC, Real-time systems etc) to the table and can leap over MacOS given the right abstractions. The future is exciting for the hopeful.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by stormbrew on Tuesday October 05, 2021 @03:40PM (#28764557)
> People running Linux on “windows branded PCs” of the not so distant past could have easily said the same thing because Say Dell and Microsoft would be commercially motivated to only keep Windows running on their hardware.

I don't think this needs qualification. It's still true today.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by bscphil on Tuesday October 05, 2021 @06:35PM (#28766597)
We recently purchased a cheap (<$500) Dell Inspiron, and it advertises support for Ubuntu in the specs. Not even one of those fancy XPS "developer edition" laptops or whatever, just an ordinary Inspiron.

It's fine to worry about it (and UEFI was a real threat until Microsoft mandated support for other-os booting), but support for Linux in the PC world has never been as fragile as support for it on Macs. You're entirely at the mercy of Apple's whims; I support the Asahi project, but that's just the truth.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by simonh on Tuesday October 05, 2021 @07:03PM (#28766850)
How did that Inspiron get its Linux support? Principally it was from hard working hackers reverse engineering the components and getting drivers working through painstaking dev test work. Dell then built a machine with hardware they knew worked thanks to all that effort and slapped a “Works with Ubuntu” sticker on it. That’s the sad reality. The idea that the PC platform and it’s peripherals are somehow an open platform paradise is a delusion.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by reacharavindh on Wednesday October 06, 2021 @05:35AM (#28770983)
Exactly. It may actually be in Apple's interest to not actively hinder the hacker community from doing wonders with Apple hardware. After all, a successful ecosystem there will lead to more purchases from Apple!
Re:Asahi Linux for M1 Macs: progress report for September 2021 by simonh on Wednesday October 06, 2021 @10:25AM (#28773561)
In fact the Asahi team has said Apple has done a lot of engineering work making sure M1 can and does support third party OSes. They're not directly contributing to or assisting those projects, but the characterisation that they are actively obstructing them seems false, according to those projects themselves.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by stormbrew on Tuesday October 05, 2021 @02:47PM (#28763818)
Linux on basically every computer platform at least started out as, if not still is, "an unsupported hack". Even on x86 it's pretty questionable to call it supported on the vast majority of PCs out there.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by _xy8h on Tuesday October 05, 2021 @03:03PM (#28764043)
I disagree.

Intel and AMD both contribute heavily to the Linux Kernel. This means that on the vast majority of Intel or AMD based systems, you can boot from USB and have a working system.

Apple doesn't even release documentation on their SOCs.

Apple doesn't use standard, open boot methods to allow other OSes to simply boot from USB. No BIOS/Standard UEFI.

There is a huge chasm between what you can do on the vast majority of PCs out there... and what you have to do to get anything else running on Apple hardware. IF you can get anything running. (Eg, locked bootloaders on iDevices)

Re:Asahi Linux for M1 Macs: progress report for September 2021 by stormbrew on Tuesday October 05, 2021 @03:32PM (#28764464)
Intel and AMD don't make the computer (most of the time). They make the CPU. ARM is as open a CPU platform as x86 is at any rate, so if you're gonna pick your line only based on the CPU there's literally no difference there. But you obviously know that's not all there is.

Most computers anyone can buy are full of components that only have drivers or support in the linux kernel because people reverse engineered them. Most are also full of components that linux only works with because of extracted firmware blobs from other systems.

EFI is more or less an open boot system (which.. you know intel macs used that right?), though with plenty of proprietary extensions and alterations in most booting computers, but the BIOS boot that predated it? Yeah you know that was a proprietary system right? Linux booted off it because people reverse engineered and cloned it until it was forced to be an 'open' thing. It didn't just magically happen one day and IBM even sued about it back in the day.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by randomguy1234 on Tuesday October 05, 2021 @06:53PM (#28766759)
For Linux and BSD, everything has been reverse engineered and hacked from the beginning. Linux has been ported to hundreds of unsupported computing devices. If everyone had your mindset, Linux and BSD would not even exist, only proprietary operating systems would exist. You just don't get it. Linux on M1 is a worthy challenge for the most talented and creative software engineers. If we all just waited passively for manufacturers to provide official support then literally none of the free / open source operating systems would have ever existed.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by CarelessExpert on Tuesday October 05, 2021 @03:24PM (#28764365)
As a bit of meta-commentary, the fact that anyone is even arguing with the points you're making is deeply disappointing to me.

It seems like there's an entire generation of folks out there who can no longer tell the difference between an open technology ecosystem and a closed one...

Re:Asahi Linux for M1 Macs: progress report for September 2021 by stormbrew on Tuesday October 05, 2021 @03:34PM (#28764489)
Hi I grew up with a TRS-80 and a Tandy 1000. I'm not sure what generation you think I'm from but I suspect you're wrong.

What disappoints me is a "generation of folks" who can't tell that openness is a spectrum and that every bit of openness they enjoy was hard-fought for by pushing the boundaries of the platforms that existed beyond their original intentions, and now treat an effort to do the same on new platforms as some kind of windmill tilting.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by CarelessExpert on Tuesday October 05, 2021 @03:38PM (#28764537)
> What disappoints me is a "generation of folks" who can't tell that openness is a spectrum

And Apple is very far on the closed end of that spectrum relative to their competitors, and always has been.

There is simply no arguing this point.

> every bit of openness they enjoy was hard-fought for by pushing the boundaries of the platforms that existed beyond their original intentions, and now treat an effort to do the same on new platforms as some kind of windmill tilting.

Let's be real: Asahi isn't gonna change Apple's corporate culture. It's a super cool technical project and I absolutely applaud these sorts of efforts simply because they're cool.

But you're not the Jedi fighting the empire here. You're not gonna blow open the M1 and suddenly change Apple hearts and minds.

The PC industry became more open for one reason and one reason only: Money.

The IBM monopoly was destroyed because clones were cheap, not because of ragtag freedom fighters.

Linux won over in the embedded space because it doesn't cost anything, not because folks suddenly got stars in their eyes over the GPL.

Apple will only change their practices when economics force them to. But it's very clear that they view a walled garden of hardware and software as key to their financial success, and everything they're doing is intended to build those walls just a little bit higher.

So until you can change that financial equation, nothing in the Apple ecosystem will change.

But, honestly, keep plugging away! Have fun! I personally love repurposing hardware to make it do cool things for which it was never intended. When I see projects like this, I think of Everest: We do it because it's there.

But let's not pretend that you're somehow going to change Apple just because you get the Linux kernel booting on the M1.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by stormbrew on Tuesday October 05, 2021 @03:44PM (#28764611)
Fundamentally, if people with your and the spawner of this thread's attitudes had won the day we wouldn't have any of the things this thread is allegedly about loving so much. That's my main point here.

Also I am not involved in or affiliated with or even a likely user of the Asahi project, to be clear. I just find this attitude incredibly frustrating, and I'm definitely bristling at accused of being a young'un or some shit for believing people can actually do surprising things. I am not the dewy-eyed idealist you seem to think I am, I believe what I'm saying here because I've seen it happen over and over and over again.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by CarelessExpert on Tuesday October 05, 2021 @03:51PM (#28764706)
> I just find this attitude incredibly frustrating

What attitude? The attitude that Apple's hardware is closed and Apple should be criticized for building a walled garden? That we should, where possible, invest in open hardware and technology and put our money where our mouths are, so as to create the kinds of economic incentives that ensure that technology remains open in the future?

Do you really disagree with that?

> I am not the dewy-eyed idealist you seem to think I am, I believe what I'm saying here because I've seen it happen over and over and over again.

What "it" are we talking about here?

What do you think the end game is going to be?

I genuinely have no idea what your argument is, other than to tell me how I'm wrong without providing any specifics regarding how I'm wrong.

Please, enlighten me, I'm happy to listen!

Re:Asahi Linux for M1 Macs: progress report for September 2021 by stormbrew on Tuesday October 05, 2021 @03:55PM (#28764747)
The attitude that pushing on technology that seems hard isn't worth it.

We can do both. We should do both.

At any rate, I'd suggest you go read marcan_'s replies and the OP submitted to HN because the picture you paint and the picture they paint of this platform are not quite the same to begin with. I think the people doing the work deserve a little more credit to describe the platform they're working on.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by CarelessExpert on Tuesday October 05, 2021 @04:05PM (#28764875)
> We can do both. We should do both.

So, other than for the intellectual curiosity (which is absolutely a great reason!), I have a simple question: why?

Edit:

By the way, thinking about it, I have my own answer to this question: So that this hardware can continue to remain useful long after Apple has ended support for it.

Of course, I continue to believe that it's better, now, to simply buy hardware that doesn't need this kind of reverse engineering to ensure longevity, and I steer my hardware purchases accordingly.

But the hardware exists, and people are buying it, so this project is a way to keep it alive after Apple eventually abandons it (which, granted, could be a long time; while I have a lot of problems with Apple, they are very good about continuing to support old gear).

Re:Asahi Linux for M1 Macs: progress report for September 2021 by randomguy1234 on Tuesday October 05, 2021 @10:42PM (#28768576)
> Of course, I continue to believe that it's better, now, to simply buy hardware that doesn't need this kind of reverse engineering to ensure longevity, and I steer my hardware purchases accordingly.

For Linux and BSD, ALL OF IT was hacked and reversed engineered from the beginning. With your stupid mentality we would never have any free operating systems, we would only have proprietary operating systems. This is how its done. New hardware is released, someone hacks it, then its supported. If we are forced to wait like children for manufacturers permission or assistance (which is not actually required) then Linux, BSD, and other free / open source operating systems would never exist.

Linux has been ported to every modern computing device on the planet and this M1 port is par for the course. Only an actual idiot would recommend Linux devs should ignore the M1.

[dead]
Re:Asahi Linux for M1 Macs: progress report for September 2021 by stormbrew on Tuesday October 05, 2021 @03:58PM (#28764788)
Not a "his" thanks.

And no. That is not even remotely my argument.

[dead]
Re:Asahi Linux for M1 Macs: progress report for September 2021 by CarelessExpert on Tuesday October 05, 2021 @04:13PM (#28764964)
Just gonna jump in here and say: not cool. Yours is, to say the least, a disproportionate response and pretty unnecessary.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by fay59 on Tuesday October 05, 2021 @02:52PM (#28763887)
Support can be effective even if it doesn’t come from a first party. As long as someone is signed up to fix your problems, it’s not an unsupported hack.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by matthewmacleod on Tuesday October 05, 2021 @02:50PM (#28763859)
It’s honestly pretty disrespectful to the people who have put a bunch of absolutely amazing work into this project to dismiss it as an “unsupported hack”.

It’s true that we are never going to see first-party support for Linux from Apple. That kind of sucks, and it would be much better for everyone if they had a more open and documented approach to this new platform. But it does at least have explicit support for booting third-party operating systems, and the attitude of the team behind the project is clearly not “hack together a prototype and we are done”.

I guess the point is that it’s not black and white, and there’s a large spectrum between “first-party support” and “unsupported hack”.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by _xy8h on Tuesday October 05, 2021 @03:08PM (#28764127)
Perhaps you should expand your definition of what 'unsupported hack' means instead of taking it as an insult.

I support the work of anyone who gets Linux running on any hardware, I condemn the difficulty in which Apple unnecessarily restricts people from doing what they want with the hardware they own.

It is an unsupported hack because Apple doesn't provide means (such as documentation or code) for people to run what they want. So anything you can do will always end up being a method that Apple may decide to close up with later software updates and everything has to be reverse engineered from scratch.

Contrast this with AMD and Intel code in the Linux Kernel contributed by those companies themselves and being able to just boot from USB using a user accessible BIOS/UEFI loader.

It's Apple's restrictions that make this necessary to be a hack.

Re:Asahi Linux for M1 Macs: progress report for September 2021 by r00fus on Tuesday October 05, 2021 @02:29PM (#28763530)
Makes sense, even as someone who wishes I had an M1 mini lying about (all non-trivial purchases need home CFO approval) I would be hesitant to install Linux on it as I'm not a kernel hacker.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by coldtea on Tuesday October 05, 2021 @02:58PM (#28763966)
Well, this kinda pisses on the work whose progress report is posted here...
Re:Asahi Linux for M1 Macs: progress report for September 2021 by _xy8h on Tuesday October 05, 2021 @03:04PM (#28764058)
No, it doesn't. It pisses on Apple for being an incredibly and unnecessarily restrictive company.
Re:Asahi Linux for M1 Macs: progress report for September 2021 by Syonyk on Tuesday October 05, 2021 @03:00PM (#28763984)
That's absolutely no fun at all!

I've dropped Apple pretty hard (to the point where I've gone back to a flip phone - my objections to Android are significant as well), and I've accepted that if I want to use computers, it's probably best to use weird configurations that are often broken, because it discourages me from spending too much time on them.

I mean, I feel like even using x86 Linux boxes is lazy. :/ This box, currently, is an ODroid N2+ that's working fine. I've got a Raspberry Pi 4 over on the other side of my office (the "solar shed" posted yesterday, for some reason), and I've made that into a nice little desktop too. Still working on Spotify support, and I was actually quite surprised to find out that I can watch something on YouTube today...

My laptop is a PineBook Pro running a custom kernel (I really should push the sleep/resume patches I wrote for the sound card upstream... one of these days...).

Unsupported hacks are fun! They're challenging, and also reduce my dependence on computers, because odds are good that one or more simply don't work at any given moment.

And it's not just computers. The closest thing I have to a "daily driver" (other than the family car, which my wife and kids have priority for) is a 2005 Ural - sidecar motorcycle, evolution on a late 1930s BMW, quite literally the most vile handling thing you'll ever encounter on the road. It works, I work on it, I get places eventually, just no longer at the speed limit.

Anyway, the very insanity of bare metal Linux on the M1 actually appeals an awful lot to me.