第一次刷OpenWrt

简介:

我手上有一台TP-Link WR740,这台路由器上已经刷了OpenWrt了。

在 make menuconfig 时,我没有做过多的设置,只是选了机型。


[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

通过上面的命令,我将默认的配置与我改过的配置进行比较。如下为比较后的结果:


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 目录下生成:


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?这是什么问题?你们是怎么解决的?

目录
相关文章
|
4月前
|
Linux Shell
Linux常用命令-1
本课程要求学生熟悉Linux系统终端窗口和命令基础,掌握文件目录类、系统信息类、进程管理类及其他常用命令,学时为3-6小时。课程内容涵盖Linux命令的特点、常见命令的使用方法及其应用场景,如文件浏览、目录切换、内容显示等。建议学生逐个操作命令并及时反馈问题。
72 5
|
5月前
|
Linux
Linux常用命令包括
Linux常用命令包括
32 5
|
10月前
|
关系型数据库 MySQL Java
1.Linux常用命令
1.Linux常用命令
74 1
|
10月前
|
网络协议 Linux 开发工具
linux常用命令三
linux常用命令三
36 4
|
10月前
|
Linux 开发工具 Windows
Linux常用命令
Linux常用命令
44 0
|
网络架构
OpenWRT使用wifidog实现强制认证的WIFI热点
首先安装wifidog到OpenWRT的路由器:   opkg update   opkg install wifidog    wifidog依赖下面这些模块: iptables-mod-extra iptables-mod-ipopt kmod-ipt-nat iptables-...
2676 0
|
存储 关系型数据库 MySQL
linux常用命令
linux常用命令
116 1
|
9月前
|
Ubuntu Docker 容器
ubuntu 通过docker方式安装clouddrive2
ubuntu 通过docker方式安装clouddrive2
995 6
|
5月前
|
人工智能 安全 大数据
ARM 服务器上安装 OpenEuler (欧拉)
openEuler 是华为于2019年开源的操作系统,支持多种处理器架构,包括X86和鲲鹏。截至2020年底,openEuler 拥有3万社区用户、2万多个拉取请求、2000多名贡献者和7032款软件。openEuler 提供高效、稳定、安全的系统,适用于数据库、大数据、云计算和人工智能等场景。本文介绍了在神州鲲泰 R522 服务器上安装 openEuler 的详细步骤,包括下载镜像、配置 RAID 和 BIOS 设置等。
538 0
ARM 服务器上安装 OpenEuler (欧拉)
|
网络协议 Java Linux