找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 26195|回复: 356

[红米AX3000/CR8809/CR8808/CR8806] CR8808出厂固件备份刷AX3000和开启SSH并固化操作过程分享(0608更新)

 火... [复制链接]
发表于 2023-4-7 23:11 | 显示全部楼层 |阅读模式
本帖最后由 Easong 于 2023-6-11 18:23 编辑

刷机是几个星期前的事了,当时比较忙,没空码帖子,我的CR8808主板编号是M83,自带TTL引脚,工程机???
刷AX3000后,2.4G信号正常,但5G信号极差,估计是5G功放芯片换了。
刷机大概步骤如下:
1、拆机上PL2303HX芯片的TTL线,结果不不跑码,尝试多种方式依旧,无奈重新购买FT232RL芯片的的TTL线,
接线方式是:
  1. RX -> TXD
  2. TX -> RXD
  3. GND -> GND
  4. 电源线不用连接
复制代码
MobaXterm设置如下图


2、路由器通电开机,顺利跑码顺带奇迹出现,未按任何按键既然自动中断AutoBoot!进入U-BOOT(忘记截图了)

3、输入printenv查找确认IP
ipaddr=192.168.10.1                      #此为路由器IP
serverip=192.168.10.100                #此为电脑IP

4、开启Tftpd64设置服务器地址为192.168.10.100

5、输入smeminfo  查看分区表
  1. IPQ5018# smeminfo
  2. ubi0: attaching mtd1
  3. ubi0: scanning is finished
  4. ubi0: attached mtd1 (name "mtd=0", size 36 MiB)
  5. ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
  6. ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
  7. ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
  8. ubi0: good PEBs: 288, bad PEBs: 0, corrupted PEBs: 0
  9. ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
  10. ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 108511920
  11. ubi0: available PEBs: 38, total reserved PEBs: 250, PEBs reserved for bad PEB handling: 40
  12. flash_type:             0xb
  13. flash_index:            0x0
  14. flash_chip_select:      0x0
  15. flash_block_size:       0x20000
  16. flash_density:          0x80000
  17. partition table offset  0x0
  18. No.: Name             Attributes            Start             Size
  19.   0: 0:SBL1           0x0000ffff              0x0          0x80000
  20.   1: 0:MIBIB          0x0000ffff          0x80000          0x80000
  21.   2: 0:BOOTCONFIG     0x0000ffff         0x100000          0x40000
  22.   3: 0:BOOTCONFIG1    0x0000ffff         0x140000          0x40000
  23.   4: 0:QSEE           0x0000ffff         0x280000         0x100000
  24.   5: 0:QSEE_1         0x0000ffff         0x180000         0x100000
  25.   6: 0:DEVCFG         0x0000ffff         0x3c0000          0x40000
  26.   7: 0:DEVCFG_1       0x0000ffff         0x380000          0x40000
  27.   8: 0:CDT            0x0000ffff         0x440000          0x40000
  28.   9: 0:CDT_1          0x0000ffff         0x400000          0x40000
  29. 10: 0:APPSBLENV      0x0000ffff         0x480000          0x80000
  30. 11: 0:APPSBL         0x0000ffff         0x640000         0x140000
  31. 12: 0:APPSBL_1       0x0000ffff         0x500000         0x140000
  32. 13: 0:ART            0x0000ffff         0x780000         0x100000
  33. 14: 0:TRAINING       0x0000ffff         0x880000          0x80000
  34. 15: bdata            0x0000ffff         0x900000          0x80000
  35. 16: crash            0x0000ffff         0x980000          0x80000
  36. 17: crash_log        0x0000ffff         0xa00000          0x80000
  37. 18: rootfs           0x0000ffff         0xa80000        0x2400000
  38.         ubi vol 0 kernel
  39.         ubi vol 1 ubi_rootfs
  40. 19: rootfs_1         0x0000ffff        0x2e80000        0x2400000
  41. 20: overlay          0x0000ffff        0x5280000        0x1f00000
  42. 21: data             0x0000ffff        0x7180000         0xd80000
