Skip to content

Commit

Permalink
add python3 dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
eramons committed Dec 18, 2022
1 parent 7461c12 commit 2fcb207
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 15 deletions.
8 changes: 7 additions & 1 deletion content/post/asahi.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
math = true
date = "2022-10-01T10:00:00+02:00"
title = "Linuxboot with Asahi Linux Kernel on Macbook"
title = "Boot Asahi Kernel with u-root on Macbook"
tags = ["asahi"]
highlight = true

Expand Down Expand Up @@ -194,6 +194,12 @@ eramon@caipirinha:~/dev/u-root$ cp /tmp/initramfs.linux_arm64.cpio ../m1n1/files

Pre-condition: you need to have Python3 installed on the system

In addition to python3, modules _serial_ and _construct_ are necessary:
```
eramon@caipirinha:~/dev/m1n1$ pip3 install construct
eramon@caipirinha:~/dev/m1n1$ pip3 install pyserial
```

Opening the lid of the macbook air is all the preparation we need, since:
* Macbooks boot automatically when opening the lid
* The Options menu does not work anymore, the laptop boots straight to the asahi proxy
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ <h1><a href="/techblog/post/unifi/">Unifi Controller on K3s</a></h1>

<article class="gblog-post">
<header class="gblog-post__header">
<h1><a href="/techblog/post/asahi/">Linuxboot with Asahi Linux Kernel on Macbook</a></h1>
<h1><a href="/techblog/post/asahi/">Boot Asahi Kernel with u-root on Macbook</a></h1>
</header>

<section class="gblog-markdown">
Expand Down
2 changes: 1 addition & 1 deletion docs/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The unifi controller, to manage our two Unifi Access Points The Logitech Media S
</item>

<item>
<title>Linuxboot with Asahi Linux Kernel on Macbook</title>
<title>Boot Asahi Kernel with u-root on Macbook</title>
<link>https://eramons.github.io/techblog/post/asahi/</link>
<pubDate>Sat, 01 Oct 2022 10:00:00 +0200</pubDate>

Expand Down
19 changes: 11 additions & 8 deletions docs/post/asahi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@



<title>Linuxboot with Asahi Linux Kernel on Macbook | Small Technical Blog</title>
<title>Boot Asahi Kernel with u-root on Macbook | Small Technical Blog</title>

<link rel="apple-touch-icon" sizes="180x180" href="/techblog/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/techblog/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/techblog/favicon/favicon-16x16.png">



<meta property="og:title" content="Linuxboot with Asahi Linux Kernel on Macbook" />
<meta property="og:title" content="Boot Asahi Kernel with u-root on Macbook" />
<meta property="og:description" content="Goal:
Boot an Asahi Linux kernel and an u-root initramfs on a water-damaged Apple-Silicon Macbook
At some point I encountered myself with a Macbook Air booting Asahi&rsquo;s m1n1 in proxy mode, without being able to boot MacOS or doing anything else with it, since the power button was fatally damaged.
Expand All @@ -47,7 +47,7 @@


<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Linuxboot with Asahi Linux Kernel on Macbook"/>
<meta name="twitter:title" content="Boot Asahi Kernel with u-root on Macbook"/>
<meta name="twitter:description" content="Goal:
Boot an Asahi Linux kernel and an u-root initramfs on a water-damaged Apple-Silicon Macbook
At some point I encountered myself with a Macbook Air booting Asahi&rsquo;s m1n1 in proxy mode, without being able to boot MacOS or doing anything else with it, since the power button was fatally damaged.
Expand Down Expand Up @@ -90,8 +90,8 @@
"@context": "http://schema.org",
"@type": "BlogPosting",
"articleSection": "post",
"name": "Linuxboot with Asahi Linux Kernel on Macbook",
"headline": "Linuxboot with Asahi Linux Kernel on Macbook",
"name": "Boot Asahi Kernel with u-root on Macbook",
"headline": "Boot Asahi Kernel with u-root on Macbook",
"alternativeHeadline": "",
"description": "Goal:\nBoot an Asahi Linux kernel and an u-root initramfs on a water-damaged Apple-Silicon Macbook\nAt some point I encountered myself with a Macbook Air booting Asahi\u0026rsquo;s m1n1 in proxy mode, without being able to boot MacOS or doing anything else with it, since the power button was fatally damaged.\nIntroduction Why did I buy a Macbook and how I accidentally destroyed it\nEven if I definitely am a Linux-kind-of-person, I got myself an entry-level MacBook Air M1 which should fullfill the following purposes:",
"inLanguage": "en",
Expand Down Expand Up @@ -119,7 +119,7 @@
}
},
"url" : "https:\/\/eramons.github.io\/techblog\/post\/asahi\/",
"wordCount" : "1645",
"wordCount" : "1663",
"genre" : [ "asahi" ]
}
</script>
Expand Down Expand Up @@ -229,7 +229,7 @@



