|
本帖最后由 千玺弟弟 于 2023-9-6 03:08 编辑
当你刷入官网Openwrt的kernel.bin版本时,是可以重启的
当你升级官网Openwrt的sysupgrade.bin版本时,就重启不了。
这个这个原因是因为这个Breed不为R4A定制的。
进入到breed (不要网页操作了用命令操作)
然后打开cmd.命令是 telnet 192.168.1.1
先可以使用HFS架设web服务(192.168.1.2就是我提供WEB服务的虚拟机的IP)
然后依次输入
命令:wget http://192.168.1.2/op-22.03.5-4a-sysupgrade.bin
- breed> wget http://192.168.1.2/op-22.03.5-4a-sysupgrade.bin
- wget http://192.168.1.2/op-22.03.5-4a-sysupgrade.bin
- Connecting to 192.168.1.2:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 6554224/0x640270 (6MB) [application/octet-stream]
- Saving to address 0x80001000
- [========================================================================] 100%
- Transmission completed in 1.4s.
复制代码 Length: 6554224/0x640270 (6MB) [application/octet-stream]
Saving to address 0x80001000
命令:flash erase 0x180000 0x650000
#从0x180000开始到0x650000这么大的区域擦除 一定要先擦除,为什么要写0x650000呢,是因为擦除必须大于固件的大小,
#0x180000是小米路由器4a千兆版的openwrt的默认起始地址(可能是瞎猜的吧)
Thu Apr 27 20:28:18 2023 kern.notice kernel: [ 4.425229] 0x000000180000-0x000001000000 : "firmware"
- Thu Apr 27 20:28:18 2023 kern.notice kernel: [ 4.377699] Creating 8 MTD partitions on "spi0.0":
- Thu Apr 27 20:28:18 2023 kern.notice kernel: [ 4.382498] 0x000000000000-0x000000030000 : "u-boot"
- Thu Apr 27 20:28:18 2023 kern.notice kernel: [ 4.388583] 0x000000030000-0x000000040000 : "u-boot-env"
- Thu Apr 27 20:28:18 2023 kern.notice kernel: [ 4.394911] 0x000000040000-0x000000050000 : "Bdata"
- Thu Apr 27 20:28:18 2023 kern.notice kernel: [ 4.401116] 0x000000050000-0x000000060000 : "factory"
- Thu Apr 27 20:28:18 2023 kern.notice kernel: [ 4.407264] 0x000000060000-0x000000070000 : "crash"
- Thu Apr 27 20:28:18 2023 kern.notice kernel: [ 4.413066] 0x000000070000-0x000000080000 : "cfg_bak"
- Thu Apr 27 20:28:18 2023 kern.notice kernel: [ 4.419211] 0x000000080000-0x000000180000 : "overlay"
- Thu Apr 27 20:28:18 2023 kern.notice kernel: [ 4.425229] 0x000000180000-0x000001000000 : "firmware"
复制代码
命令:flash write 0x180000 0x80001000 0x640270
#从0x180000这个地址写入保存在0x80001000的数据 写入的大小为0x640270
- breed> flash write 0x180000 0x80001000 0x640270
- flash write 0x180000 0x80001000 0x640270
- Writing flash bank 0 to 0x180000 from memory 0x80001000, size 0x640270
- [========================================================================] 100%
复制代码 命令:boot flash 0x180000
#从0x180000启动系统
重启到breed界面,然后开启环境变量,
再重启一次进breed就可以添加环境变量了
在环境变量界面,增加autoboot.command字段,值设为boot flash 0x180000
即可,这就是告诉breed启动系统时,从0x180000处启动
刷新的Openwrt 还要重新telnet命令来一遍才行。
5G的功率有问题最高只能选3db,5G信号弱
是需要再你拿到SSH权限时备份出来的Thu Apr 27 20:28:18 2023 kern.notice kernel: [ 4.401116] 0x000000050000-0x000000060000 : "factory"
进入Breed 里面去备份的eeprom那个是没有用的(不起作用)
命令:wget http://192.168.1.2/4a-eeprom.bin
命令:flash erase 0x50000 0x10000 擦除factory区域
命令:flash write 0x50000 0x80001000 0x10000 写入factory区域
刷完后去Breed重启 就好了
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|