OpenWRT Tips

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(Overview)
(Overview)
第5行: 第5行:
 
* [https://blog.ihomura.cn/2018/10/28/%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91%E7%9A%84%E4%B8%80%E7%82%B9%E5%BF%83%E5%BE%97%E2%80%94%E2%80%94%E6%8A%8Afish%E7%A7%BB%E6%A4%8D%E5%88%B0OpenWrt%E4%B8%8A/ 交叉编译的一点心得 —— 把 fish 移植到 OpenWrt 上]
 
* [https://blog.ihomura.cn/2018/10/28/%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91%E7%9A%84%E4%B8%80%E7%82%B9%E5%BF%83%E5%BE%97%E2%80%94%E2%80%94%E6%8A%8Afish%E7%A7%BB%E6%A4%8D%E5%88%B0OpenWrt%E4%B8%8A/ 交叉编译的一点心得 —— 把 fish 移植到 OpenWrt 上]
 
* [https://blog.csdn.net/hui523hui523hui523/article/details/38366427 hello world]
 
* [https://blog.csdn.net/hui523hui523hui523/article/details/38366427 hello world]
 +
* [https://www.openwrtdl.com/wordpress/%e4%bd%bf%e7%94%a8docker%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%baopenwrt%e7%bc%96%e8%af%91%e7%8e%af%e5%a2%83 docker build]
  
 
<br>
 
<br>

2021年2月5日 (五) 17:25的版本

目录

1 Overview


2 编译

$ git clone git://git.openwrt.org/openwrt.git
$ cd openwrt
$ make menuconfig
$ make -j4

更多编译输出:

 $ make V=s 



3 增加软件包

软件包索引存储在 feeds 文件夹中 packages.index 中

在 packages/ 目录中增加新软件包的 Makefile 后,运行:

 scripts/feeds install -a



4 默认开启无线

打开 package/kernel/mac80211/files/lib/wifi/mac80211.sh,找到:

119 $ht_capab
120         # REMOVE THIS LINE TO ENABLE WIFI:
121         option disabled 1

注掉 'option disable 1' ,重新编译即可



5 默认主机名

打开 package/base-files/files/etc/config/system,修改 hostname 后面的内容即可

  1 config system
  2         option hostname OpenWrt          <------- 主机名
  3         option timezone UTC
  4 
  5 config timeserver ntp
  6         list server     0.openwrt.pool.ntp.org
  7         list server     1.openwrt.pool.ntp.org
  8         list server     2.openwrt.pool.ntp.org
  9         list server     3.openwrt.pool.ntp.org
 10         option enable_server 0



6 参考

































个人工具
名字空间

变换
操作
导航
工具箱