Skip to content

Commit 2147bff

Browse files
committed
Blog: QEMU, U-Boot and swtpm
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
1 parent 8d33bb2 commit 2147bff

19 files changed

+1725
-44
lines changed

EFI TCG2 protocol in U-Boot and QEMU.html

Lines changed: 549 additions & 0 deletions
Large diffs are not rendered by default.

Protected UEFI variables with U-Boot.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727

2828

29+
2930

3031

3132
<meta name="author" content="Ilias Apalodimas" />
@@ -88,6 +89,11 @@ <h1>
8889
<i class="fab fa-linkedin"></i>
8990
</a>
9091
</li>
92+
<li>
93+
<a class="sc-twitter" href="https://www.twitter.com/_apalos" target="_blank">
94+
<i class="fab fa-twitter"></i>
95+
</a>
96+
</li>
9197
</ul>
9298
</div>
9399

@@ -159,7 +165,8 @@ <h2><strong>Less code to the rescue</strong></h2>
159165
<p><a href="https://github.com/OP-TEE/optee_os/commit/42471ecf25b7/" target="_blank">OP-TEE</a>
160166
and
161167
<a href="https://github.com/u-boot/u-boot/commit/f042e47e8fb4/" target="_blank">U-Boot</a>
162-
already got patches for that and EDK2 patches are currently on upstream review.</p>
168+
already got patches for that and EDK2 patches are currently <s>on upstream review</s>
169+
upstreamed.</p>
163170
<h2><strong>Combining it all together</strong></h2>
164171
<p>So far I've talked about variable management and internal details of Arm's Secure World. We've also
165172
managed to run StandAloneMM as part of OP-TEE, but who's responsible for reading and storing the
@@ -184,11 +191,11 @@ <h3><strong>Building TFA</strong></h3>
184191

185192
<h3><strong>Building EDK2</strong></h3>
186193
<p>At the time of this article the EDK2 patchset is under review</p>
187-
<div class="highlight"><pre><span></span><code>git clone https://git.linaro.org/people/ilias.apalodimas/edk2.git -b ffa_svc_optional_on_upstream
188-
git clone https://git.linaro.org/people/ilias.apalodimas/edk2-platforms.git -b ffa_svc_optional_on_upstream
194+
<div class="highlight"><pre><span></span><code>git clone https://github.com/tianocore/edk2.git
195+
git clone https://github.com/tianocore/edk2-platforms.git
189196
<span class="nb">export</span> <span class="nv">WORKSPACE</span><span class="o">=</span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>
190197
<span class="nb">export</span> <span class="nv">PACKAGES_PATH</span><span class="o">=</span><span class="nv">$WORKSPACE</span>/edk2:<span class="nv">$WORKSPACE</span>/edk2-platforms
191-
<span class="nb">export</span> <span class="nv">ACTIVE_PLATFORM</span><span class="o">=</span><span class="s2">&quot;Platform/StMMRpmb/PlatformStandaloneMm.dsc&quot;</span>
198+
<span class="nb">export</span> <span class="nv">ACTIVE_PLATFORM</span><span class="o">=</span><span class="s2">&quot;Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc&quot;</span>
192199
<span class="nb">export</span> <span class="nv">GCC5_AARCH64_PREFIX</span><span class="o">=</span>aarch64-linux-gnu-
193200
<span class="nb">pushd</span> edk2/
194201
git submodule init <span class="o">&amp;&amp;</span> git submodule update --init --recursive
@@ -363,6 +370,5 @@ <h2><strong>Next Steps</strong></h2>
363370
}
364371
</script>
365372

366-
367373
</body>
368374
</html>

archives.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727

2828

29+
2930

3031

3132
<meta name="author" content="Ilias Apalodimas" />
@@ -76,6 +77,11 @@ <h1>
7677
<i class="fab fa-linkedin"></i>
7778
</a>
7879
</li>
80+
<li>
81+
<a class="sc-twitter" href="https://www.twitter.com/_apalos" target="_blank">
82+
<i class="fab fa-twitter"></i>
83+
</a>
84+
</li>
7985
</ul>
8086
</div>
8187

