|
本帖最后由 mysxl 于 2020-4-19 07:18 编辑
收了一个小娱路由器C3,到手是刷的是高恪,进去一看MAC地址和标签上的不一样,强迫症发作想进breed改一下MAC,按RESET,中断breed工具都进不了。刚开机的时候拼192.168.1.1不通,不知道是不是没有刷过breed,问卖家啥也不知道。
尝试登录到SSH界面刷breed。
用mtd -r write breed-mt7621-xy.bin u-boot命令没成功。(后来才明白uboot被锁,也不知道上家怎么刷进高恪的)
后来看了几个帖子,直接按上面的复制粘贴改了下,也没仔细看,按下回车马上就reboot了。
mtd -r write breed-mt7621-xy.bin firmware
把breed刷到firmware里去了。有些教程会在 mtd 命令后加入 -r 参数,此参数的意思为刷写完成后立即重启路由
以后千万不要加-r,不然补救的机会都没有了。
结果电脑马上就获取到上级路由的IP了,过了好久也是这样,断电重启现在WAN口和LAN直通,变成一个傻瓜交换机了。
本来打算乖乖的拆机上TTL救砖了,实在不行只能上编程器。太晚了扔那里打算第二天再搞。
早上起来又逛了下论坛,看了这个帖子。
https://www.right.com.cn/forum/thread-1002008-1-1.html
发现可以还可以试一下,不拆机。
果然tftp有动静了,过了一会电脑设为自动获取已经可以获取到IP了,登录发现系统已经变成openwrt了。
BusyBox v1.31.0 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r10970-7db6559914
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 01fb0000 00010000 "firmware"
mtd4: 001ea998 00010000 "kernel"
mtd5: 01dc5668 00010000 "rootfs"
mtd6: 01650000 00010000 "rootfs_data"
root@OpenWrt:~# wget http://b0d.cc:8083/breed-mt7621-xy.bin
Downloading 'http://b0d.cc:8083/breed-mt7621-xy.bin'
Connecting to 27.43.185.113:8083
Writing to 'breed-mt7621-xy.bin'
breed-mt7621-xy.bin 100% |*******************************| 103k 0:00:00 ETA
Download completed (106026 bytes)
root@OpenWrt:~# cd /tmp
root@OpenWrt:/tmp# wget http://b0d.cc:8083/breed-mt7621-xy.bin
Downloading 'http://b0d.cc:8083/breed-mt7621-xy.bin'
Connecting to 27.43.185.113:8083
Writing to 'breed-mt7621-xy.bin'
breed-mt7621-xy.bin 100% |*******************************| 103k 0:00:00 ETA
Download completed (106026 bytes)
root@OpenWrt:/tmp# mtd write breed-mt7621-xy.bin u-boot
Could not open mtd device: u-boot
Can't open device for writing!
再次登录SSH尝试刷breed,果然u-boot还是被锁。
下载解锁uboot分区的固件,升级后再次刷breed,成功了。
BusyBox v1.31.0 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r11008-84c263ebfe
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# cd /tmp
root@OpenWrt:/tmp# wget http://b0d.cc:8083/breed-mt7621-xy.bin
Downloading 'http://b0d.cc:8083/breed-mt7621-xy.bin'
Connecting to 27.43.185.113:8083
Writing to 'breed-mt7621-xy.bin'
breed-mt7621-xy.bin 100% |*******************************| 103k 0:00:00 ETA
Download completed (106026 bytes)
root@OpenWrt:/tmp# mtd write breed-mt7621-xy.bin u-boot
Unlocking u-boot ...
Writing from breed-mt7621-xy.bin to u-boot ...
熟悉的界面又回来了
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|