K2P刷机

斐讯K2P的配置文件加密方式1)与K2一模一样,因此可以用配置文件恢复法来开启telnet或运行任何命令.

注:下述方法仅保证在官方固件或官方定制固件下有效,刷入第三方固件后执行不一定有效(命令和分区不同).

开启telnet方法:

  1. 输入你的WAN口MAC地址,下载配置文件(如验证码不能校验,请开启cookie或更换浏览器再试)
  2. 用此配置文件恢复即可开启telnet
  • 恢复此配置文件不会更改你的其他配置;
  • 恢复配置会重启路由器,重启完成后计算机即可通过telnet或putty工具连接K2P;
  • 后续如需取消telnet,可以编辑/etc/rc.local 加#号注释telnet行即可;2)

  • 前提是开启telnet.

K2P官改固件或原厂固件下安装BREED,以获得刷其他固件,救砖的目的.

cd /tmp
# 报错忽略
opkg install http://downloads.openwrt.org/chaos_calmer/15.05/ramips/mt7621/packages/packages/wget_1.16.3-1_ramips_1004kc.ipk
# 安装成功应该可以看到有wget-ssl文件了
ls /overlay/usr/bin/
dbclient     dropbearkey  scp          ssh          wget-ssl
# 然后下载breed:
wget-ssl --no-check-certificate https://breed.hackpascal.net/breed-mt7621-phicomm-k2p.bin
# 写入breed
mtd -r write /tmp/breed-mt7621-phicomm-k2p.bin Bootloader

写入成功的情况下会自动重启的.

k2p_3.4.3.9-099_20170726-2038.trx.7z

  1. 下载上面的文件,解压出来;
  2. 然后拔电;
  3. 按住RESET,再插电,此时面板LED一闪一闪亮晶晶;
  4. 刷固件,选择公版,然后完了会重启;
  5. 路由器的默认ip为192.168.4.1,用户名密码admin

完….

  1. 拔电进入breed;
  2. 选择更新固件,选择公版刷新区域;

rMBP 上通过将K2P作为AP接入网络,测试网络链路带宽.

padavan固件(AP,5G):

[  4]  27.00-28.00  sec  56.9 MBytes   478 Mbits/sec
[  4]  28.00-29.00  sec  52.9 MBytes   443 Mbits/sec
[  4]  29.00-30.00  sec  51.5 MBytes   432 Mbits/sec
[  4]  30.00-31.00  sec  60.3 MBytes   506 Mbits/sec
[  4]  31.00-32.00  sec  72.0 MBytes   604 Mbits/sec
[  4]  32.00-33.00  sec  72.0 MBytes   604 Mbits/sec
[  4]  33.00-34.00  sec  71.8 MBytes   602 Mbits/sec
[  4]  34.00-35.00  sec  72.0 MBytes   604 Mbits/sec
[  4]  35.00-36.00  sec  72.3 MBytes   606 Mbits/sec
[  4]  36.00-37.00  sec  71.8 MBytes   603 Mbits/sec
[  4]  37.00-38.00  sec  72.7 MBytes   610 Mbits/sec
[  4]  38.00-39.00  sec  71.9 MBytes   603 Mbits/sec
[  4]  39.00-40.00  sec  71.9 MBytes   604 Mbits/sec

padavan固件(NAT,5G):

[  4]  75.00-76.00  sec  55.1 MBytes   462 Mbits/sec
[  4]  76.00-77.00  sec  55.3 MBytes   464 Mbits/sec
[  4]  77.00-78.00  sec  54.3 MBytes   455 Mbits/sec
[  4]  78.00-79.00  sec  54.9 MBytes   460 Mbits/sec
[  4]  79.00-80.00  sec  54.9 MBytes   460 Mbits/sec
[  4]  80.00-81.00  sec  55.3 MBytes   464 Mbits/sec
[  4]  81.00-82.00  sec  55.2 MBytes   463 Mbits/sec
[  4]  82.00-83.00  sec  54.3 MBytes   455 Mbits/sec
[  4]  83.00-84.00  sec  54.7 MBytes   459 Mbits/sec
[  4]  84.00-85.00  sec  54.3 MBytes   455 Mbits/sec
[  4]  85.00-86.00  sec  49.2 MBytes   413 Mbits/sec
[  4]  86.00-87.00  sec  54.3 MBytes   455 Mbits/sec
[  4]  87.00-88.00  sec  55.1 MBytes   462 Mbits/sec
[  4]  88.00-89.00  sec  55.6 MBytes   467 Mbits/sec
[  4]  89.00-90.00  sec  55.4 MBytes   465 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-90.00  sec  4.53 GBytes   433 Mbits/sec                  sender
[  4]   0.00-90.00  sec  4.53 GBytes   433 Mbits/sec                  receiver

iperf Done.

原厂固件,5G: 200Mbits/sec左右吧….

2.4G: 100Mbits/sec 左右,不是特别稳定.


2)
#/usr/sbin/telnetd -l /bin/login.sh
  • homelab/k2p刷机.txt
  • 最后更改: 2019/04/16 18:31
  • (外部编辑)