<h1>Linuxboot with Asahi Linux Kernel on Macbook</h1>
<h1>Boot Asahi Kernel with u-root on Macbook</h1>

<div class="gblog-post__meta">
<span class="no-wrap">
Expand Down Expand Up @@ -381,7 +381,10 @@ <h1>Linuxboot with Asahi Linux Kernel on Macbook</h1>
<pre tabindex="0"><code>eramon@caipirinha:~/dev/u-root$ cp /tmp/initramfs.linux_arm64.cpio ../m1n1/files/
</code></pre><div class="gblog-post__anchorwrap"><h3 id="3-boot-the-kernel-with-u-root">3. Boot the kernel with u-root<a data-clipboard-text="https://eramons.github.io/techblog/post/asahi/#3-boot-the-kernel-with-u-root" class="gblog-post__anchor gblog-post__anchor--right clip" aria-label="Anchor 3. Boot the kernel with u-root" href="#3-boot-the-kernel-with-u-root"><svg class="icon link"><use xlink:href="#link"></use></svg></a></h3></div>
<p>Pre-condition: you need to have Python3 installed on the system</p>
<p>Opening the lid of the macbook air is all the preparation we need, since:</p>
<p>In addition to python3, modules <em>serial</em> and <em>construct</em> are necessary:</p>
<pre tabindex="0"><code>eramon@caipirinha:~/dev/m1n1$ pip3 install construct
eramon@caipirinha:~/dev/m1n1$ pip3 install pyserial
</code></pre><p>Opening the lid of the macbook air is all the preparation we need, since:</p>
<ul>
<li>Macbooks boot automatically when opening the lid</li>
<li>The Options menu does not work anymore, the laptop boots straight to the asahi proxy</li>
Expand Down
2 changes: 1 addition & 1 deletion docs/post/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ <h1><a href="/techblog/post/unifi/">Unifi Controller on K3s</a></h1>

<article class="gblog-post">
<header class="gblog-post__header">
<h1><a href="/techblog/post/asahi/">Linuxboot with Asahi Linux Kernel on Macbook</a></h1>
<h1><a href="/techblog/post/asahi/">Boot Asahi Kernel with u-root on Macbook</a></h1>
</header>

<section class="gblog-markdown">
Expand Down
2 changes: 1 addition & 1 deletion docs/post/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The unifi controller, to manage our two Unifi Access Points The Logitech Media S
</item>

<item>
<title>Linuxboot with Asahi Linux Kernel on Macbook</title>
<title>Boot Asahi Kernel with u-root on Macbook</title>
<link>https://eramons.github.io/techblog/post/asahi/</link>
<pubDate>Sat, 01 Oct 2022 10:00:00 +0200</pubDate>

Expand Down
2 changes: 1 addition & 1 deletion docs/tags/asahi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@

<article class="gblog-post">
<header class="gblog-post__header">
<h1><a href="/techblog/post/asahi/">Linuxboot with Asahi Linux Kernel on Macbook</a></h1>
<h1><a href="/techblog/post/asahi/">Boot Asahi Kernel with u-root on Macbook</a></h1>
</header>

<section class="gblog-markdown">
Expand Down
2 changes: 1 addition & 1 deletion docs/tags/asahi/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<copyright>&amp;copy; 2017-2021 E. Ramon</copyright>
<lastBuildDate>Sat, 01 Oct 2022 10:00:00 +0200</lastBuildDate><atom:link href="https://eramons.github.io/techblog/tags/asahi/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Linuxboot with Asahi Linux Kernel on Macbook</title>
<title>Boot Asahi Kernel with u-root on Macbook</title>
<link>https://eramons.github.io/techblog/post/asahi/</link>
<pubDate>Sat, 01 Oct 2022 10:00:00 +0200</pubDate>

Expand Down

0 comments on commit 2fcb207

Please sign in to comment.