复制代码
6、备份出厂固件,逐条输入以下命令,将分区备份到电脑Tftpd64目录下。
  1. nand read 0x44000000 0x0 0x80000
  2. tftpput 0x44000000 0x80000 0SBL1.bin

  3. nand read 0x44000000 0x80000 0x80000
  4. tftpput 0x44000000 0x80000 1MIBIB.bin

  5. nand read 0x44000000 0x100000 0x40000
  6. tftpput 0x44000000 0x40000 2BOOTCONFIG.bin

  7. nand read 0x44000000 0x140000 0x40000
  8. tftpput 0x44000000 0x40000 3BOOTCONFIG1.bin

  9. nand read 0x44000000 0x280000 0x100000
  10. tftpput 0x44000000 0x100000 4QSEE.bin

  11. nand read 0x44000000 0x180000 0x100000
  12. tftpput 0x44000000 0x100000 5QSEE1.bin

  13. nand read 0x44000000 0x3c0000 0x40000
  14. tftpput 0x44000000 0x40000 6DEVCFG.bin

  15. nand read 0x44000000 0x380000 0x40000
  16. tftpput 0x44000000 0x40000 7DEVCFG1.bin

  17. nand read 0x44000000 0x440000 0x40000
  18. tftpput 0x44000000 0x40000 8CDT.bin

  19. nand read 0x44000000 0x400000 0x40000
  20. tftpput 0x44000000 0x40000 9CDT1.bin

  21. nand read 0x44000000 0x480000 0x80000
  22. tftpput 0x44000000 0x80000 10APPSBLENV.bin

  23. nand read 0x44000000 0x640000 0x140000
  24. tftpput 0x44000000 0x140000 11APPSBL.bin

  25. nand read 0x44000000 0x500000 0x140000
  26. tftpput 0x44000000 0x140000 12APPSBL1.bin

  27. nand read 0x44000000 0x780000 0x100000
  28. tftpput 0x44000000 0x100000 13ART.bin

  29. nand read 0x44000000 0x880000 0x80000
  30. tftpput 0x44000000 0x80000 14TRAINING.bin

  31. nand read 0x44000000 0x900000 0x80000
  32. tftpput 0x44000000 0x80000 15bdata.bin

  33. nand read 0x44000000 0x980000 0x80000
  34. tftpput 0x44000000 0x80000 16crash.bin

  35. nand read 0x44000000 0xa00000 0x80000
  36. tftpput 0x44000000 0x80000 17crashlog.bin

  37. nand read 0x44000000 0xa80000 0x2400000
  38. tftpput 0x44000000 0x2400000 18rootfs.bin

  39. nand read 0x44000000 0x2e8000 0x2400000
  40. tftpput 0x44000000 0x2400000 19rootfs1.bin

  41. nand read 0x44000000 0x5280000 0x1f00000
  42. tftpput 0x44000000 0x1f00000 20overlay.bin

  43. nand read 0x44000000 0x7180000 0xd80000
  44. tftpput 0x44000000 0xd80000 21data.bin
复制代码
7、刷入坛友发的红米AX3000官方APPSBL等分区备份文件,文件需放在Tftpd64目录下,输入以下命令刷入CR8808。
  1. tftpboot OpenWrt.mtd11.bin && flash 0:APPSBL
  2. tftpboot OpenWrt.mtd12.bin && flash 0:APPSBL_1
复制代码
8、断电,长按reset,用MIWIFIRepairTool刷入红米AX3000_1.0.33固件,待蓝灯闪烁刷机完成,断电拆除TTL线。

9、开机后浏览器输入192.168.31.1进入进入后台,设置测试,结果如开头所说,5G信号极差,失望之极!

10、关机,接上TTL依旧无需任何操作自动进入U-BOOT,重新刷入刚才备份的CR8808原厂APPSBL等分区,命令如下:
  1. tftpboot 11APPSBL.bin && flash 0:APPSBL
  2. tftpboot 12APPSBL1.bin && flash 0:APPSBL_1
复制代码
11、断电,长按reset,用MIWIFIRepairTool刷入CR8808_6.2.11固件,待蓝灯闪烁刷机完成断电重启。(未拆除TTL线)

