From 2542751ede5531f39f89e6ac77883fa89d848bcb Mon Sep 17 00:00:00 2001 From: zyimm Date: Tue, 5 Nov 2024 14:55:32 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20ubuntu=E4=B8=8A=E7=BC=96=E8=AF=91openwr?= =?UTF-8?q?t=E7=9A=84=E8=8B=A5=E5=B9=B2=E9=97=AE=E9=A2=98=E6=8F=90?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _posts/Linux/openwrt/compile.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/_posts/Linux/openwrt/compile.md b/_posts/Linux/openwrt/compile.md index c8b6e43..07e71bc 100644 --- a/_posts/Linux/openwrt/compile.md +++ b/_posts/Linux/openwrt/compile.md @@ -7,7 +7,7 @@ tags: 在ubuntu 24.04上编译openwrt时,出现一些问题,记录一下。 -## OpenWrt根目录镜像小 +## 1.OpenWrt根目录镜像小 编译完的img镜像只有160M,不方便后期安装更多软件,解决如下: @@ -24,7 +24,7 @@ tags: 3.1 squashfs格式的固件,支持在面板内恢复初始状态;ext4格式的固件则不可以; 3.2 ext4格式的固件可以灵活调整分区大小;squashfs格式的固件则不可以; -## libncurses缺失 解决如下 +## 2.libncurses缺失 解决如下 在新的ubuntu 24.04仓库中目前已经没有libncurses这个软件包了,所以需要手动下载安装包 @@ -36,7 +36,7 @@ wget http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.4-2_ sudo apt install lib32ncurses5-dev libncurses5 libncurses5-dev -y ``` -## make defconfig 有什么作用? +## 3.make defconfig 有什么作用? `make defconfig` 用于只提供 `.config` 部分代码片段的默认值补全,也就是用`.config`代码片段 **defconfig** 出完整的`.config`用于编译。简单理解就是不存在的配置项自动补全默认,存在则不更新。常常如下组合使用: @@ -67,7 +67,6 @@ make -j$(nproc) V=s ```sh opkg update - opkg install luci-app-ttyd ```