|
本帖最后由 a4421565a 于 2022-5-7 07:40 编辑
大致过程如下 telnet链接你的光猫
Welcome Visiting Huawei Home Gateway
Copyright by Huawei Technologies Co., Ltd.
Login:root
Password:
WAP>su
success!
SU_WAP>shell
BusyBox v1.30.1 () built-in shell (ash)
Enter 'help' for a list of built-in commands.
profile close core dump
WAP(Dopra Linux) # cd /dev/shm
WAP(Dopra Linux) # tftp -g -l hwp -r hwp 192.168.1.11 这里要改成你电脑的本地ip
WAP(Dopra Linux) # chmod 777 hwp
WAP(Dopra Linux) # ./hwp 0xC0204D02 allsystemA
========== HW Pound ==========
Version: 1.5.0 (2021/08)
[Warning] Improper use of this software application may damage the device.
ioctl(fd, 0xC0204D02, allsystemA, ...) return code = 0
WAP(Dopra Linux) # ./hwp 0xC0204D02 allsystemB
========== HW Pound ==========
Version: 1.5.0 (2021/08)
[Warning] Improper use of this software application may damage the device.
ioctl(fd, 0xC0204D02, allsystemB, ...) return code = 0
WAP(Dopra Linux) # cat /proc/wap_proc/mtd_protect
Index:0 Name:bootcode Size:1048576 Flags:0x4000
Index:1 Name:ubilayer_v5 Size:267386880 Flags:0x4400
Index:2 Name:flash_configA Size:126976 Flags:0x0
Index:3 Name:flash_configB Size:126976 Flags:0x0
Index:4 Name:slave_paramA Size:126976 Flags:0x0
Index:5 Name:slave_paramB Size:126976 Flags:0x0
Index:6 Name:allsystemA Size:51298304 Flags:0x400
Index:7 Name:allsystemB Size:51298304 Flags:0x400
Index:8 Name:keyfile Size:1142784 Flags:0x400
Index:9 Name:frameworkA Size:17014784 Flags:0x400
Index:10 Name:frameworkB Size:17014784 Flags:0x400
Index:11 Name:wifi_paramA Size:126976 Flags:0x0
Index:12 Name:wifi_paramB Size:126976 Flags:0x0
Index:13 Name:file_system Size:10539008 Flags:0x400
Index:14 Name:apps Size:101072896 Flags:0x400
WAP(Dopra Linux) # tftp -g -l mtd6.bin -r mtd6.bin 192.168.1.11
WAP(Dopra Linux) # dd if=/dev/shm/mtd6.bin of=/dev/mtdblock6
100192+0 records in
100192+0 records out
51298304 bytes (48.9MB) copied, 20.148351 seconds, 2.4MB/s
WAP(Dopra Linux) # dd if=/dev/shm/mtd6.bin of=/dev/mtdblock7
100192+0 records in
100192+0 records out
51298304 bytes (48.9MB) copied, 19.019131 seconds, 2.6MB/s
WAP(Dopra Linux) # exit
success!
SU_WAP>reset
至此,光猫重启,升级结束
所用到的 mtd6.bin 文件 论坛里已经提供很多了,那个hwp文件是什么我也搞不懂,升级后我用tftp也无法备份出来,懂的大佬可以在评论区回复
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|