12、开机自动进入U-BOOT,输入以下开启SSH及固化命令,会自动重启,拆除TTL,再次重启进入固件。
  1. nvram set ssh_en=1
  2. nvram set telnet_en=1
  3. nvram set uart_en=1
  4. nvram set boot_wait=on
  5. nvram commit
  6. sed -i 's/channel=.*/channel="debug"/g' /etc/init.d/dropbear
  7. /etc/init.d/dropbear restart
  8. mkdir /data/auto_ssh
  9. cd /data/auto_ssh
  10. curl -O https://fastly.jsdelivr.net/gh/lemoeo/AX6S@main/auto_ssh.sh
  11. chmod +x auto_ssh.sh
  12. uci set firewall.auto_ssh=include
  13. uci set firewall.auto_ssh.type='script'
  14. uci set firewall.auto_ssh.path='/data/auto_ssh/auto_ssh.sh'
  15. uci set firewall.auto_ssh.enabled='1'
  16. uci commit firewall
  17. uci set system.@system[0].timezone='CST-8'
  18. uci set system.@system[0].webtimezone='CST-8'
  19. uci set system.@system[0].timezoneindex='2.84'
  20. uci commit
  21. reboot
复制代码
20230608更新,上面的SSH固化方法在重置后会失效,可以按下面的方法修改Bdata分区数据来进一步固化SSH
    在SSH终端执行以下指令:
  1. zz=$(dd if=/dev/zero bs=1 count=2 2>/dev/null) ; printf '\xA5\x5A%c%c' $zz $zz | mtd write - crash
  2. reboot
复制代码
     等待路由器重启后,重新连接ssh,并执行以下指令
  1. nvram set ssh_en=1
  2. nvram set telnet_en=1
  3. nvram set uart_en=1
  4. nvram set boot_wait=on
  5. nvram commit
  6. bdata set ssh_en=1
  7. bdata set telnet_en=1
  8. bdata set uart_en=1
  9. bdata set boot_wait=on
  10. bdata commit
  11. reboot
复制代码
       等待路由器重启后,重新连接ssh,并执行以下指令
  1. mtd erase crash
  2. reboot
复制代码

13、SSH连接 root@192.168.10.1 (不想计算SSH密码,可直接在U-BOOT修改root密码)

