|
本帖最后由 a4421565a 于 2022-5-7 07:40 编辑
6 h$ ~! e' C& q. E1 T* Y/ S' ?6 c1 p# `# _2 }5 n! g" j' l) j
7 U6 y* L, Z; K$ y o
- k% G' Y' {' r1 w8 Y; t( Y
. y) {' Z7 F/ L, T- n+ ?大致过程如下 telnet链接你的光猫
( n$ W* h" A5 I, d0 bWelcome Visiting Huawei Home Gateway$ b9 Q+ f! D2 X' A) o" O" a1 T
Copyright by Huawei Technologies Co., Ltd.; x5 f% A# ]. a% c" X$ `" B% r
4 u4 h2 e% B: V/ X
Login:root
6 u, U8 M& d5 V- dPassword:" Y7 V5 L' a3 @0 t2 g
WAP>su% W) @+ O+ _* S, T, l' P
success!
! H! |' [+ e( F0 k x& M( E9 XSU_WAP>shell
, ^, [: Q9 a2 o+ Z
4 b. j3 ]9 L# FBusyBox v1.30.1 () built-in shell (ash)
7 T- E* S: a4 P. h1 W4 TEnter 'help' for a list of built-in commands.
% t" s7 {0 x2 ]# ^: ^& R! z, j% t v3 D7 e0 \, D8 J9 z' p
profile close core dump( @1 L0 y8 ?7 J* r5 Q
WAP(Dopra Linux) # cd /dev/shm
6 c6 U0 f6 d* i j }" l# @$ \WAP(Dopra Linux) # tftp -g -l hwp -r hwp 192.168.1.11 这里要改成你电脑的本地ip
& F7 g' {# G1 c# t9 u" zWAP(Dopra Linux) # chmod 777 hwp
: f7 P6 n' I* Z* k5 pWAP(Dopra Linux) # ./hwp 0xC0204D02 allsystemA
' t' W5 q7 r3 T+ W
% m# i+ C( h: Q7 ^4 ^========== HW Pound ==========
; N, J, N; H" m( W6 b* P4 J" t# i' p( A I1 S2 e. p
Version: 1.5.0 (2021/08); x) D# f/ v) L! U/ d" y! }
( j' U) U- D2 F0 a8 ^5 f) [[Warning] Improper use of this software application may damage the device.$ {* y# c, L! a% {
- g3 u" R( @: ^9 g1 z5 T5 ~
ioctl(fd, 0xC0204D02, allsystemA, ...) return code = 0! u, a2 |# V, @8 f9 g* H6 q
; C& z! n; J4 }! B9 t; V0 h' P0 C
/ r0 ?( P# E) `# }4 i* h& f- r
WAP(Dopra Linux) # ./hwp 0xC0204D02 allsystemB 9 k: h& \3 ~& s3 X
: c2 Z0 |4 [3 X5 a========== HW Pound ==========5 m+ @4 C3 o+ ]) z
6 _7 H7 i. F' [: BVersion: 1.5.0 (2021/08)+ r8 u/ ^5 q" T7 Q2 v" F
6 d! h) I/ n( L0 c# c! {
[Warning] Improper use of this software application may damage the device.
8 V+ x. I0 I# x2 u7 X1 H4 c" E% U9 g4 y1 O( A
ioctl(fd, 0xC0204D02, allsystemB, ...) return code = 0
0 N$ S) [4 h2 `; h. ~: J( }+ G) b0 k( } F6 P3 |# s, g, {; q
# a3 Z; j1 \5 mWAP(Dopra Linux) # cat /proc/wap_proc/mtd_protect6 J3 P& v! H. }+ y. `- R, M5 j
Index:0 Name:bootcode Size:1048576 Flags:0x40008 M2 w" Y' V u- d( p" D
Index:1 Name:ubilayer_v5 Size:267386880 Flags:0x4400% K5 Z. z; B- {- i5 Y+ Y
Index:2 Name:flash_configA Size:126976 Flags:0x0, h2 P# D. c6 W( H" i1 M
Index:3 Name:flash_configB Size:126976 Flags:0x0
5 M J9 o( Y. D+ N x, V4 nIndex:4 Name:slave_paramA Size:126976 Flags:0x0- j6 U' o0 L' y% m
Index:5 Name:slave_paramB Size:126976 Flags:0x0
% c, W& h0 y! ZIndex:6 Name:allsystemA Size:51298304 Flags:0x400% G1 J. i8 C+ o+ i+ Z+ |
Index:7 Name:allsystemB Size:51298304 Flags:0x400
* I/ V1 p$ e* k0 ~* G# d1 OIndex:8 Name:keyfile Size:1142784 Flags:0x400
7 P; u/ S: T+ f& [2 y2 K( a6 t1 m# ZIndex:9 Name:frameworkA Size:17014784 Flags:0x400+ ~% @: S8 q3 {" L. z
Index:10 Name:frameworkB Size:17014784 Flags:0x4009 v& P. Z0 X+ |3 G5 l
Index:11 Name:wifi_paramA Size:126976 Flags:0x0
, x' ^" b" i* k. y i" x- aIndex:12 Name:wifi_paramB Size:126976 Flags:0x05 ]8 [7 R( ]) c5 n7 x. Z! R
Index:13 Name:file_system Size:10539008 Flags:0x400
: V, ^+ w" n- m, U& d" tIndex:14 Name:apps Size:101072896 Flags:0x4004 u% C7 w# n; g! L
WAP(Dopra Linux) # tftp -g -l mtd6.bin -r mtd6.bin 192.168.1.11( m0 i( F3 G1 V- u$ o% w0 w
WAP(Dopra Linux) # dd if=/dev/shm/mtd6.bin of=/dev/mtdblock60 G! d; A! q+ L) {5 {2 k% ]; q' ?. w
100192+0 records in
. u6 F w0 C3 h1 x+ j: U100192+0 records out$ J! j9 X# W) } G( J& a
51298304 bytes (48.9MB) copied, 20.148351 seconds, 2.4MB/s
6 Q' V1 y; \# S3 Y) JWAP(Dopra Linux) # dd if=/dev/shm/mtd6.bin of=/dev/mtdblock7
; S9 J' N4 j8 L5 N6 x100192+0 records in
/ q% L m# M) X2 a0 g100192+0 records out
0 I5 Z' {" h- a7 r5 n) ]1 E51298304 bytes (48.9MB) copied, 19.019131 seconds, 2.6MB/s
4 r+ X) \" S S/ ^' T C7 J6 L" yWAP(Dopra Linux) # exit
7 S' s$ S3 D: j* V4 ~- }% f
- y3 K8 X/ j0 ?) j8 s, Isuccess!! h* U# i2 e+ ^' L8 L
SU_WAP>reset
/ s" K' y1 F; D" @+ J, z至此,光猫重启,升级结束 , B/ G1 x: X7 L- }3 }
所用到的 mtd6.bin 文件 论坛里已经提供很多了,那个hwp文件是什么我也搞不懂,升级后我用tftp也无法备份出来,懂的大佬可以在评论区回复* G% l+ a# k* R
4 p( H7 p0 T: g; a) F, m; B
& o: u5 s0 B4 v! G4 [6 {/ B
! Q: y @1 o, _: [; [3 \6 a7 B8 Q2 t6 c1 l6 Z" S
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|