<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Key on Capy&#39;s Blog</title>
    <link>https://capy.cx/tags/key/</link>
    <description>Recent content in Key on Capy&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 03 May 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://capy.cx/tags/key/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>自制 Yubikey-为树莓派 Pico RP2350 编译与烧录 Pico FIDO2 固件</title>
      <link>https://capy.cx/posts/4/</link>
      <pubDate>Sun, 03 May 2026 00:00:00 +0000</pubDate>
      <guid>https://capy.cx/posts/4/</guid>
      <description>&lt;h1 id=&#34;前言&#34;&gt;&#xA;  前言&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e5%89%8d%e8%a8%80&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;p&gt;最近想要买一个实体物理密钥，关注到了Yubikey，发现已经贵的离谱了（参考它之前促销的价格），而且中国大陆地区还无法直接收到（即使海外，也要10美金），转运+运费+售价，已经是天价了，国内淘宝平台卖的更贵。&lt;/p&gt;&#xA;&lt;p&gt;所以就在Google上搜索有没有平替。就搜索到了这篇&lt;a href=&#34;https://blog.lyc8503.net/post/diy-fido-key/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;文章&lt;/a&gt; 但由于过了一年多，项目发生了一些变化。&lt;a href=&#34;https://github.com/polhenarejos/pico-fido&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;原项目&lt;/a&gt;因为作者想要&lt;del&gt;商业化&lt;/del&gt;圈钱，故发售了许可证，30欧元/设备，这个价格和去购买成品Yubikey几乎没有什么区别了。甚至这只是一个许可证。&lt;/p&gt;&#xA;&lt;p&gt;如果想要实现fido2+openpgp的，原作者支持此功能的的pico-fido2不提供代码并且需要付费licence，但是开源社区有一个亲测可用的&lt;a href=&#34;https://github.com/librekeys/pico-fido2&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Fork&lt;/a&gt;，因此本教程都是基于此Fork所进行。&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;硬件选择&#34;&gt;&#xA;  硬件选择&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e7%a1%ac%e4%bb%b6%e9%80%89%e6%8b%a9&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;在2026年的今天，目前有且仅有推荐RP2350&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h1 id=&#34;准备工作&#34;&gt;&#xA;  准备工作&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e5%87%86%e5%a4%87%e5%b7%a5%e4%bd%9c&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;硬件&lt;/strong&gt;：RP2350 树莓派开发版&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;系统&lt;/strong&gt;：最好使用Windows 11/Linux&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;网络&lt;/strong&gt;：能够正常访问 GitHub。&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;第一阶段安装与配置-wsl-windows-本地-linux-子系统-若使用linux跳转至此&#34;&gt;&#xA;  第一阶段：安装与配置 WSL (Windows 本地 Linux 子系统) 若使用Linux跳转&lt;a href=&#34;#%e7%ac%ac%e4%ba%8c%e9%98%b6%e6%ae%b5%e6%90%ad%e5%bb%ba%e5%ba%95%e5%b1%82%e7%bc%96%e8%af%91%e7%8e%af%e5%a2%83&#34; &gt;至此&lt;/a&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e7%ac%ac%e4%b8%80%e9%98%b6%e6%ae%b5%e5%ae%89%e8%a3%85%e4%b8%8e%e9%85%8d%e7%bd%ae-wsl-windows-%e6%9c%ac%e5%9c%b0-linux-%e5%ad%90%e7%b3%bb%e7%bb%9f-%e8%8b%a5%e4%bd%bf%e7%94%a8linux%e8%b7%b3%e8%bd%ac%e8%87%b3%e6%ad%a4&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;由于嵌入式编译在 Linux 环境下最为稳定和友好，我们将使用微软官方的 WSL 工具，在 Windows 中直接无缝运行一个 Ubuntu Linux 系统。&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;右键点击 Windows 的“开始”按钮，选择 &lt;strong&gt;Windows PowerShell (管理员)&lt;/strong&gt; 或 &lt;strong&gt;终端 (管理员)&lt;/strong&gt;。&lt;/li&gt;&#xA;&lt;li&gt;在弹出的蓝色或黑色窗口中，输入以下命令并回车：&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&#xA;&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;wsl --install&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;系统会自动下载并安装 WSL 核心组件以及默认的 Ubuntu 发行版。&lt;/li&gt;&#xA;&lt;li&gt;安装完成后，&lt;strong&gt;重启你的电脑&lt;/strong&gt;。&lt;/li&gt;&#xA;&lt;li&gt;重启后，系统通常会自动弹出一个名为 &amp;ldquo;Ubuntu&amp;rdquo; 的命令行窗口。如果没有自动弹出，请在 Windows 开始菜单中搜索 &amp;ldquo;Ubuntu&amp;rdquo; 并打开它。&lt;/li&gt;&#xA;&lt;li&gt;首次启动需要等待一两分钟解压文件。&lt;/li&gt;&#xA;&lt;li&gt;随后，系统会提示你创建一个 Linux 用户名 (Enter new UNIX username) 和密码 (New password)。&lt;/li&gt;&#xA;&lt;li&gt;看到绿色的命令提示符（例如 &lt;code&gt;username@hostname:~$&lt;/code&gt;），说明你的 Linux 环境已经搭建完毕&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;第二阶段搭建底层编译环境&#34;&gt;&#xA;  第二阶段：搭建底层编译环境&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e7%ac%ac%e4%ba%8c%e9%98%b6%e6%ae%b5%e6%90%ad%e5%bb%ba%e5%ba%95%e5%b1%82%e7%bc%96%e8%af%91%e7%8e%af%e5%a2%83&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;接下来的所有命令，都请在刚刚打开的 &lt;strong&gt;Ubuntu 终端&lt;/strong&gt; 中执行。我们将安装交叉编译工具链和官方开发包。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
