News: 1611056887

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Barbs exchanged over Linux for M1 Silicon ... lest Apple's lawyers lie in wait

(2021/01/19)


Porting a workable Linux to Apple's new silicon is a modern-day Holy Grail for some. Sadly, it's not all sunshine and rainbows for those undertaking the quest.

Two outfits having a crack at it are [1]Asahi Linux , which has the goal of getting a Linux functioning well enough on the silicon to the point where it could become a daily driver, and Corellium, a Florida-based company that sells virtual Arm-based devices running in the cloud (including iPhones.)

[2]

The latter was founded back in 2017 and its service has proven to be a boon for researchers, [3]with features such an optional jailbreak "for any version".

With that experience under its belt, it was therefore not particularly surprising to see Corellium unveil a port of Linux to Apple's M1 silicon over the weekend.

[4]

We had some spare time today so we ported Linux to the M1. Releasing tomorrow [5]#fridayfun [6]pic.twitter.com/dCrXApyKef — Corellium (@CorelliumHQ) [7]January 16, 2021

Chris Wade, CTO of Corellium, went on to [8]say : "All of @CorelliumHQ's Linux for M1 code will be released under a permissive open-source license and we are actively looking to upstream it into Linux."

The release, which Wade [9]explained was for "advanced users only" due to its early beta state and lacking features such as USB, caused a few raised eyebrows among observers. Some were delighted to see it, but others pondered the apparent lack of a GNU General Public Licence (GPL).

Judge rules Corellium iOS research app 'fair use' in slap to Apple [10]READ MORE

You gotta have standards...

The work was [11]officially welcomed by the Asahi Linux team, but project lead Hector Martin attracted the ire of Wade by noting in a now-deleted tweet that worries about upstream standards meant the work couldn't be used by Asahi (at least in its current state).

Messages from an exchange between Martin and Wade were then posted, in which the latter pointed out that the port had been undertaken "in our own time" and amid somewhat trying circumstances.

Wade was referring to the company's legal woes. Having attempted to acquire Corellium in 2018, Apple had gone on to sue the firm, alleging intellectual property infringement, and [12]unleashed the lawyers the following year . Corellium has been fending off the iGiant ever since.

A judge [13]ruled against the iPhone maker - albeit on only one of Apple's claims in the suit - earlier this month.

The Register has contacted both Wade and Martin to get their take on events and where they feel things are at now.

Wade told us the Corellium gang was keen to lend its expertise to porting efforts. "We have pretty unrivaled understanding of Apple SOCs," he said, "which we relied on to port Android to the iPhone previously, and we had already modelled the A14 chip for our iPhone 12 virtual devices, so we wanted to share that knowledge to give the community a boost in getting Linux running on these new M1 systems."

"We'd really like to thank the engineers at PongoOS and Asahi for their collaboration," he added, "and we hope our contributions help Asahi Linux come to life even faster. We plan on releasing the source today, along with a working version of Linux with SMP and USB support, which we will submit for upstream review."

For his part, Martin declined to comment further on Corellium, aside from noting that "they are free to submit their Linux changes for upstream inclusion directly to kernel subsystem maintainers, or to contact us to contribute."

Unlike the closed world of Apple's mobile chips, Martin added that "the M1 is an open system that allows users to run their own code at all privilege levels on the main CPU core cluster."

As such, no "jailbreaks" or similar techniques are needed.

However, where a bit of reverse engineering is needed (for example, the M1 GPU), Martin explained that third parties were required to follow "the 'clean-room' approach where contributors write documentation which is then implemented by someone else."

He directed us to Asahi Linux's [14]copyright policies and told us "besides complying with all the relevant open source licenses and upstream requirements, we have strict policies regarding reverse engineering."

As for the project itself, he said: "We only became able to test our code last week when Apple released macOS 11.2 Beta 2... and so nearly all code from our project basically represents less than one week of development at this time."

However, "the road to Penguins on the screen will be measured in days," he added, "with a basic graphical environment following in a few weeks."

"I expect us to get much, much further than most people expect before 2021 is over."

As for the to and fro of the weekend, Martin was keen to get back to the grindstone. ®

[15]

One day of drama is more than enough for the next few months, so I've deleted all related tweets; the message has certainly reached those who needed to hear it.

