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)

参考文档

posted @ 2020-10-08 21:27  小AT  阅读(2694)  评论(0编辑  收藏  举报