2024年11月24日星期日 上午1:02:01

编译x86 OpenWrt固件

7 个月 前
#30866 引用
编译x86 OpenWrt固件
0
7 个月 前
#30867 引用

openwrt源码
https://github.com/openwrt/openwrt.git

#开发分支包含了针对LEDE的最新附加代码, 可能有 实验 或 不稳定 的代码
git clone https://github.com/openwrt/openwrt.git

cd openwrt

# Update the feeds
# 执行以下命令更新包,更新package,否则luci等package通过make menuconfig 不能显示
./scripts/feeds update -a
./scripts/feeds install -a

# Configure the firmware image
make menuconfig

# Optional: configure the kernel (usually not required)
# Don't, unless have a strong reason to
make -j$(nproc) kernel_menuconfig

# Build the firmware image
make -j$(nproc) defconfig download clean world

执行以下命令更新包
./scripts/feeds update -a
./scripts/feeds install -a
更新package,否则luci等package通过make menuconfig 不能显示
配置目标系统
make menuconfig
选择平台为x86


https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem



https://zhuanlan.zhihu.com/p/334419721
0
7 个月 前
#30868 引用

root@debian:~# git clone https://github.com/openwrt/openwrt.git

Cloning into 'openwrt'...
remote: Enumerating objects: 687728, done.
remote: Counting objects: 100% (482/482), done.
remote: Compressing objects: 100% (328/328), done.
remote: Total 687728 (delta 255), reused 267 (delta 137), pack-reused 687246
Receiving objects: 100% (687728/687728), 233.51 MiB | 16.03 MiB/s, done.
Resolving deltas: 100% (463635/463635), done.
0