维塔斯科技

 找回密码
 立即注册
查看: 1104|回复: 8
打印 上一主题 下一主题

撸的159元斐讯路由器到货

[复制链接]

该用户从未签到

52

主题

381

帖子

830

积分

高级会员

Rank: 4

积分
830
楼主
发表于 2016-3-28 15:14:41 | 显示全部楼层


备份路由固件的命令。。。

http://192.168.2.1/goform/Diagnosis?pingAddr=192.168.2.100|echo

telnet 192.168.2.1

admin
admin

BusyBox v1.12.1 (2015-11-23 20:21:30 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

cat /proc/mtd

dev:    size   erasesize  name
mtd0: 00800000 00010000 "ALL"
mtd1: 00030000 00010000 "Bootloader"
mtd2: 00010000 00010000 "Config"
mtd3: 00010000 00010000 "Factory"
mtd4: 00790000 00010000 "Kernel"
mtd5: 00010000 00010000 "nvbackup"
mtd6: 00010000 00010000 "nvram"

cd /tmp

===================Backup====================

cat /dev/mtd0 >/tmp/ALL.bin
cat /dev/mtd1 >/tmp/Bootloader.bin
cat /dev/mtd2 >/tmp/Config.bin
cat /dev/mtd3 >/tmp/Factory.bin
cat /dev/mtd4 >/tmp/Kernel.bin
cat /dev/mtd5 >/tmp/nvbackup.bin
cat /dev/mtd6 >/tmp/nvram.bin

==================Download====================

tftp -p -r ALL.bin -l /tmp/ALL.bin 192.168.2.100
tftp -p -r Bootloader.bin -l /tmp/Bootloader.bin 192.168.2.100
tftp -p -r Config.bin -l /tmp/Config.bin 192.168.2.100
tftp -p -r Factory.bin -l /tmp/Factory.bin 192.168.2.100
tftp -p -r Kernel.bin -l /tmp/Kernel.bin 192.168.2.100
tftp -p -r nvbackup.bin -l /tmp/nvbackup.bin 192.168.2.100
tftp -p -r nvram.bin -l /tmp/nvram.bin 192.168.2.100

==================Recovery===================

mtd_write write /tmp/ALL.bin ALL
mtd_write write /tmp/Bootloader.bin Bootloader
mtd_write write /tmp/Config.bin Config
mtd_write write /tmp/Factory.bin Factory
mtd_write write /tmp/Kernel.bin Kernel
mtd_write write /tmp/nvbackup.bin nvbackup
mtd_write write /tmp/nvram.bin nvram

====================Breed=====================

tftp -g -l /tmp/breed-mt7620-reset1.bin -r breed-mt7620-reset1.bin 192.168.2.100

mtd_write write /tmp/breed-mt7620-reset1.bin Bootloader



回复 支持 反对

使用道具 举报

发表回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

    移动客户端:
    关注我们:
  • 手机客户端:
  • 安卓版
  • 扫描二维码下载

Archiver|手机版|河北维塔斯科技有限公司 ( 冀ICP备16008275号 )

快速回复 返回顶部 返回列表