找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 8404|回复: 28

[k2t] K2T固件备份方法

  [复制链接]
本帖最后由 liuxing_lei 于 2018-5-29 21:54 编辑

最近看到很多水友在刷机过程中变砖(一般是在刷过度固件时变砖,这时候都没有备份原厂固件),我个人看了一些帖子总结了一下备份原厂固件的方法……本人也是半桶水,有说错的地方希望大家指正!(特别感谢@phitools   制作的Telnet激活工具)
废话不多说,let's go……
   
开启telnet:
按phitools大佬的激活工具开启telnet,地址:https://www.right.com.cn/forum/thread-321483-1-1.html(必须)
备份固件:
1、分区备份
telnet连接K2T,按如下操作输入命令:
(1)将固件保存到内存
  1. dd if=/dev/mtd0 of=/tmp/u-boot.bin
复制代码
  1. cat /dev/mtd0>/tmp/u-boot.bin
复制代码
(2)将内存中固件映射到http目录
  1. cd /www
复制代码

(3)下载固件到计算机
192.168.2.1K2T地址,如你已修改,则更改此地址
照此方法依次备份mtd0、mtd1、mtd2、……mtd8分区
此处复制一下 @2049843684 在某贴中的命令
cd /tmp

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

cat /dev/mtd0 > /tmp/u-boot.bin
cat /dev/mtd1 > /tmp/config.bin
cat /dev/mtd2 > /tmp/permanent.bin
cat /dev/mtd3 > /tmp/kernel.bin
cat /dev/mtd4 > /tmp/rootfs.bin
cat /dev/mtd5 > /tmp/rootfs_data.bin
cat /dev/mtd6 > /tmp/art.bin
cat /dev/mtd7 > /tmp/firmware.bin
cat /dev/mtd8 > /tmp/spi0.1.bin

===========将内存固件映射到http目录==========

cd /www

touch u-boot.bin
touch config.bin
touch permanent.bin
touch kernel.bin
touch rootfs.bin
touch rootfs_data.bin
touch art.bin
touch firmware.bin
touch spi0.1.bin

mount --bind /tmp/u-boot.bin/www/u-boot.bin
mount --bind /tmp/config.bin/www/config.bin
mount --bind /tmp/permanent.bin/www/permanent.bin
mount --bind /tmp/kernel.bin/www/kernel.bin
mount --bind /tmp/rootfs.bin /www/rootfs.bin
mount --bind /tmp/rootfs_data.bin/www/rootfs_data.bin
mount --bind /tmp/art.bin /www/art.bin
mount --bind /tmp/firmware.bin/www/firmware.bin
mount --bind /tmp/spi0.1.bin/www/spi0.1.bin

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

http://192.168.2.1/u-boot.bin
http://192.168.2.1/config.bin
http://192.168.2.1/permanent.bin
http://192.168.2.1/kernel.bin
http://192.168.2.1/rootfs.bin
http://192.168.2.1/rootfs_data.bin
http://192.168.2.1/art.bin
http://192.168.2.1/firmware.bin
http://192.168.2.1/spi0.1.bin
firmware.bin备份前建议重启一下路由器或"rm/tmp/*.bin"删除bin文件,否则可能会死机
2、编程器固件备份
1.telnet连接K2T,按如下操作输入命令
  1. cat /dev/mtd0 /dev/mtd1 /dev/mtd2 /dev/mtd7 /dev/mtd6>/tmp/all.bin
  2. cd /www
  3. touch all.bin
  4. mount –bind /tmp/all.bin /www/all.bin
复制代码
2.下载固件到计算机
计算机访问
注意:编程器固件大小应该为16777216字节。
方法二:
1、开启telnet后,telnet连接K2T,按如下操作输入命令开启SSH并修改密码为admin:
  1. /etc/init.d/dropbear start
  2. echo -e 'admin\nadmin' | passwd root
复制代码
2、将固件保存到内存:方法一“分区备份”中第(1)步和编程器固件备份中第(1)步
3、通过winscp进入tmp目录将固件下载下来(用户名root,密码admin)

至此,固件备份完成,接下来可以放心刷机了……!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

如果输入命令报错或者返回了一段帮助,可以检查一下命令里的空格,注意mount --bind是双横杠,后面两个地址中间有空格。  发表于 2018-6-26 10:47
cat /dev/mtd0 /dev/mtd1 /dev/mtd2 /dev/mtd7 /dev/mtd6 >/tmp/all.bin  发表于 2018-5-29 18:32

评分

参与人数 3恩山币 +3 收起 理由
pol*** + 1 我来恩山就是为了撩你!
只*** + 1 强大的恩山!(以下重复1万次)
vic*** + 1 支付宝已转5毛给你!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
写的很详细,谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

