English | 中文
A template for building OpenWrt with GitHub Actions
- Click the Use this template button to create a new repository.
- Generate
.config
files using Lean's OpenWrt source code. ( You can change it through environment variables in the workflow file. ) - Push
.config
file to the GitHub repository. - Select
Build OpenWrt
on the Actions page. - Click the
Run workflow
button. - When the build is complete, click the
Artifacts
button in the upper right corner of the Actions page to download the binaries.
- It may take a long time to create a
.config
file and build the OpenWrt firmware. Thus, before create repository to build your own firmware, you may check out if others have already built it which meet your needs by simply searchActions-Openwrt
in GitHub. - Add some meta info of your built firmware (such as firmware architecture and installed packages) to your repository introduction, this will save others' time.
- Microsoft Azure
- GitHub Actions
- OpenWrt
- Lean's OpenWrt
- tmate
- mxschmitt/action-tmate
- csexton/debugger-action
- Cowtransfer
- WeTransfer
- Mikubill/transfer
- softprops/action-gh-release
- ActionsRML/delete-workflow-runs
- dev-drprasad/delete-older-releases
- peter-evans/repository-dispatch
https://github.com/jacelift/OneCloud-OpenWRT-Image-Builder
- 建议使用Lean的OpenWRT源
- 编译环境的搭建与编译方法见其说明
Target System
选择Broadcom BCM27xx
,Subtarget
选择BCM2710 boards (64 bit)
,Target Profile
选择Raspberry Pi 2B-1.2/3B/3B+/3CM
Target Image
需要勾选ext4
- 编译之后的镜像:
bin/targets/brcm2708/bcm2710/openwrt-brcm2708-bcm2710-rpi-3-ext4-factory.img.gz
- 解压:
gunzip openwrt-brcm2708-bcm2710-rpi-3-ext4-factory.img.gz
得到OpenWRT的镜像文件:openwrt-brcm2708-bcm2710-rpi-3-ext4-factory.img
初始配置与程序在files
文件夹下:
etc/modules.d/wireless_enable
:无线硬件的设置,原地址https://github.com/maxlicheng/phicomm-n1-wireless,不要删除etc/config/network
:网络接口配置,默认IP为192.168.1.254
,网关192.168.1.1
,DNS114.114.114.114
etc/config/dhcp
:DHCP配置,默认关闭DHCP服务etc/config/wireless
:无线网络配置,默认关闭无线网络
etc/config
下的文件可以删除,路由第一次启动会自动生成默认的配置文件。
可以把当前路由的备份文件合并到files
中。