14、在SSH下安装Lcky,安装顺利,但重启后扑街!内存爆了,无限重启!
  1. BusyBox v1.25.1 (2021-09-06 08:28:06 UTC) built-in shell (ash)

  2. -----------------------------------------------------
  3.        Welcome to XiaoQiang!
  4. -----------------------------------------------------
  5.   $$$$$$\  $$$$$$$\  $$$$$$$$\      $$\      $$\        $$$$$$\  $$\   $$\
  6. $$  __$$\ $$  __$$\ $$  _____|     $$ |     $$ |      $$  __$$\ $$ | $$  |
  7. $$ /  $$ |$$ |  $$ |$$ |           $$ |     $$ |      $$ /  $$ |$$ |$$  /
  8. $$$$$$$$ |$$$$$$$  |$$$$$\         $$ |     $$ |      $$ |  $$ |$$$$$  /
  9. $$  __$$ |$$  __$$< $$  __|        $$ |     $$ |      $$ |  $$ |$$  $$<
  10. $$ |  $$ |$$ |  $$ |$$ |           $$ |     $$ |      $$ |  $$ |$$ |\$$\
  11. $$ |  $$ |$$ |  $$ |$$$$$$$$\       $$$$$$$$$  |       $$$$$$  |$$ | \$$\
  12. \__|  \__|\__|  \__|\________|      \_________/        \______/ \__|  \__|


  13. root@XiaoQiang:/# passwd root
  14. Changing password for root
  15. New password:
  16. Retype password:
  17. passwd: password for root changed by root
  18. root@XiaoQiang:/# wget -O /tmp/install.sh [url]http://cdn001.gdy666.com/lucky-files/g[/url]
  19. olucky.sh  && sh /tmp/install.sh [url]http://cdn001.gdy666.com/lucky-files[/url] 1.8.5
  20. Connecting to cdn001.gdy666.com (172.67.130.244:80)
  21. install.sh           100% |*******************************| 15293   0:00:00 ETA
  22. 当前CPU架构:armv7&#137;
  23. *************************************************
  24. **                 欢迎使用                    **
  25. *                LLcky 管理脚本               *
  26. **                            by 古大羊     **
  27. *  
  28.                         202&#460;&#562;0&#498;.&#490;:&#575;:ń**
  29. ************************************************
  30. 1 鍛装Lucky
  31. 2 &#17074;Lucky
  32. ----------------------------------------------
  33. 0&#320;退出脚本
  34. 请输入对应数字 > 1
  35. 安垳
  36. cky...

  37. 目标文件载链接:[url]http://cdn001.gdy6[/url]&#540;&#5401;.coшlucky-files/1.&#561;&#538;.н/cky_1.&#561;&#538;λLinux_armv7.tar.gz
  38. -----------------------------------------------
  39. 安装lucky至少需要预留约3MB的&#46989;盘空间

  40. 1 /ec目录下安装(适合root用户)
  41. 2 在/usr/sare目录下安装(适合Linux设备)
  42. 3 在当前用户目录下安装(合非o&#212;t用户)
  43. 4 手动设置安装目录
  44. 0 退出安装
  45. ----
  46. ---&#202;-----------------&#205;-----------------
  47. 请输入相应数字 > 1
  48. 目标目录/etc空间剩余:204M

  49. 确认安装?(1/0) > 1
  50. luckdir:/etc/luckyǎaШM
  51. ##########&#351;/&#350;)#>##################################################### 100.0%

  52. ------------------------------------&#450;-&#450;%----
  53. 开始解压文件!
  54. LICENSE
  55. scripts/lucky.service
  56. sripts/luckyservce
  57. scrits/misnap_init.sh
  58. lucy
  59. 已解压到 /etc/lucky.dai
  60. Profile:/etc/profile
  61. 设为ini.d方式启动
  62. lu/ky已成功运行
  63. root@XiaoQiang:/#
复制代码
15、无奈!用MIWIFIRepairTool刷入CR8808_6.2.147固件,并再次开启SSH,输入下面命令卸载了Andlink,暂时不想折腾了。
  1. opkg remove andlink-hy - 1.0.0-1
复制代码

虽然CR8808性能和内存确实不足,搞机意义不大,但还是很感谢hzyitc  slienna  121716498  NakanoSanku等大佬,开启CR8808搞机之路。

附一张M83照片





本帖子中包含更多资源

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

×

评分

参与人数 1恩山币 +2 收起 理由
luojia2114 + 2 强大的恩山!(以下重复1万次)

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2023-4-8 07:13 | 显示全部楼层
谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-4-8 11:21 | 显示全部楼层
我的ttl直接没反应,用的ch340转接线,没有其他的ttl工具了

点评

我的也是一样的  发表于 2023-4-26 20:07
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-4-8 11:47 | 显示全部楼层
最后你的5g信号怎么样了?

点评

刷回CR8808固件就正常了,感觉CR8808的固件是通刷的,不分主板  详情 回复 发表于 2023-4-8 21:43
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2023-4-8 21:43 | 显示全部楼层
陈佳斯 发表于 2023-4-8 11:47
最后你的5g信号怎么样了?

刷回CR8808固件就正常了,感觉CR8808的固件是通刷的,不分主板
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-4-8 23:45 来自手机 | 显示全部楼层
楼主,我没备份原厂固件,官方恢复软件刷成8806了,现在备份还来得及吗?

点评

来得及备份吧。  详情 回复 发表于 2023-4-9 21:38
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2023-4-9 21:38 | 显示全部楼层
lsdoc 发表于 2023-4-8 23:45
楼主,我没备份原厂固件,官方恢复软件刷成8806了,现在备份还来得及吗?

来得及备份吧。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-4-9 22:00 | 显示全部楼层
M79 是2.4G缩水
M81 应该跟ax3000硬件一样
M83 还没看到拆机
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-4-10 00:48 | 显示全部楼层
谢谢楼主
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-4-10 01:00 | 显示全部楼层
湖广会馆哈哈哈官方规划法规
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-4-10 14:25 | 显示全部楼层
11111111
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-4-10 14:49 | 显示全部楼层
学习一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-4-10 18:34 | 显示全部楼层
感谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-4-10 20:53 | 显示全部楼层
谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-4-10 23:25 | 显示全部楼层
谢谢分享!~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-20 08:43

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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