不错 但是直接备份编程器固件 不知道楼主试过没
感觉可能空间不够







    Mozilla/5.0 (Wayland; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0  (zh-CN)
    ——2018/5/29 下午5:14:55
             

    点评

    试过,可以的  详情 回复 发表于 2018-5-29 17:17
    我的恩山、我的无线 The best wifi forum is right here.
    回复

    使用道具 举报

    不错不错,支持一下
    我的恩山、我的无线 The best wifi forum is right here.
    回复

    使用道具 举报

     楼主| | 显示全部楼层
    sysop 发表于 2018-5-29 17:14
    不错 但是直接备份编程器固件 不知道楼主试过没
    感觉可能空间不够

    试过,可以的

    点评

    好的 谢谢 我也备份下 A3版已经刷了第三方 备份不了了 备份A1吧 官网连固件都没提供 [hr]Mozilla/5.0 (Wayland; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 (zh-CN) ——2018/5/29 下午  详情 回复 发表于 2018-5-29 17:18
    我的恩山、我的无线 The best wifi forum is right here.
    回复

    使用道具 举报


    好的 谢谢
    我也备份下
    A3版已经刷了第三方 备份不了了
    备份A1吧
    官网连固件都没提供







      Mozilla/5.0 (Wayland; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0  (zh-CN)
      ——2018/5/29 下午5:18:26
               
      我的恩山、我的无线 The best wifi forum is right here.
      回复

      使用道具 举报

      备份写的很详细,感谢。
      我的恩山、我的无线 The best wifi forum is right here.
      回复

      使用道具 举报

      来自手机 | 显示全部楼层
      谢谢分享(*°°)=3
      我的恩山、我的无线 The best wifi forum is right here.
      回复

      使用道具 举报

      好复杂,我肯定学不会。
      我的恩山、我的无线 The best wifi forum is right here.
      回复

      使用道具 举报

      cat /dev/mtd0 /dev/mtd1 /dev/mtd2 /dev/mtd7 /dev/mtd6>/tmp/all.bin

      BeginAddr     - EndAddr                Name
      0x000000000000-0x000000030000 : "u-boot"
      0x000000030000-0x000000040000 : "config"
      0x000000040000-0x000000090000 : "permanent"
      0x000000090000-0x0000001b0000 : "kernel"
      0x0000001b0000-0x000000ff0000 : "rootfs"
      0x000000930000-0x000000b30000 : "rootfs_data"
      0x000000ff0000-0x000001000000 : "art"
      0x000000090000-0x000000ff0000 : "firmware"

      cat /proc/mtd

      dev:    size   erasesize  name
      mtd0: 00030000 00010000 "u-boot"
      mtd1: 00010000 00010000 "config"
      mtd2: 00050000 00010000 "permanent"
      mtd3: 00120000 00010000 "kernel"
      mtd4: 00e40000 00010000 "rootfs"
      mtd5: 00200000 00010000 "rootfs_data"
      mtd6: 00010000 00010000 "art"
      mtd7: 00f60000 00010000 "firmware"
      mtd8: 00010000 00001000 "spi0.1"

      点评

      [ 0.490000] 0x000000000000-0x000000030000 : "u-boot" [ 0.490000] 0x000000030000-0x000000040000 : "config" [ 0.500000] 0x000000040000-0x000000090000 : "permanent" [ 0.500000] 0x000000090  详情 回复 发表于 2018-5-29 22:19
      我的恩山、我的无线 The best wifi forum is right here.
      回复

      使用道具 举报

      备份mtd1、mtd6和all.bin就行。。。
      我的恩山、我的无线 The best wifi forum is right here.
      回复

      使用道具 举报

       楼主| | 显示全部楼层
      2049843684 发表于 2018-5-29 18:31
      cat /dev/mtd0 /dev/mtd1 /dev/mtd2 /dev/mtd7 /dev/mtd6>/tmp/all.bin

      BeginAddr     - EndAddr               ...

      谢谢,明白了,请问这个分区起止怎么查看

      点评

      dmesg或者TTL。。。  详情 回复 发表于 2018-5-29 19:43
      我的恩山、我的无线 The best wifi forum is right here.
      回复

      使用道具 举报

      breed 直接刷all bin 就可以恢复了吧
      我的恩山、我的无线 The best wifi forum is right here.
      回复

      使用道具 举报

      学习下。。。
      我的恩山、我的无线 The best wifi forum is right here.
      回复

      使用道具 举报

      liuxing_lei 发表于 2018-5-29 18:53
      谢谢,明白了,请问这个分区起止怎么查看

      dmesg或者TTL。。。
      我的恩山、我的无线 The best wifi forum is right here.
      回复

      使用道具 举报

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

      本版积分规则

      有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

      GMT+8, 2024-4-28 01:43

      Powered by Discuz! X3.5

      © 2001-2024 Discuz! Team.

      | 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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