教程OpenWRT总结

2026/4/23 10:38:18

etc/config/system

etc/config/network

etc/config/firewall

etc/config/dropbear

etc/config/dhcp

Switching to ramdisk...

Performing system upgrade...

Unlocking firmware ...

Writing from to firmware ...

Appending jffs2 data from /tmp/sysupgrade.tgz to firmware...TRX header not found

Error fixing up TRX header

Upgrade completed

Rebooting system...

基本上是不会出现什么问题的,有时候刷一些第三方固件时会出现:

Invalid image, hardware ID mismatch, hw:07400001 image:07400003.

Image check 'platform_check_image' failed.

Error: Firmware upgrade is not implemented for this platform.

sysupgrade openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-factory.bin

Firmware upgrade is not implemented for this platform.

root@OpenWrt:/tmp#

openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-sysupgrade.bin

Firmware upgrade is not implemented for this platform.

sysupgrade

解決:

#mtd write openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-sysupgrade.bin firmware

注意:使用mtd命令时要注意固件的写入位置,先使用cat /proc/mtd查看当前路由器的固件分区名,部分路由器可能是linux,视情况选择刷入位置

7、mtd (Memory Technology Device)

mtd 是一个类似于dd的工具,

命令行用法:

mtd [option]

command:

erase erase all data on device

write |- write (use - for stdin) to device

查看mtd:

#cat /proc/mtd

dev: size erasesize name

mtd0: 00020000 00010000 \

mtd1: 000e5e00 00010000 \

mtd2: 002ea200 00010000 \

mtd3: 00170000 00010000 \

mtd4: 00010000 00010000 \

mtd5: 003d0000 00010000 \

配置文件:

/dev/mtdX

备份:

#dd if=/dev/mtd0 of=/tmp/boot.backup

还原:

#mtd -r write /tmp/original_firmware.bin firmware

8、LuCI

主页:http://luci.subsignal.org/trac

LuCI是OpenWRT中一个非常常用的WEB端路由器管理页面,可以让OpenWRT路由器像各大厂商路由器那样使用WEB管理界面管理路由器

安裝:

#opkg install luci

packages:

luci #Meta package,它是一大堆 depends

uhttpd, luci-mod-admin-full, luci-theme-openwrt, luci-app-firewall,

luci-proto-core, luci-proto-ppp, libiwinfo-lua

luci-ssl #https

luci-theme-openwrt

luci-i18n-*

luci-app-*

luci-app-firewall

luci-app-ddns

luci-app-ahcp

luci-app-freifunk-policyrouting

luci-app-multiwan

luci-app-ntpc

luci-app-openvpn

luci-app-qos

luci-app-statistics

luci-app-samba

luci-app-tinyproxy

luci-app-vnstat

luci-app-wol

luci-app-wshaper

luci-proto-ppp <--- PPPoE

luci-proto-pptp pptp ppp

kmod-gre

resolveip

启用:

#/etc/init.d/uhttpd enable

#/etc/init.d/uhttpd start Tips:

<-- started at every boot Hostnames:

tim-pc.lan #要配合 domain 使用

Unsaved Change:

本文出自 Server&Coding...,转载时请注明出处及相应链接。 0 OpenWRT

? [教程]CentOS6搭建PPTPVPN

[整理]OpenWRT路由器校园网IPv6大法?

发表评论

电子邮件地址不会被公开。必填项已用*标注 姓名 *

电子邮件 * 站点


教程OpenWRT总结.doc 将本文的Word文档下载到电脑
搜索更多关于: 教程OpenWRT总结 的文档
相关推荐
相关阅读
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 10

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219