원본글은 https://openwrt.org/toh/xiaomi/mini?s[]=mini&s[]=r1cm 글을 참고했습니다.
1. 웹브라우저에서 접속: 192.168.31.1. ->로그인
2. URL에서stok값 복사 9c2428de4d17e2db7e5a6a337e6f57a3
3. http://192.168.31.1/cgi-bin/luci/;stok=<STOKSTOK>/api/xqnetwork/set_wifi_ap?ssid=whatever&encryption=NONE&enctype=NONE&channel=1%3B%2Fusr%2Fsbin%2Ftelnetd
4. {"msg":"Couldn't connect to this network(Probe timeout)","code":1616}
5. 패스워드 변경 : http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/xqsystem/set_name_password?oldPwd=<CURRENTPASS>&newPwd=<NEWPASS>
6. {"code":0}
7.telnet접속
yskim@youngsuks-MacBook-Pro ~ % telnet 192.168.31.1 23
Trying 192.168.31.1...
Connected to 192.168.31.1.
Escape character is '^]'.
XiaoQiang login: root
Password:
BusyBox v1.19.4 (2016-11-18 15:21:18 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
-----------------------------------------------------
Welcome to XiaoQiang!
-----------------------------------------------------
8 파일 다운로드 에러
첫번째 시도
root@XiaoQiang:/tmp# cd /tmp; wget http://downloads.openwrt.org/releases/19.07.7/targets/ramips/mt7620/openwrt-19.07.7-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin
Connecting to downloads.openwrt.org (168.119.138.211:80)
wget: not an http or ftp url: https://downloads.openwrt.org/releases/19.07.7/targets/ramips/mt7620/openwrt-19.07.7-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin
두번째 시도
wget wget --no-check-certificate http://downloads.openwrt.org/releases/19.07.7/targets/ramips/mt7620/openwrt-19.07.7-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin
결론: wget으로 http://downloads.openwrt.org/releases/19.07.7/targets/ramips/mt7620/openwrt-19.07.7-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin
다운로드 불가.
세번째 시도,
tistory에 업로드 후 다운로드 불가.
네번째 시도.
네이버 블로그에 글작성 -> http://downloads.openwrt.org/releases/19.07.7/targets/ramips/mt7620/openwrt-19.07.7-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin. 이미지 다운로드 업로드
네이버는 다운로드 성공.
root@XiaoQiang:/tmp# wget http://blogattach.naver.com/86139a2c320d0cb9957314251efc84f55c0bf18f/20210330_176_blogfile/ba_1617115510383_iLCd5Q_bin/openwrt-19.07.7-ramips-mt7620-miwifi-min
i-squashfs-sysupgrade.bin
Connecting to blogattach.naver.com (223.130.195.148:80)
openwrt-19.07.7-rami 100% |********************************************************************************************************************************************| 4096k 0:00:00 ETA
9. 이미지 넣기
root@XiaoQiang:/tmp# mtd -r write openwrt-19.07.7-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin OS1
Unlocking OS1 ...
Writing from openwrt-19.07.7-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin to OS1 ...
Rebooting ...
Connection closed by foreign host.
10.
리부팅후 wifi리스트에 openwrt 보이지 않음, 렌선으로 샤오미 기기 직접 연결 후 웹브라우저에서 192.168.1.1 접속
11. 루트패으워드 없이 로그인 -> 암호 설정 무선랜 설정 끝.
openwrt-19.07.7-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin
4.00MB