AC2100 刷OpenWrt過程記錄


遇到的問題

開啟PPPoE服務器時,失敗

python腳本執行失敗,並報錯,說None什么的,修改了一下代碼;位置‘redmi\PPPoE_Simulator.py’,修改方法:在63行添加代碼host_uniq = ""

反彈Shell失敗

原因:原始官方版本2.0.3x版本,已經不能再用之前的版本的方法了。

解決辦法:降級的1.0.14版本,可使用的官方文件“miwifi_rm2100_firmware_d517e_1.0.14.bin”,文件位置為:附件\官方救磚工具及原廠固件

轉發80端口后發現打開的是路由器管理界面

原因:管理界面使用的端口是80

解決方法:修改uhttpd的監聽端口及ip,具體步驟如下:

  1. 設置路由器管理密碼

  2. 選中“ 允許 root 用戶憑密碼登錄 ”

  3. 使用ssh客戶端連接路由器ip

  4. 修改配置文件/etc/config/uhttpd

  5. 修改 list listen_http 0.0.0.0:80 ----->list listen_http 192.168.1.1:8099

  6. 重啟uhttpd服務,命令/etc/init.d/uhttpd restart/etc/init.d/uhttpd reloadreboot或重啟路由器

  7. 清除瀏覽器,否則,訪問路由器的ip時,會自動跳轉到/cgi-bin/luci/

     

過程

  1. 降級的1.0.14版本,可使用的官方文件“miwifi_rm2100_firmware_d517e_1.0.14.bin”,文件位置為:附件\官方救磚工具及原廠固件
  2. 開啟telnet
  3. 刷機,使用的openwrt為“openwrt-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-kernel1”和“openwrt-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-rootfs0”

刷機命令為:

wget http://192.168.31.177:8081/openwrt-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-rootfs0.bin
wget http://192.168.31.177:8081/openwrt-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-kernel1.bin
mtd write openwrt-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-kernel1.bin kernel1
nvram set uart_en=1
nvram set bootdelay=5
nvram set flag_try_sys1_failed=1
nvram commit
mtd -r 0 openwrt-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-rootfs0.bin rootfs0

 

附件

天翼網盤:https://cloud.189.cn/t/fYVZZfmAbENz (訪問碼:qh3o)

參考文檔


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM