mirror of
https://github.com/Dichgrem/Blog.git
synced 2025-02-23 05:58:36 -05:00
just push
This commit is contained in:
parent
294408641d
commit
3da3b4d24b
@ -392,6 +392,7 @@ make -j$(nproc) || make -j1 || make -j1 V=s
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Arm平台安装OpenWrt:
|
## Arm平台安装OpenWrt:
|
||||||
|
|
||||||
相比X86平台,arm架构的设备兼容性不高,不能随便找一个包就能安装。以下是一般步骤:
|
相比X86平台,arm架构的设备兼容性不高,不能随便找一个包就能安装。以下是一般步骤:
|
||||||
@ -451,6 +452,31 @@ make menuconfig
|
|||||||
make package/inyn/compile V=s
|
make package/inyn/compile V=s
|
||||||
## 如果不行则需要先编译工具链,即为 make j=4 ,j为CPU核数
|
## 如果不行则需要先编译工具链,即为 make j=4 ,j为CPU核数
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Github Actions 编译OpenWrt
|
||||||
|
|
||||||
|
Github为我们提供了免费的E5主机用来编译。
|
||||||
|
|
||||||
|
- 首先Fork[这个仓库](https://github.com/hugcabbage/shared-lede),可以看到有许多现成的配置,在**顶栏actions里面可以直接启动一个Workflow**来编译。
|
||||||
|
|
||||||
|
- 大体架构是选择**源码 -- 机型 -- 版本 -- 插件/主题 -- 配置(IP/密码/Hostname/编译者)**,由一个config文件管理,这个文件在前面也提到过,可以在本地生成并上传;
|
||||||
|
|
||||||
|
- 想要什么插件可以直接git clone过来原仓库,如果你想要添加其他架构和设备,这里**使用templet里面的init.toml来创建**,按照类似的格式填好;
|
||||||
|
|
||||||
|
- 在actions里面运行produce,注意这需要**GitHub Personal Access Token (PAT)**;如果没有,必须先添加:
|
||||||
|
|
||||||
|
- 打开 GitHub,进入[GitHub Developer Settings](https://github.com/settings/tokens)点击 “Generate new token (classic)”,**勾选所需权限**(最关键的是 repo 和 workflow):✅ repo(所有子权限)✅ workflow✅ read:packages **Token 过期时间**:选择 “No expiration”(不过期),否则过期后需要重新生成。**点击** “Generate token”
|
||||||
|
**复制 Token**(只显示一次,一定要保存好!)
|
||||||
|
|
||||||
|
- 然后添加 **PRODUCE_DEVICE** 到 **GitHub Secrets**,
|
||||||
|
首先进入你的 GitHub 仓库,依次进入:Settings(设置)-
|
||||||
|
Secrets and variables-Actions-New repository secret
|
||||||
|
名称为PRODUCE_DEVICE,值为粘贴刚刚复制的 GitHub Token,点击 “Add secret” 完成添加。
|
||||||
|
|
||||||
|
- 随后在actions里面运行produce,完成后即可出现新架构的编译按钮.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 常用命令:
|
## 常用命令:
|
||||||
```
|
```
|
||||||
# 更新软件列表
|
# 更新软件列表
|
||||||
|
@ -535,6 +535,35 @@
|
|||||||
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>make package/inyn/compile V=s
|
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>make package/inyn/compile V=s
|
||||||
</span><span>## 如果不行则需要先编译工具链,即为 make j=4 ,j为CPU核数
|
</span><span>## 如果不行则需要先编译工具链,即为 make j=4 ,j为CPU核数
|
||||||
</span></code></pre>
|
</span></code></pre>
|
||||||
|
<h2 id="github-actions-bian-yi-openwrt">Github Actions 编译OpenWrt</h2>
|
||||||
|
<p>Github为我们提供了免费的E5主机用来编译。</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<p>首先Fork<a href="https://github.com/hugcabbage/shared-lede">这个仓库</a>,可以看到有许多现成的配置,在<strong>顶栏actions里面可以直接启动一个Workflow</strong>来编译。</p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<p>大体架构是选择<strong>源码 -- 机型 -- 版本 -- 插件/主题 -- 配置(IP/密码/Hostname/编译者)</strong>,由一个config文件管理,这个文件在前面也提到过,可以在本地生成并上传;</p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<p>想要什么插件可以直接git clone过来原仓库,如果你想要添加其他架构和设备,这里<strong>使用templet里面的init.toml来创建</strong>,按照类似的格式填好;</p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<p>在actions里面运行produce,注意这需要<strong>GitHub Personal Access Token (PAT)</strong>;如果没有,必须先添加:</p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<p>打开 GitHub,进入<a href="https://github.com/settings/tokens">GitHub Developer Settings</a>点击 “Generate new token (classic)”,<strong>勾选所需权限</strong>(最关键的是 repo 和 workflow):✅ repo(所有子权限)✅ workflow✅ read:packages <strong>Token 过期时间</strong>:选择 “No expiration”(不过期),否则过期后需要重新生成。<strong>点击</strong> “Generate token”
|
||||||
|
<strong>复制 Token</strong>(只显示一次,一定要保存好!)</p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<p>然后添加 <strong>PRODUCE_DEVICE</strong> 到 <strong>GitHub Secrets</strong>,
|
||||||
|
首先进入你的 GitHub 仓库,依次进入:Settings(设置)-
|
||||||
|
Secrets and variables-Actions-New repository secret
|
||||||
|
名称为PRODUCE_DEVICE,值为粘贴刚刚复制的 GitHub Token,点击 “Add secret” 完成添加。</p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<p>随后在actions里面运行produce,完成后即可出现新架构的编译按钮.</p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
<h2 id="chang-yong-ming-ling">常用命令:</h2>
|
<h2 id="chang-yong-ming-ling">常用命令:</h2>
|
||||||
<pre style="background-color:#151515;color:#e8e8d3;"><code><span># 更新软件列表
|
<pre style="background-color:#151515;color:#e8e8d3;"><code><span># 更新软件列表
|
||||||
</span><span>opkg update
|
</span><span>opkg update
|
||||||
|
BIN
public/pagefind/fragment/en_90b3c09.pf_fragment
Normal file
BIN
public/pagefind/fragment/en_90b3c09.pf_fragment
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_14c8ae5.pf_index
Normal file
BIN
public/pagefind/index/en_14c8ae5.pf_index
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_2b2288b.pf_index
Normal file
BIN
public/pagefind/index/en_2b2288b.pf_index
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_6f239e0.pf_index
Normal file
BIN
public/pagefind/index/en_6f239e0.pf_index
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_ee7b373.pf_index
Normal file
BIN
public/pagefind/index/en_ee7b373.pf_index
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
{"version":"1.3.0","languages":{"en":{"hash":"en_15585e498e","wasm":"en","page_count":101}}}
|
{"version":"1.3.0","languages":{"en":{"hash":"en_9d6333a79d","wasm":"en","page_count":101}}}
|
Binary file not shown.
BIN
public/pagefind/pagefind.en_9d6333a79d.pf_meta
Normal file
BIN
public/pagefind/pagefind.en_9d6333a79d.pf_meta
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user