Skip to content

Commit 2ad11e2

Browse files
committed
Updated openwrt
1 parent 7ab5a1a commit 2ad11e2

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

openwrt/README.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
openwrt目录结构,其中第一行是原始目录,第二行是编译过程中生成的目录。各目录的作用是:
1+
# openwrt 目录结构
2+
3+
各目录的作用是:
24

35
- tools - 编译时需要一些工具, tools里包含了获取和编译这些工具的命令。里面是一些Makefile,有的可能还有patch。每个Makefile里都有一句 $(eval $(call HostBuild)),表示编译这个工具是为了在主机上使用的。
46
- toolchain - 包含一些命令去获取kernel headers, C library, bin-utils, compiler, debugger
@@ -14,6 +16,7 @@ openwrt目录结构,其中第一行是原始目录,第二行是编译过程
1416

1517
- bin - 编译完成之后,firmware和各ipk会放到此目录下。
1618

19+
## feeds.conf.default
1720

1821
# 下载
1922

@@ -35,12 +38,12 @@ cd openwrt
3538
./scripts/feeds update -a
3639
./scripts/feeds install -a
3740

38-
# 配置编译选项
41+
# 配置编译选项,配置需要的库和程序,以及 OPKG 的下载地址
3942
make menuconfig
4043

4144
# 同配置Linux内核类似,几乎每一个设置都有三个选项:y / m / n,分别代表如下含义:
4245
# * `` (按下`y`)这个包会被包含进固件镜像
43-
# * `` (按下`m`)这个包会在生成刷新OpenWrt的镜像文件以后被编译,但是不会被包含进镜像文件
46+
# * `` (按下`m`)这个包会在生成刷新OpenWrt的镜像文件以后被编译,但是不会被包含进镜像文件
4447
# * `` (按下`n`)这个包不会被编译
4548

4649
# 先编译要用到的工具和库, 编译单个软件,进入编译选项选择要编译的软件后,如果没有make需执行以下:
@@ -151,7 +154,7 @@ reboot
151154
# 升级固件
152155

153156
```shell
154-
sysupgrade -v openwrt-xxx-sysupgrade.bin
157+
sysupgrade -v openwrt-xxx-sysupgrade.bin
155158
```
156159

157160
效果等于reboot。
@@ -181,7 +184,7 @@ extension=pgsql.so
181184
extension=session.so
182185

183186
short_open_tag = On
184-
;doc_root = "/www"
187+
;doc_root = "/www"
185188
date.timezone = Asia/Shanghai
186189
```
187190

@@ -214,4 +217,4 @@ make menuconfig
214217
() Product name (NEW) │ │
215218
() Hardware revision (NEW) │ │
216219
[*] Version number in filenames (NEW)
217-
```
220+
```

0 commit comments

Comments
 (0)