openwrt 编译
1. 编译单个套件 make package/cups/{clean,compile,install} V=s
再make image
2. 全编
make V=s
3. 编译的时候查找错误
make V=s 2>&1 | tee build.log | grep -i '[^_-"a-z]error[^_-.a-z]'
4. clean
make clean:删除/bin和/build_dr,而不会删除/targt
make distclean:删除所有已经编译的,以及下载的feeds和packets,.config文件也会被删掉
make target/linux/clean:删除linux
make package/base-files/clean:删除packets
make package/luci/clean:删除luci
软件包安装快速入门
将OpenWrt/LEDE固件刷入设备后,您可以通过SSH或LuCi使用'opkg'软件包管理器中安装其他软件包:
SSH:
-
使用SSH登录。
-
在命令行中运行一次 opkg update 命令以便从OpenWrt在线软件存储库中提取可用软件包的新列表。
-
运行 opkg list 以显示可用软件包的列表(该列表对每个包也有一个非常简短的注释)。
-
运行 opkg list | grep 'searchterm' 可以过滤软件包列表,仅显示名称或注释中包含'searchterm'的软件包。
-
运行 opkg install packagename 以安装列表中对应名称的软件包。
-
运行 opkg remove packagename 以卸载对应名称的软件包。
LuCi Web GUI:
-
LuCi(http:您的设备IP)提供了用于安装其他软件包的图形用户界面(GUI)。
-
请注意,许多软件包有可选的LuCi GUI,但如果您需要额外的图形用户界面,通常需要安装额外的软件包。