|
根据坛友所授方法:
& G+ @( _$ w: V
0 V7 Z: r* N# o ?- Y: j- t C" _接ttl,打开串口,上电,不断点击回车,进uboot,依次输入以下命令:
- I& }: J/ m7 _: q6 n sf probe
% u: W# q1 T7 R7 M1 Bsf updatemacsn 112233445566 12345abcdefgh
; e. R, q. y' I$ L+ @ 112233445566为mac,后者为sn,按需修改
0 C# j: a2 p. }4 L: V
" `" D* j) `! s没有修改成功
, |3 U- O" w7 k' O- L求指点 问题出在哪儿,不知道是不是命令输入有误 F7 R/ W: C: s
在此跪谢给位大佬1 I0 [# a$ |! g! m; u
& J% i4 E9 ^9 I) `* _4 HMarvell>> sf probe( I! z' O Z ?7 a4 Q
/ o, b" n0 D6 [) X9 l
machine id: 59d27c40ee176d8a9690c9e459a049ad
" M \0 x! ~: @, R! f$ `" d2 M3 } SF: Detected g325lp64d with page size 256 Bytes, erase size 4 KiB, total 8 MiB3 o. ?. N0 S: i+ d; x1 [- U7 b! k4 E: n8 q6 y
Marvell>> sf updatemacsn 001132B60655 1980S6R9Z0BSM) _& n+ [9 K8 v6 j s
sf - SPI flash sub-system A1 y; [& T2 _. b _& `+ q
' a6 g, [2 T9 |( Y# p1 w1 b
Usage:# E( {: l! r1 J5 p7 `6 j( u" I
sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus
; O- P G* q5 g3 M' Q7 f' Y( U' B and chip select" M1 C+ F+ l: I7 y) r
sf read addr offset|partition len - read `len' bytes starting at
& P' a0 G6 g! M0 g1 u# f. n `offset' or from start of mtd
$ ?# J0 @9 I L+ o* n$ L `partition'to memory at `addr'" T" C! j+ c6 i) n B& i
sf write addr offset|partition len - write `len' bytes from memory) c4 d' q' P6 G. v7 Y
at `addr' to flash at `offset': b# q) j2 y1 X' ~
or to start of mtd `partition'( j" s& x% V0 Q9 M$ ^3 f
sf erase offset|partition [+]len - erase `len' bytes from `offset'
! e) m# r t( u4 l; @9 V. a or from start of mtd `partition'
+ @7 r- U O# _8 u) M2 ] `+len' round up `len' to block size5 ]# W, [+ X" _% B; r2 V% G5 _
sf update addr offset|partition len - erase and write `len' bytes from memor y
6 W% R6 n- W% E. W4 Y at `addr' to flash at `offset': y, S( o- l% }, x& r
or to start of mtd `partition'& u- S1 t" h% s- n, Q9 [0 B4 s1 H
sf protect lock/unlock sector len - protect/unprotect 'len' bytes starting
: a3 H/ o7 s6 M6 t2 X* h at address 'sector'
: B' r) H, ^1 V! [4 ]
% T6 c1 u/ _' x0 A) D% w Marvell>>; |( T, V7 P' ?, f& \
|
|