@@ -100,6 +106,11 @@ <h1 id="archives">Archives</h1>
100106
<div>
101107
<dl>
102108

109+
<dt>Tue 31 August 2021</dt>
110+
111+
<dd>
112+
<a href="https://apalos.github.io/EFI TCG2 protocol in U-Boot and QEMU.html">EFI TCG2 protocol in U-Boot and QEMU</a>
113+
</dd>
103114
<dt>Sat 19 December 2020</dt>
104115

105116
<dd>
@@ -130,6 +141,5 @@ <h1 id="archives">Archives</h1>
130141
}
131142
</script>
132143

133-
134144
</body>
135145
</html>

author/ilias-apalodimas.html

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727

2828

29+
2930

3031

3132
<meta name="author" content="Ilias Apalodimas" />
@@ -76,6 +77,11 @@ <h1>
7677
<i class="fab fa-linkedin"></i>
7778
</a>
7879
</li>
80+
<li>
81+
<a class="sc-twitter" href="https://www.twitter.com/_apalos" target="_blank">
82+
<i class="fab fa-twitter"></i>
83+
</a>
84+
</li>
7985
</ul>
8086
</div>
8187

@@ -95,6 +101,27 @@ <h1>
95101

96102

97103

104+
<article>
105+
<header>
106+
<h2><a href="https://apalos.github.io/EFI TCG2 protocol in U-Boot and QEMU.html#EFI TCG2 protocol in U-Boot and QEMU">EFI TCG2 protocol in U-Boot and QEMU</a></h2>
107+
<p>
108+
Posted on Tue 31 August 2021 in <a href="https://apalos.github.io/category/uefi.html">UEFI</a>
109+
110+
&#8226; Tagged with
111+
<a href="https://apalos.github.io/tag/bootloaders.html">Bootloaders</a>, <a href="https://apalos.github.io/tag/security.html">Security</a>, <a href="https://apalos.github.io/tag/u-boot.html">U-Boot</a>, <a href="https://apalos.github.io/tag/uefi.html">UEFI</a>, <a href="https://apalos.github.io/tag/tpm.html">TPM</a>
112+
&#8226; 5 min read
113+
</p>
114+
</header>
115+
<div>
116+
<p>TPMs are starting to play an important role in system security and integrity. <br>So let's take a look on the latest U-Boot additions enabling TPMs when booting with UEFI</p>
117+
<br>
118+
<a class="btn"
119+
href="https://apalos.github.io/EFI TCG2 protocol in U-Boot and QEMU.html#EFI TCG2 protocol in U-Boot and QEMU">
120+
Continue reading
121+
</a>
122+
</div>
123+
<hr />
124+
</article>
98125
<article>
99126
<header>
100127
<h2><a href="https://apalos.github.io/Protected UEFI variables with U-Boot.html#Protected UEFI variables with U-Boot">Protected UEFI variables with U-Boot</a></h2>
@@ -142,6 +169,5 @@ <h2><a href="https://apalos.github.io/Protected UEFI variables with U-Boot.html#
142169
}
143170
</script>
144171

145-
146172
</body>
147173
</html>

authors.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727

2828

29+
2930

3031

3132
<meta name="author" content="Ilias Apalodimas" />
@@ -76,6 +77,11 @@ <h1>
7677
<i class="fab fa-linkedin"></i>
7778
</a>
7879
</li>
80+
<li>
81+
<a class="sc-twitter" href="https://www.twitter.com/_apalos" target="_blank">
82+
<i class="fab fa-twitter"></i>
83+
</a>
84+
</li>
7985
</ul>
8086
</div>
8187

