· 3分で読了

Asahi Linux — Apple M1上でLinuxを動かす

この記事は中国語から自動翻訳されたものです。翻訳によりニュアンスが失われている場合があります。

Asahi Linux

最近Twitter(現X)であるツイートを見かけた。Mac mini、MacBook Air、MacBook Proを含むApple M1マシンへのLinuxポーティングを目指すプロジェクトだ。

Asahi Linux is a project and community with the goal of porting Linux to Apple Silicon Macs, starting with the 2020 M1 Mac Mini, MacBook Air, and MacBook Pro. Our goal is not just to make Linux run on these machines but to polish it to the point where it can be used as a daily OS. Doing this requires a tremendous amount of work, as Apple Silicon is an entirely undocumented platform. In particular, we will be reverse engineering the Apple GPU architecture and developing an open-source driver for it. Asahi Linux was founded by Hector Martin “marcan” after the launch of the first M1 devices.

これはエミュレータや仮想マシンを介したものではなく、Linuxカーネルを直接Apple M1上で動かすものだ。両者では開発の難易度もパフォーマンスも全く異なる。Apple M1の特殊な設計ゆえに、通常のLinuxカーネルをそのままビルドして動かそうとしても正常には動作しない。

Appleが各ドライバのドキュメントを公開してくれるはずもなく、周辺機器のドライバは自作する必要があり、Apple M1のCPUアーキテクチャや内部設計を理解しなければならない。そのため、基本的にはリバースエンジニアリングに頼るしかないのだ。

僕にとってこれはめちゃくちゃクールなことだ。なぜなら、これを実現するにはハードウェアとの通信を理解しているだけでなく、Linuxカーネルをどう修正すべきかを知っている必要があり、しかも完全な手探り状態で進めなければならないからだ。開発コードはすべてオープンソース化されており、Linuxの仕組みやApple M1の設計を理解する上でも非常に役に立つ。

もっとも、この取り組みが惹きつけるのはLinux愛好家や一部のエンジニアくらいだろう。一般ユーザーはもちろん、開発者であってもApple M1上でLinuxを動かす強い動機はなかなかないからだ。しかし、これは「Apple M1でLinuxを動かせる」という新たな可能性を切り開いた。

合法なのか?

公式サイトの解説でも特別にこの件について言及されている:

As long as no code is taken from macOS to build the Linux support, the result is completely legal to distribute and for end-users to use, as it would not be a derivative work of macOS. Please see our Copyright & Reverse Engineering Policy for more information.

macOSのコードを使用していない限り、macOSの二次的著作物にはあたらないため、配布することもエンドユーザーが使用することも完全に合法である。

ただネットの声によると、合法かどうかと、Appleが訴えてくるかどうかはまた別の話らしいが

関連リソース

関連記事

他のトピックを探索