OpenWrt 固件构建

清夏晚风

自行编译

本文不会介绍自行编译 OpenWrt 固件的方法,因为这需要一定的技术知识和经验。

云编译

云编译是指在云端进行编译,无需本地搭建编译环境。这种方法简单快捷,适用于没有强大计算资源的用户。

云编译服务

目前有很多云编译服务,如:

  • Kwrt:https://openwrt.ai/ (适合中国宝宝体制,基本免费。最新分支: 25.12-SNAPSHOT 内核: 6.12.62)

本文以Kwrt云编译为基础。

准备工作

  • 访问Kwrt官网并注册账号
  • 选择你的设备型号

image-20260110213737811

自定义软件包

在云编译过程中,用户可以自定义软件包,以满足特定需求。例如,用户可以添加自己的软件包,或从 OpenWrt 软件包仓库中选择软件包。

以下是Kwrt出厂自带的软件包,你无法设置:

1
autocore base-files bash block-mount ca-bundle coremark curl dnsmasq-full dropbear ds-lite firewall4 fitblk fstools htop kmod-gpio-button-hotplug kmod-leds-gpio kmod-lib-zstd kmod-mt7622-firmware kmod-mt7915-firmware kmod-tcp-bbr libc libgcc libustream-mbedtls logd luci-app-advancedplus luci-app-fan luci-app-filemanager luci-app-firewall luci-app-package-manager luci-app-syscontrol luci-app-upnp luci-app-wizard luci-base luci-compat luci-lib-fs luci-lib-ipkg luci-proto-wireguard mtd nano netifd odhcp6c odhcpd-ipv6only openssh-sftp-server opkg ppp ppp-mod-pppoe resolveip swconfig uboot-envtools uci uclient-fetch urandom-seed urngd wget-ssl wpad-basic-mbedtls zram-swap

在出厂自带的软件包下方,你可以点击选择你需要的软件包:

image-20260110214042941

其余配置信息根据自身需求配置即可。

  • 旁路由模式可能需要关闭DHCP
  • 去除作者外链需要付费

注意事项

  • 云编译服务通常有时间限制,用户需要在规定时间内完成编译。
  • 云编译服务通常有流量限制,用户需要注意不要超出流量限制。
  • 云编译服务通常有费用,用户需要注意支付费用。
  • Title: OpenWrt 固件构建
  • Author: 清夏晚风
  • Created at : 2026-01-10 21:28:32
  • Updated at : 2026-01-13 16:48:23
  • Link: https://blog.kimikkorow.eu.org/计算机基础/操作系统相关/操作系统使用相关/Linux/OpenWrt/OpenWrt固件构建/01.OpenWrt固件构建/
  • License: This work is licensed under CC BY-NC-SA 4.0.