@@ -99,7 +105,7 @@ <h1 id="authors">Authors</h1>
99105
</header>
100106
<div>
101107
<ul class="list">
102-
<li><a href="https://apalos.github.io/author/ilias-apalodimas.html">Ilias Apalodimas</a> (1)</li>
108+
<li><a href="https://apalos.github.io/author/ilias-apalodimas.html">Ilias Apalodimas</a> (2)</li>
103109
</ul>
104110
</div>
105111
</article>
@@ -125,6 +131,5 @@ <h1 id="authors">Authors</h1>
125131
}
126132
</script>
127133

128-
129134
</body>
130135
</html>

categories.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727

2828

29+
2930

3031

3132
<meta name="author" content="Ilias Apalodimas" />
@@ -76,6 +77,11 @@ <h1>
7677
<i class="fab fa-linkedin"></i>
7778
</a>
7879
</li>
80+
<li>
81+
<a class="sc-twitter" href="https://www.twitter.com/_apalos" target="_blank">
82+
<i class="fab fa-twitter"></i>
83+
</a>
84+
</li>
7985
</ul>
8086
</div>
8187

@@ -100,7 +106,7 @@ <h1 id="categories">Categories</h1>
100106
<div>
101107
<ul class="list">
102108
<li>
103-
<a href="https://apalos.github.io/category/uefi.html">UEFI</a> (1)
109+
<a href="https://apalos.github.io/category/uefi.html">UEFI</a> (2)
104110
</li>
105111
</ul>
106112
</div>
@@ -127,6 +133,5 @@ <h1 id="categories">Categories</h1>
127133
}
128134
</script>
129135

130-
131136
</body>
132137
</html>

category/uefi.html

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727

2828

29+
2930

3031

3132
<meta name="author" content="Ilias Apalodimas" />
@@ -76,6 +77,11 @@ <h1>
7677
<i class="fab fa-linkedin"></i>
7778
</a>
7879
</li>
80+
<li>
81+
<a class="sc-twitter" href="https://www.twitter.com/_apalos" target="_blank">
82+
<i class="fab fa-twitter"></i>
83+
</a>
84+
</li>
7985
</ul>
8086
</div>
8187

@@ -95,6 +101,27 @@ <h1>
95101

96102

97103

104+
<article>
105+
<header>
106+
<h2><a href="https://apalos.github.io/EFI TCG2 protocol in U-Boot and QEMU.html#EFI TCG2 protocol in U-Boot and QEMU">EFI TCG2 protocol in U-Boot and QEMU</a></h2>
107+
<p>
108+
Posted on Tue 31 August 2021 in <a href="https://apalos.github.io/category/uefi.html">UEFI</a>
109+
110+
&#8226; Tagged with
111+
<a href="https://apalos.github.io/tag/bootloaders.html">Bootloaders</a>, <a href="https://apalos.github.io/tag/security.html">Security</a>, <a href="https://apalos.github.io/tag/u-boot.html">U-Boot</a>, <a href="https://apalos.github.io/tag/uefi.html">UEFI</a>, <a href="https://apalos.github.io/tag/tpm.html">TPM</a>
112+
&#8226; 5 min read
113+
</p>
114+
</header>
115+
<div>
116+
<p>TPMs are starting to play an important role in system security and integrity. <br>So let's take a look on the latest U-Boot additions enabling TPMs when booting with UEFI</p>
117+
<br>
118+
<a class="btn"
119+
href="https://apalos.github.io/EFI TCG2 protocol in U-Boot and QEMU.html#EFI TCG2 protocol in U-Boot and QEMU">
120+
Continue reading
121+
</a>
122+
</div>
123+
<hr />
124+
</article>
98125
<article>
99126
<header>
100127
<h2><a href="https://apalos.github.io/Protected UEFI variables with U-Boot.html#Protected UEFI variables with U-Boot">Protected UEFI variables with U-Boot</a></h2>
@@ -142,6 +169,5 @@ <h2><a href="https://apalos.github.io/Protected UEFI variables with U-Boot.html#
142169
}
143170
</script>
144171

145-
146172
</body>
147173
</html>

0 commit comments

Comments
 (0)