找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1515|回复: 12

[红米ax6000] 新人求助,红米AX6000刷过渡包变砖

[复制链接]
发表于 2023-7-11 17:28 | 显示全部楼层 |阅读模式
所有的内容都是按照教程来的,除了root的密码没有改成admin

当刷入stock-initramfs-factory.ubi后,重启,路由器就直接变砖了,搜不到WiFi信号,但是蓝灯常量
刷了两次都是这个结果,好在两次丢用救砖工具救回来了


开启telnet,ssh什么的都是一切正常,直到执行下面这条命令,然后重启就没有WiFi了,网线连接也是未识别的网络
ubiformat /dev/mtd8 -y -f /tmp/stock-initramfs-factory.ubi

关于/dev/mtd8 这个位置也使用cat /proc/cmdline 和cat /proc/mtd命令确认过了

刷机log如下
  1. Xshell 7 (Build 0122)
  2. Copyright (c) 2020 NetSarang Computer, Inc. All rights reserved.

  3. Type `help' to learn how to use Xshell prompt.
  4. [E:\~]$

  5. Connecting to 192.168.31.1:23...
  6. Connection established.
  7. To escape to local shell, press 'Ctrl+Alt+]'.



  8. BusyBox v1.25.1 (2023-01-30 10:31:26 UTC) built-in shell (ash)

  9. -----------------------------------------------------
  10.        Welcome to XiaoQiang!
  11. -----------------------------------------------------
  12.   $$$$$$\  $$$$$$$\  $$$$$$$$\      $$\      $$\        $$$$$$\  $$\   $$\
  13. $$  __$$\ $$  __$$\ $$  _____|     $$ |     $$ |      $$  __$$\ $$ | $$  |
  14. $$ /  $$ |$$ |  $$ |$$ |           $$ |     $$ |      $$ /  $$ |$$ |$$  /
  15. $$$$$$$$ |$$$$$$$  |$$$$$\         $$ |     $$ |      $$ |  $$ |$$$$$  /
  16. $$  __$$ |$$  __$$< $$  __|        $$ |     $$ |      $$ |  $$ |$$  $$<
  17. $$ |  $$ |$$ |  $$ |$$ |           $$ |     $$ |      $$ |  $$ |$$ |\$$\
  18. $$ |  $$ |$$ |  $$ |$$$$$$$$\       $$$$$$$$$  |       $$$$$$  |$$ | \$$\
  19. \__|  \__|\__|  \__|\________|      \_________/        \______/ \__|  \__|


  20. root@XiaoQiang:/# echo -e '123456qwer.\n123456qwer.' | passwd root
  21. Changing password for root
  22. New password:
  23. Retype password:
  24. passwd: password for root changed by root
  25. root@XiaoQiang:/# nvram set ssh_en=1
  26. root@XiaoQiang:/# nvram set telnet_en=1
  27. root@XiaoQiang:/# nvram set uart_en=1
  28. root@XiaoQiang:/# nvram set boot_wait=on
  29. root@XiaoQiang:/# nvram commit
  30. root@XiaoQiang:/# mkdir /data/auto_ssh && cd /data/auto_ssh
  31. root@XiaoQiang:/data/auto_ssh# curl -O https://cdn.jsdelivr.net/gh/lemoeo/AX6S@main/auto_ssh.sh
  32.   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
  33.                                  Dload  Upload   Total   Spent    Left  Speed
  34. 100  2455    0  2455    0     0   2438      0 --:--:--  0:00:01 --:--:--  2462
  35. root@XiaoQiang:/data/auto_ssh# chmod +x auto_ssh.sh
  36. root@XiaoQiang:/data/auto_ssh# ls
  37. auto_ssh.sh
  38. root@XiaoQiang:/data/auto_ssh# cat auto_ssh.sh
  39. #!/bin/sh

  40. auto_ssh_dir="/data/auto_ssh"
  41. host_key="/etc/dropbear/dropbear_rsa_host_key"
  42. host_key_bk="${auto_ssh_dir}/dropbear_rsa_host_key"

  43. unlock() {
  44.     # Restore the host key.
  45.     [ -f $host_key_bk ] && ln -sf $host_key_bk $host_key

  46.     # Enable telnet, ssh, uart and boot_wait.
  47.     [ "$(nvram get telnet_en)" = 0 ] && nvram set telnet_en=1 && nvram commit
  48.     [ "$(nvram get ssh_en)" = 0 ] && nvram set ssh_en=1 && nvram commit
  49.     [ "$(nvram get uart_en)" = 0 ] && nvram set uart_en=1 && nvram commit
  50.     [ "$(nvram get boot_wait)" = "off" ]  && nvram set boot_wait=on && nvram commit

  51.     [ "`uci -c /usr/share/xiaoqiang get xiaoqiang_version.version.CHANNEL`" != 'stable' ] && {
  52.         uci -c /usr/share/xiaoqiang set xiaoqiang_version.version.CHANNEL='stable'
  53.         uci -c /usr/share/xiaoqiang commit xiaoqiang_version.version 2>/dev/null
  54.     }

  55.     channel=`/sbin/uci get /usr/share/xiaoqiang/xiaoqiang_version.version.CHANNEL`
  56.     if [ "$channel" = "release" ]; then
  57.         sed -i 's/channel=.*/channel="debug"/g' /etc/init.d/dropbear
  58.     fi

  59.     if [ -z "$(pidof dropbear)" -o -z "$(netstat -ntul | grep :22)" ]; then
  60.         /etc/init.d/dropbear restart 2>/dev/null
  61.         /etc/init.d/dropbear enable
  62.     fi
  63. }

  64. install() {
  65.     # unlock SSH.
  66.     unlock

  67.     # host key is empty, restart dropbear to generate the host key.
  68.     [ -s $host_key ] || /etc/init.d/dropbear restart 2>/dev/null

  69.     # Backup the host key.
  70.     if [ ! -s $host_key_bk ]; then
  71.         i=0
  72.         while [ $i -le 30 ]
  73.         do
  74.             if [ -s $host_key ]; then
  75.                 cp -f $host_key $host_key_bk 2>/dev/null
  76.                 break
  77.             fi
  78.             let i++
  79.             sleep 1s
  80.         done
  81.     fi

  82.     # Add script to system autostart
  83.     uci set firewall.auto_ssh=include
  84.     uci set firewall.auto_ssh.type='script'
  85.     uci set firewall.auto_ssh.path="${auto_ssh_dir}/auto_ssh.sh"
  86.     uci set firewall.auto_ssh.enabled='1'
  87.     uci commit firewall
  88.     echo -e "\033[32m SSH unlock complete. \033[0m"
  89. }

  90. uninstall() {
  91.     # Remove scripts from system autostart
  92.     uci delete firewall.auto_ssh
  93.     uci commit firewall
  94.     echo -e "\033[33m SSH unlock has been removed. \033[0m"
  95. }

  96. main() {
  97.     [ -z "$1" ] && unlock && return
  98.     case "$1" in
  99.     install)
  100.         install
  101.         ;;
  102.     uninstall)
  103.         uninstall
  104.         ;;
  105.     *)
  106.         echo -e "\033[31m Unknown parameter: $1 \033[0m"
  107.         return 1
  108.         ;;
  109.     esac
  110. }

  111. main "$@"root@XiaoQiang:/data/auto_ssh# uci set firewall.auto_ssh=include
  112. root@XiaoQiang:/data/auto_ssh# uci set firewall.auto_ssh.type='script'
  113. root@XiaoQiang:/data/auto_ssh# uci set firewall.auto_ssh.path='/data/auto_ssh/auto_ssh.sh'
  114. root@XiaoQiang:/data/auto_ssh# uci set firewall.auto_ssh.enabled='1'
  115. root@XiaoQiang:/data/auto_ssh# uci commit firewall
  116. root@XiaoQiang:/data/auto_ssh# mtd erase crash
  117. Unlocking crash ...
  118. Erasing crash ...
  119. root@XiaoQiang:/data/auto_ssh# reboot
  120. root@XiaoQiang:/data/auto_ssh#
  121. Socket error Event: 32 Error: 10053.
  122. Connection closing...Socket close.

  123. Connection closed by foreign host.

  124. Disconnected from remote host(AX6000) at 09:55:20.

  125. Type `help' to learn how to use Xshell prompt.
  126. [E:\~]$

  127. Connecting to 192.168.31.1:22...
  128. Connection established.
  129. To escape to local shell, press 'Ctrl+Alt+]'.

  130. sh: /usr/bin/xauth: not found


  131. BusyBox v1.25.1 (2023-01-30 10:31:26 UTC) built-in shell (ash)

  132. -----------------------------------------------------
  133.        Welcome to XiaoQiang!
  134. -----------------------------------------------------
  135.   $$$$$$\  $$$$$$$\  $$$$$$$$\      $$\      $$\        $$$$$$\  $$\   $$\
  136. $$  __$$\ $$  __$$\ $$  _____|     $$ |     $$ |      $$  __$$\ $$ | $$  |
  137. $$ /  $$ |$$ |  $$ |$$ |           $$ |     $$ |      $$ /  $$ |$$ |$$  /
  138. $$$$$$$$ |$$$$$$$  |$$$$$\         $$ |     $$ |      $$ |  $$ |$$$$$  /
  139. $$  __$$ |$$  __$$< $$  __|        $$ |     $$ |      $$ |  $$ |$$  $$<
  140. $$ |  $$ |$$ |  $$ |$$ |           $$ |     $$ |      $$ |  $$ |$$ |\$$\
  141. $$ |  $$ |$$ |  $$ |$$$$$$$$\       $$$$$$$$$  |       $$$$$$  |$$ | \$$\
  142. \__|  \__|\__|  \__|\________|      \_________/        \______/ \__|  \__|


  143. root@XiaoQiang:~# cat /proc/cmdline
  144. console=ttyS0,115200n1 loglevel=8 firmware=0 uart_en=1
  145. root@XiaoQiang:~#

  146. Connection closed.

  147. Disconnected from remote host(Ax6000_SSH) at 10:16:50.

  148. Type `help' to learn how to use Xshell prompt.
  149. [E:\~]$

  150. Connecting to 192.168.31.1:22...
  151. Connection established.
  152. To escape to local shell, press 'Ctrl+Alt+]'.

  153. sh: /usr/bin/xauth: not found


  154. BusyBox v1.25.1 (2023-01-30 10:31:26 UTC) built-in shell (ash)

  155. -----------------------------------------------------
  156.        Welcome to XiaoQiang!
  157. -----------------------------------------------------
  158.   $$$$$$\  $$$$$$$\  $$$$$$$$\      $$\      $$\        $$$$$$\  $$\   $$\
  159. $$  __$$\ $$  __$$\ $$  _____|     $$ |     $$ |      $$  __$$\ $$ | $$  |
  160. $$ /  $$ |$$ |  $$ |$$ |           $$ |     $$ |      $$ /  $$ |$$ |$$  /
  161. $$$$$$$$ |$$$$$$$  |$$$$$\         $$ |     $$ |      $$ |  $$ |$$$$$  /
  162. $$  __$$ |$$  __$$< $$  __|        $$ |     $$ |      $$ |  $$ |$$  $$<
  163. $$ |  $$ |$$ |  $$ |$$ |           $$ |     $$ |      $$ |  $$ |$$ |\$$\
  164. $$ |  $$ |$$ |  $$ |$$$$$$$$\       $$$$$$$$$  |       $$$$$$  |$$ | \$$\
  165. \__|  \__|\__|  \__|\________|      \_________/        \______/ \__|  \__|


  166. root@XiaoQiang:~# cd /tmp/
  167. root@XiaoQiang:/tmp# ls
  168. 2526.bootcheck.log
  169. TZ
  170. arrays
  171. boot_check_done
  172. daemon
  173. dhcp.leases
  174. diag_net_spd
  175. dnsmasq.d
  176. dropbear
  177. etc
  178. hosts
  179. lib
  180. lock
  181. log
  182. logexec
  183. luci-indexcache
  184. luci-sessions
  185. messages
  186. mi_ip_conflict_pid
  187. miqos.lock
  188. mq
  189. mtk
  190. ntp.status
  191. oui
  192. rc.done
  193. rc.timing
  194. resolv.conf
  195. resolv.conf.auto
  196. roam.conf
  197. run
  198. shm
  199. spool
  200. startscene_crontab.lua.PID
  201. stat_points
  202. state
  203. sysinfo
  204. syslog-ng.ctl
  205. syslog-ng.persist
  206. tmp
  207. uploadfiles
  208. x-wrt-23.06-b202307091202-mediatek-filogic-xiaomi_redmi-router-ax6000-stock-initramfs-factory.ubi
  209. root@XiaoQiang:/tmp# mv x-wrt-23.06-b202307091202-mediatek-filogic-xiaomi_redmi-router-ax6000-stock-initramfs-factory.ubi intramfs-facto
  210. ry.ubi
  211. root@XiaoQiang:/tmp# ls
  212. 2526.bootcheck.log          intramfs-factory.ubi        mtk                         startscene_crontab.lua.PID
  213. TZ                          lib                         ntp.status                  stat_points
  214. arrays                      lock                        oui                         state
  215. boot_check_done             log                         rc.done                     sysinfo
  216. daemon                      logexec                     rc.timing                   syslog-ng.ctl
  217. dhcp.leases                 luci-indexcache             resolv.conf                 syslog-ng.persist
  218. diag_net_spd                luci-sessions               resolv.conf.auto            tmp
  219. dnsmasq.d                   messages                    roam.conf                   uploadfiles
  220. dropbear                    mi_ip_conflict_pid          run
  221. etc                         miqos.lock                  shm
  222. hosts                       mq                          spool
  223. root@XiaoQiang:/tmp# cat /proc/cmdline
  224. console=ttyS0,115200n1 loglevel=8 firmware=0 uart_en=1
  225. root@XiaoQiang:/tmp# nvram set boot_wait=on
  226. root@XiaoQiang:/tmp# nvram set uart_en=1
  227. root@XiaoQiang:/tmp# nvram set flag_boot_rootfs=1
  228. root@XiaoQiang:/tmp# nvram set flag_last_success=1
  229. root@XiaoQiang:/tmp# nvram set flag_boot_success=1
  230. root@XiaoQiang:/tmp# nvram set flag_try_sys1_failed=0
  231. root@XiaoQiang:/tmp# nvram set flag_try_sys2_failed=0
  232. root@XiaoQiang:/tmp# nvram commit
  233. root@XiaoQiang:/tmp# cat /proc/mtd
  234. dev:    size   erasesize  name
  235. mtd0: 08000000 00020000 "spi0.1"
  236. mtd1: 00100000 00020000 "BL2"
  237. mtd2: 00040000 00020000 "Nvram"
  238. mtd3: 00040000 00020000 "Bdata"
  239. mtd4: 00200000 00020000 "Factory"
  240. mtd5: 00200000 00020000 "FIP"
  241. mtd6: 00040000 00020000 "crash"
  242. mtd7: 00040000 00020000 "crash_log"
  243. mtd8: 01e00000 00020000 "ubi"
  244. mtd9: 01e00000 00020000 "ubi1"
  245. mtd10: 03200000 00020000 "overlay"
  246. root@XiaoQiang:/tmp# ubiformat /dev/mtd9 -y -f /tmp/intramfs-factory.ubi
  247. ubiformat: mtd9 (nand), size 31457280 bytes (30.0 MiB), 240 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
  248. libscan: scanning eraseblock 239 -- 100 % complete  
  249. ubiformat: 160 eraseblocks have valid erase counter, mean value is 0
  250. ubiformat: 80 eraseblocks are supposedly empty
  251. ubiformat: warning!: only 160 of 240 eraseblocks have valid erase counter
  252. ubiformat: mean erase counter 0 will be used for the rest of eraseblock
  253. ubiformat: use erase counter 0 for all eraseblocks
  254. ubiformat: flashing eraseblock 85 -- 100 % complete  
  255. ubiformat: formatting eraseblock 239 -- 100 % complete  
  256. root@XiaoQiang:/tmp# reboot
  257. root@XiaoQiang:/tmp# Connection closing...Socket close.

  258. Connection closed by foreign host.

  259. Disconnected from remote host(Ax6000_SSH) at 10:42:46.

  260. Type `help' to learn how to use Xshell prompt.
  261. [E:\~]$

  262. Connecting to 192.168.31.1:22...
  263. Could not connect to '192.168.31.1' (port 22): Connection failed.

  264. Type `help' to learn how to use Xshell prompt.
  265. [E:\~]$
复制代码


发表于 2023-7-11 20:17 | 显示全部楼层
过渡固件没有wifi

点评

那应该怎么进入界面啊?我用网线直连也不行  详情 回复 发表于 2023-7-11 22:46
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-11 22:46 | 显示全部楼层
25850404 发表于 2023-7-11 20:17
过渡固件没有wifi

那应该怎么进入界面啊?我用网线直连也不行
回复 支持 反对

使用道具 举报

发表于 2023-7-12 09:24 | 显示全部楼层
Mitas 发表于 2023-7-11 22:46
那应该怎么进入界面啊?我用网线直连也不行

电脑固定ip

点评

何必呢?少说几句吧,网络这么大,聚到一起也不容易!: 5.0
大佬,我试了手动设置电脑的的ip变成192.168.15.2,网关192.168.15.1 网线直连路由器和电脑,但是不能访问成功web管理界面  详情 回复 发表于 2023-7-13 09:26
何必呢?少说几句吧,网络这么大,聚到一起也不容易!: 5
谢谢佬,我试试  发表于 2023-7-12 13:33
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-13 09:26 | 显示全部楼层

大佬,我试了手动设置电脑的的ip变成192.168.15.2,网关192.168.15.1
网线直连路由器和电脑,但是不能访问成功web管理界面
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-13 09:34 | 显示全部楼层

本帖子中包含更多资源

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

×
回复 支持 反对

使用道具 举报

发表于 2023-7-13 13:54 | 显示全部楼层
Mitas 发表于 2023-7-13 09:34

dns设置192.168.15.2试试

点评

和ip设置成一样的嘛?  详情 回复 发表于 2023-7-13 21:55
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-13 21:55 | 显示全部楼层
youyoudexiatian 发表于 2023-7-13 13:54
dns设置192.168.15.2试试

和ip设置成一样的嘛?
回复 支持 反对

使用道具 举报

发表于 2023-7-14 12:06 | 显示全部楼层
Mitas 发表于 2023-7-13 21:55
和ip设置成一样的嘛?

不好意思,打错了,是设置跟网关一样的

点评

尝试过了,不太行 我还是专门从x-wrt的官网载的stock ubi呢  详情 回复 发表于 2023-7-15 12:03
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-15 12:03 | 显示全部楼层
youyoudexiatian 发表于 2023-7-14 12:06
不好意思,打错了,是设置跟网关一样的

尝试过了,不太行
我还是专门从x-wrt的官网载的stock ubi呢
回复 支持 反对

使用道具 举报

发表于 2023-9-9 11:13 | 显示全部楼层
我也是这个问题 请问解决了吗
回复 支持 反对

使用道具 举报

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

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

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

GMT+8, 2024-6-16 16:22

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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