Debian 13.1 下编译Openwrt24

复制代码
https://www.bilibili.com/video/BV1E6sUz2EK8/?spm_id_from=333.337.search-card.all.click&vd_source=93baf94f0586f7b13d36c97c42181f1f


screen -S apt_scr
screen -r apt_scr

sudo apt update
sudo apt install build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses5-dev libssl-dev \
python3-setuptools rsync swig unzip zlib1g-dev file wget

screen -S build_scr

screen -r build_scr

复制代码
git clone https://git.openwrt.org/openwrt/openwrt.git

cd openwrt

git branch -r

git pull

复制代码
git branch -a
git tag
复制代码
git checkout openwrt-24.10
----git checkout -b v24.10.3 v24.10.3

git branch

./scripts/feeds update -a # 更新软件包列表:

./scripts/feeds install -a # 安装所有软件包:

make menuconfig # 配置编译选项:

make download # 下载依赖包:

make -j1 V=s # 开始编译:

**4. 支持选择性安装**‌ 该命令还支持更精细的控制:

  • `-p <源名称>`:只安装特定源的软件包:

  • `-d <y|m|n>`:为新安装的软件包设置默认值:

  • 可以指定具体的软件包名称而不是使用 `-a` 参数:

如果在执行过程中遇到依赖问题,可能需要安装相应的开发库,比如出现 OpenSSL 相关错误时需要安装 `libssl-dev`。

Update the feeds:

复制代码
./scripts/feeds update -a
./scripts/feeds install -a

make menuconfig

Build the firmware image and packages:

--- make download -j8

复制代码
make defconfig download clean world

After a successful build, the freshly built image(s) and packages can be found below the newly created <buildroot>/bin/targets and <buildroot>/bin/packages directories, respectively. The exact location depends on the target/subtarget (for images) or architecture (for packages):

复制代码
# Assuming a build for a Netgear WNDR3800, an "ath79" target with a "generic" subtarget
# and a "mips_24kc" package architecture

find bin/targets/ -iname "*-sysupgrade.img*"
bin/targets/ath79/generic/openwrt-24.10.2-ath79-generic-netgear_wndr3800-squashfs-sysupgrade.bin

find bin/packages/ -iname "*.ipk"
bin/packages/mips_24kc/packages/mips_24kc/packages/acme_4.0.0_all.ipk
...

----- 编译自己的固件

v19.07.10下 target/linux/cns3xxx/image/Makefile 只有Makefile文件 没有.mk文件

https://github.com/bertofurth/Seagate-Central-Modern-Slot-In-Kernel

相关推荐
便利店102410 小时前
系统活动一抓留存!深入 Linux C/C++ 调试工具之 sysdig
linux·运维·服务器·sysdig
智能运维指南11 小时前
企业 IT 运维自动化平台怎么选?从场景匹配到 POC 验证的完整评估框架
运维·自动化·自动化运维·嘉为蓝鲸
toooooop812 小时前
CentOS 7 内核 3.10.0-1160.119.1 升级指南
linux·运维·centos
云飞云共享云桌面12 小时前
广东东莞制造工厂10人共享一台三维设计服务器
运维·服务器·3d·自动化·制造
kkkkkkkkkk_Z12 小时前
新手自学嵌入式 | 学习日记:Linux驱动复习之系统移植(U-Boot篇)
linux·运维·学习
hz5678913 小时前
企业视频会议系统方案:总部与分支机构高效协同如何落地?
运维·服务器·网络·安全·实时音视频·信息与通信
sun1536902757213 小时前
露天矿边坡滑坡怎么预警?QY-19GNSS 自动化地表位移监测系统介绍
运维·安全·自动化
云计算练习生14 小时前
什么是文件权限?Linux 中 rwx 与数字权限的对应关系
linux·运维·服务器·操作系统·文件权限管理
FY@-@14 小时前
VMware ESXi 7.0 实验全记录:嵌套安装 → 网络配置 → 存储 → Windows 10 虚拟机部署
运维·网络·windows·云计算