Now back to coding. — Hector Martin (@marcan42) [16]January 17, 2021

Get our [17]Tech Resources



[1] https://asahilinux.org/

[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x250&tile=2&c=2YAcQKwi5bM8RadFwA9JmAgAAAI0&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[3] https://twitter.com/CorelliumHQ/status/951277835095871489

[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x250%7C300x252%7C300x600&tile=3&c=33YAcQKwi5bM8RadFwA9JmAgAAAI0&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dtop%26test%3D0

[5] https://twitter.com/hashtag/fridayfun?src=hash&ref_src=twsrc%5Etfw

[6] https://t.co/dCrXApyKef

[7] https://twitter.com/CorelliumHQ/status/1350275504566370312?ref_src=twsrc%5Etfw

[8] https://twitter.com/cmwdotme/status/1350408583234670595

[9] https://twitter.com/cmwdotme/status/1350661744193110018

[10] https://www.theregister.com/2021/01/04/corellium_ios_ruling/

[11] https://twitter.com/AsahiLinux/status/1350547056679477250

[12] https://www.theregister.com/2019/08/16/apple_files_legal_complaint_against_corellium_claiming_copyright_infringement/

[13] https://www.theregister.com/2021/01/04/corellium_ios_ruling/

[14] https://asahilinux.org/copyright/

[15] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x100%7C300x250%7C300x251&tile=4&c=44YAcQKwi5bM8RadFwA9JmAgAAAI0&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[16] https://twitter.com/marcan42/status/1350788938617655298?ref_src=twsrc%5Etfw

[17] https://whitepapers.theregister.com/

What am I missing here?

Rich 2

There seems to be some animosity between the two parties, but the story doesn't really say why.

Re reverse engineering practice - implying that Wade's team have not followed best practice? Dunno!? The Twatty links didn't say much, but maybe that's because I've disabled all the spy-scripts and stuff

Re: What am I missing here?

Dan 55

The products they've released over the past few years mean they've had to break Apple's special top-secret security several times over which makes Apple look bad and they won't let themselves be bought by Apple either, so the only thing Apple can do is release the lawyers to try and stop them.

Good if

don't you hate it when you lose your account

Your the small percentage of the population who both buy this kit and need linux. But for me it seems expensive indulgence. Horses for courses

Re: Good if

Anonymous Coward

Perhaps the lower power requirements would make it suitable for ARM-based clusters. Of course you'd have to work out if the higher purchase cost would be recouped in savings before they became obsolete...

Re: Good if

Len

The Mac Mini has been popular for build farms for a while now. [1]Thousands of Mac Minis running macOS, Windows or Linux. It means you can natively build your code for that environment but only need to support one hardware type. I don't know if they still do but Mozilla used to have a Mac Mini server farm to produce the three 'Tier 1' flavours of Firefox.

Any build farm worth their salt will probably also be able to change the composition on the fly. Trouble with the Windows build? Just take 10% of the Mac and Linux builders and reboot them into the Windows build process for the day.

Now, obviously I don't expect those users to jump on a Linux distro hacked together by a slightly fly-by-night operation in one week but this is a start. In due course we will probably see mainstream distros running on Apple Silicon and they will have learned from these guys what works and what doesn't.

[1] https://images.idgesg.net/images/article/2018/10/mac-mini-farm-100778822-large.jpg

Look forward to this coming to fruition

Anonymous Coward

Will this be the most performant silicon you can get to run a Linux program on?

Re: Look forward to this coming to fruition

ThomH

The M1 won't be, being Apple's low-end offering. It's extremely competitive within its price segment both in terms of performance and power usage, but you don't have to get to the top of AMD's range before a Threadripper is doing what its name promises.

To put it another way: no, Apple has not bested processors that cost $4,000 standalone with one that comes with an entire computer around it for $700.

That being admitted, I have an M1 Mini and — for a regular, home computer — it's glorious.

Re: Look forward to this coming to fruition

sw guy

Oh, and there are some not cheap chips involved in running Linux and cited in the TOPxxx of high-performance computers

I have no right, by anything I do or say, to demean a human being in his
own eyes. What matters is not what I think of him; it is what he thinks
of himself. To undermine a man's self-respect is a sin.
-- Antoine de Saint-Exupery