|
根据坛友所授方法:) v' E; i9 \, E% U9 h( o: d
+ s/ ~# n) a8 C* D) c a, I, }接ttl,打开串口,上电,不断点击回车,进uboot,依次输入以下命令:
1 E S- h* H j3 n: f sf probe
7 e8 R, r1 t( o; L7 Zsf updatemacsn 112233445566 12345abcdefgh
1 q0 p$ M" O; a 112233445566为mac,后者为sn,按需修改
# y3 h5 Q x9 U& Z5 j" R4 Y& m- b7 R& f0 X) W
没有修改成功
% G& y8 @4 V/ b% E求指点 问题出在哪儿,不知道是不是命令输入有误
. r" j$ _% {9 N4 A# w在此跪谢给位大佬
3 ~- m2 o. }& Q$ Q" k
. l, W" N: T/ U. W$ g: _+ V2 m4 XMarvell>> sf probe
3 i0 K! P6 R1 C, m5 G. S( f
! K# J% O @8 J$ [ machine id: 59d27c40ee176d8a9690c9e459a049ad7 B# G8 J$ ?. v$ ~
SF: Detected g325lp64d with page size 256 Bytes, erase size 4 KiB, total 8 MiB
& w8 ^. z; D# q+ j8 D Marvell>> sf updatemacsn 001132B60655 1980S6R9Z0BSM n( z" K! D# G$ l$ Z6 m2 T, q5 K# `
sf - SPI flash sub-system
9 V% a8 R& J- f7 b' U
; ?' g. {2 {7 q$ I6 V. H4 _ Usage:
% l& R* ^6 e P& A! d- s sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus5 ~. R$ }+ Y$ D) c; ?8 H0 R
and chip select
( y! k% ]( L. \/ i sf read addr offset|partition len - read `len' bytes starting at
9 C; X f% z! f2 x, k" e* c `offset' or from start of mtd
4 Q9 `$ T8 Z/ R6 \1 ?0 s `partition'to memory at `addr'
- ^( a6 ~& v5 C$ o sf write addr offset|partition len - write `len' bytes from memory# A! w' V ^4 }1 X- ~
at `addr' to flash at `offset'
' \' S; @/ A! c& c2 V! P$ _ or to start of mtd `partition'' Q, {. N' {; @4 ]3 S6 k# b
sf erase offset|partition [+]len - erase `len' bytes from `offset'
$ ^: w0 O8 X) H4 Q or from start of mtd `partition'
0 m* M, x: l) F! b+ q `+len' round up `len' to block size
& x0 d; {2 N" P. k sf update addr offset|partition len - erase and write `len' bytes from memor y
" h2 @# e1 @* [/ L at `addr' to flash at `offset'
! j$ d5 O" x8 i/ w* C2 u or to start of mtd `partition'+ }" T& e ` P8 w9 \ V4 z+ k% p
sf protect lock/unlock sector len - protect/unprotect 'len' bytes starting
2 E. @& U" a. g" f' K at address 'sector' _7 z, f' `; R7 @2 k: M3 ]
: z, R! Y7 v2 d9 h0 N
Marvell>>
$ ?' {8 w% K9 |9 ]6 G |
|