我手上有一台TP-Link WR740,这台路由器上已经刷了OpenWrt了。
在 make menuconfig 时,我没有做过多的设置,只是选了机型。
1
2
3
4
5
6
|
[hevake_lcj@localhost:~/Workspace/OpenWRT/trunk]$ mv .config .config.wr740
[hevake_lcj@localhost:~/Workspace/OpenWRT/trunk]$ make defconfig
#
# configuration written to .config
#
[hevake_lcj@localhost:~/Workspace/OpenWRT/trunk]$ diff .config .config.wr740
|
通过上面的命令,我将默认的配置与我改过的配置进行比较。如下为比较后的结果:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
46c46
< CONFIG_TARGET_ar71xx_generic_Default=y
---
> # CONFIG_TARGET_ar71xx_generic_Default is not set
162c162
< # CONFIG_TARGET_ar71xx_generic_TLWR740 is not set
---
> CONFIG_TARGET_ar71xx_generic_TLWR740=y
206d205
< CONFIG_DEFAULT_kmod-ledtrig-usbdev=y
208,210d206
< CONFIG_DEFAULT_kmod-usb-core=y
< CONFIG_DEFAULT_kmod-usb-ohci=y
< CONFIG_DEFAULT_kmod-usb2=y
1331,1332c1327,1328
< # CONFIG_PACKAGE_libstdcpp is not set
< # CONFIG_PACKAGE_libthread-db is not set
---
> CONFIG_PACKAGE_libstdcpp=m
> CONFIG_PACKAGE_libthread-db=m
1349c1345,1347
< # CONFIG_PACKAGE_rpcd is not set
---
> CONFIG_PACKAGE_rpcd=y
> # CONFIG_PACKAGE_rpcd-mod-file is not set
> # CONFIG_PACKAGE_rpcd-mod-iwinfo is not set
1964,1965c1962,1963
< # CONFIG_PACKAGE_libiwinfo-lua is not set
< # CONFIG_PACKAGE_lua is not set
---
> CONFIG_PACKAGE_libiwinfo-lua=y
> CONFIG_PACKAGE_lua=y
1966a1965
> # CONFIG_PACKAGE_lua-examples is not set
2084c2083
< # CONFIG_PACKAGE_libpolarssl is not set
---
> CONFIG_PACKAGE_libpolarssl=y
2152c2151
< # CONFIG_PACKAGE_libbfd is not set
---
> CONFIG_PACKAGE_libbfd=m
2218c2217
< # CONFIG_PACKAGE_liblua is not set
---
> CONFIG_PACKAGE_liblua=y
2237c2236
< # CONFIG_PACKAGE_libncurses is not set
---
> CONFIG_PACKAGE_libncurses=m
2256c2255
< # CONFIG_PACKAGE_libopcodes is not set
---
> CONFIG_PACKAGE_libopcodes=m
2276c2275
< # CONFIG_PACKAGE_libreadline is not set
---
> CONFIG_PACKAGE_libreadline=m
2308c2307
< # CONFIG_PACKAGE_libubus-lua is not set
---
> CONFIG_PACKAGE_libubus-lua=y
2310c2309
< # CONFIG_PACKAGE_libuci-lua is not set
---
> CONFIG_PACKAGE_libuci-lua=y
2324c2323
< # CONFIG_PACKAGE_libustream-polarssl is not set
---
> CONFIG_PACKAGE_libustream-polarssl=y
2351c2350
< # CONFIG_PACKAGE_terminfo is not set
---
> CONFIG_PACKAGE_terminfo=m
2357c2356
< # CONFIG_PACKAGE_zlib is not set
---
> CONFIG_PACKAGE_zlib=m
2366,2367c2365,2366
< # CONFIG_PACKAGE_luci is not set
< # CONFIG_PACKAGE_luci-ssl is not set
---
> CONFIG_PACKAGE_luci=y
> CONFIG_PACKAGE_luci-ssl=y
2372c2371
< # CONFIG_PACKAGE_luci-base is not set
---
> CONFIG_PACKAGE_luci-base=y
2403c2402
< # CONFIG_PACKAGE_luci-mod-admin-full is not set
---
> CONFIG_PACKAGE_luci-mod-admin-full=y
2413a2413
> # CONFIG_PACKAGE_luci-app-bcp38 is not set
2423c2423
< # CONFIG_PACKAGE_luci-app-firewall is not set
---
> CONFIG_PACKAGE_luci-app-firewall=y
2452a2453
> # CONFIG_PACKAGE_luci-app-sqm is not set
2468c2469
< # CONFIG_PACKAGE_luci-theme-bootstrap is not set
---
> CONFIG_PACKAGE_luci-theme-bootstrap=y
2479c2480
< # CONFIG_PACKAGE_luci-proto-ppp is not set
---
> CONFIG_PACKAGE_luci-proto-ppp=y
2486c2487
< # CONFIG_PACKAGE_luci-lib-ip is not set
---
> CONFIG_PACKAGE_luci-lib-ip=y
2490c2491
< # CONFIG_PACKAGE_luci-lib-nixio is not set
---
> CONFIG_PACKAGE_luci-lib-nixio=y
2502a2504,2553
> # CONFIG_PACKAGE_luci-i18n-base-ca is not set
> # CONFIG_PACKAGE_luci-i18n-base-cs is not set
> # CONFIG_PACKAGE_luci-i18n-base-de is not set
> # CONFIG_PACKAGE_luci-i18n-base-el is not set
> # CONFIG_PACKAGE_luci-i18n-base-en is not set
> # CONFIG_PACKAGE_luci-i18n-base-es is not set
> # CONFIG_PACKAGE_luci-i18n-base-fr is not set
> # CONFIG_PACKAGE_luci-i18n-base-he is not set
> # CONFIG_PACKAGE_luci-i18n-base-hu is not set
> # CONFIG_PACKAGE_luci-i18n-base-it is not set
> # CONFIG_PACKAGE_luci-i18n-base-ja is not set
> # CONFIG_PACKAGE_luci-i18n-base-ms is not set
> # CONFIG_PACKAGE_luci-i18n-base-no is not set
> # CONFIG_PACKAGE_luci-i18n-base-pl is not set
> # CONFIG_PACKAGE_luci-i18n-base-pt is not set
> # CONFIG_PACKAGE_luci-i18n-base-pt-br is not set
> # CONFIG_PACKAGE_luci-i18n-base-ro is not set
> # CONFIG_PACKAGE_luci-i18n-base-ru is not set
> # CONFIG_PACKAGE_luci-i18n-base-sk is not set
> # CONFIG_PACKAGE_luci-i18n-base-sv is not set
> # CONFIG_PACKAGE_luci-i18n-base-tr is not set
> # CONFIG_PACKAGE_luci-i18n-base-uk is not set
> # CONFIG_PACKAGE_luci-i18n-base-vi is not set
> # CONFIG_PACKAGE_luci-i18n-base-zh-cn is not set
> # CONFIG_PACKAGE_luci-i18n-base-zh-tw is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-ca is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-cs is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-de is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-el is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-en is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-es is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-fr is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-he is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-hu is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-it is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-ja is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-ms is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-no is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-pl is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-pt is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-pt-br is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-ro is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-ru is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-sk is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-sv is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-tr is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-uk is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-vi is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-zh-cn is not set
> # CONFIG_PACKAGE_luci-i18n-firewall-zh-tw is not set
3021c3072
< # CONFIG_PACKAGE_uhttpd is not set
---
> CONFIG_PACKAGE_uhttpd=y
3022a3074,3076
> # CONFIG_PACKAGE_uhttpd-mod-lua is not set
> # CONFIG_PACKAGE_uhttpd-mod-tls is not set
> CONFIG_PACKAGE_uhttpd-mod-ubus=y
3426c3480
< # CONFIG_PACKAGE_px5g is not set
---
> CONFIG_PACKAGE_px5g=y
|
就是这样编译的。
在 trunk/bin/ar71xx 目录下生成:
1
2
3
4
5
6
7
8
9
10
|
md5sums openwrt-ar71xx-generic-uImage-gzip.bin
openwrt-ar71xx-generic-nbg460n_550n_550nh-u-boot.bin openwrt-ar71xx-generic-uImage-lzma.bin
openwrt-ar71xx-generic-root.squashfs openwrt-ar71xx-generic-vmlinux.bin
openwrt-ar71xx-generic-root.squashfs-64k openwrt-ar71xx-generic-vmlinux.elf
openwrt-ar71xx-generic-tl-wr740n-v1-squashfs-factory.bin openwrt-ar71xx-generic-vmlinux.gz
openwrt-ar71xx-generic-tl-wr740n-v1-squashfs-sysupgrade.bin openwrt-ar71xx-generic-vmlinux.lzma
openwrt-ar71xx-generic-tl-wr740n-v3-squashfs-factory.bin openwrt-ar71xx-generic-vmlinux-lzma.elf
openwrt-ar71xx-generic-tl-wr740n-v3-squashfs-sysupgrade.bin packages
openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-factory.bin uboot-ar71xx-nbg460n_550n_550nh
openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-sysupgrade.bin
|
由于当前路由器已有 OpenWRT了,我尝试用OpenWRT的luci中的页面的刷新功能来刷机。
(由于现在已是刷过机了,看不到当时刷机的界面了)
页面提示我提定 sysupgrade.bin 文件,然后让我对比md5sum 码,然后就是刷机(最好保存原配置)。刷机过程中不能断电。
等了大概2~3分钟,再次出来 luci 页面。说明刷机已经成功了。
输入密码之后,进入了主要界面:
这看起来很正常。可问题来了:不管我点菜单栏里的哪个菜单项,都会弹出类似第一个页面的帐户验证页面。输了密码之后,还是回到第二个页面。它不并跳到我想去的那个页面去。
比哪我点了 Network -> Interface,就会弹出帐号密码验证页面,验证通过之后,还是回到Status这个页面。我什么事儿都干不了。
有没有遇到类似问题的OSCer?这是什么问题?你们是怎么解决的?