{"id":160,"date":"2021-01-17T13:19:57","date_gmt":"2021-01-17T12:19:57","guid":{"rendered":"https:\/\/threedots.ovh\/blog\/?p=160"},"modified":"2021-01-17T13:23:57","modified_gmt":"2021-01-17T12:23:57","slug":"thoughts-on-linux-for-apple-silicon-macs-part-2","status":"publish","type":"post","link":"https:\/\/threedots.ovh\/blog\/2021\/01\/thoughts-on-linux-for-apple-silicon-macs-part-2\/","title":{"rendered":"Thoughts on Linux for Apple Silicon Macs: part 2"},"content":{"rendered":"\n<p>After iBoot, code execution is controlled by us. What should be used as a second stage after that though?<\/p>\n\n\n\n<p>One of the constraints is that servicing such a third-stage boot loader needs to go through macOS Recovery. That means that this stage is <em>not<\/em> easily serviceable.<\/p>\n\n\n\n<p>Running regular kernels would require an abstraction layer in EL2 to hide differences in the underlying hardware. The most likely way would also make virtualisation inaccessible to the kernel as the consequence. As such, this solution isn&#8217;t considered here.<\/p>\n\n\n\n<p>We have multiple choices:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>UEFI<\/li><\/ul>\n\n\n\n<p>Industry-standard, however Apple hardware differences will ensure that regular kernels will not run directly at EL2.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>pongoOS<\/li><\/ul>\n\n\n\n<p>Bespoke boot loader made as part of the checkra1n project. Small preemptive kernel. Of course not a standard.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>m1n1<\/li><\/ul>\n\n\n\n<p>Boot loader being made as part of the Asahi Linux project. Not a standard either.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Linux as a bootloader<\/li><\/ul>\n\n\n\n<p>With kexec(), that&#8217;d be a possibly serious contender that reduces engineering effort. However, it might be a bit too heavyweight for this purpose.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>None<\/li><\/ul>\n\n\n\n<p>With kernel updates needing to go through macOS Recovery in that case, it&#8217;s not a realistic option.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Or, we might want to have <em>two<\/em> boot loader stages past iBoot, one of which could be upgradeable without going through macOS Recovery. For example, that&#8217;d be iBoot2 -&gt; pongoOS -&gt; UEFI.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After iBoot, code execution is controlled by us. What should be used as a second stage after that though? One of the constraints is that servicing such a third-stage boot loader needs to go through macOS Recovery. That means that this stage is not easily serviceable. Running regular kernels would require an abstraction layer in&hellip;&nbsp;<a href=\"https:\/\/threedots.ovh\/blog\/2021\/01\/thoughts-on-linux-for-apple-silicon-macs-part-2\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Thoughts on Linux for Apple Silicon Macs: part 2<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-160","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/posts\/160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/comments?post=160"}],"version-history":[{"count":2,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":162,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions\/162"}],"wp:attachment":[{"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}