|
根据坛友所授方法:! [5 S- b' u2 z, I; p) v
- u- [, @2 V3 ]2 ?2 }* |接ttl,打开串口,上电,不断点击回车,进uboot,依次输入以下命令:
8 v4 O& G5 Z7 K- r1 T sf probe# U: H! Y$ | M3 `" k7 S; C: `" B; x
sf updatemacsn 112233445566 12345abcdefgh
9 R K/ R% V7 B/ l1 D 112233445566为mac,后者为sn,按需修改
0 c4 @! t3 e# s% l% F. E( J4 n/ _, ?* Q; t
没有修改成功1 V, l% _9 U. T# d; k! N
求指点 问题出在哪儿,不知道是不是命令输入有误! H B8 h# N# |1 G1 f
在此跪谢给位大佬
7 w. s l# A, m- b7 G( F/ s
9 t% r# T; E) e/ P3 x* H/ KMarvell>> sf probe
. C/ E: l5 j: }
- O6 f$ Z; r8 p) ~ machine id: 59d27c40ee176d8a9690c9e459a049ad
6 o; K0 \( X( [ SF: Detected g325lp64d with page size 256 Bytes, erase size 4 KiB, total 8 MiB0 c* n1 l) q, b; h' z
Marvell>> sf updatemacsn 001132B60655 1980S6R9Z0BSM$ q4 q) s/ z3 m( l5 `+ X, B
sf - SPI flash sub-system( R5 L3 g, N( w: y" Z; A, I( u
' T. T" v+ Z# D M7 c2 D Usage:$ o6 ?, d( a2 u4 f D* W1 l
sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus: h! B+ S: s' h e7 n' R# Y
and chip select
% X8 C! `: B/ ?/ q# \! r; y5 } sf read addr offset|partition len - read `len' bytes starting at
3 s( Z+ S( N$ ~4 b `offset' or from start of mtd
$ T" n, s; b! Z; g `partition'to memory at `addr'
Q' r2 t* D6 A sf write addr offset|partition len - write `len' bytes from memory
- z- F! v7 {3 p- R at `addr' to flash at `offset'
; e0 q$ h4 F4 j or to start of mtd `partition'# }: @/ @6 C4 c/ \ [+ ? L
sf erase offset|partition [+]len - erase `len' bytes from `offset'
& m! K, {# Y5 v9 R7 x) s or from start of mtd `partition'' Y" t9 h9 U. x8 T7 |
`+len' round up `len' to block size" p7 |' \+ \* n2 ~4 q4 G
sf update addr offset|partition len - erase and write `len' bytes from memor y
1 I4 d; @/ s* a* k2 S& w5 N/ B at `addr' to flash at `offset'$ s5 u* X* O' ^2 k: F
or to start of mtd `partition'
7 J8 l( R; y5 Z2 g sf protect lock/unlock sector len - protect/unprotect 'len' bytes starting2 N7 g, v9 u3 x9 Y6 l K. f
at address 'sector'
# F8 I: u! O7 G) u6 d- M* @5 f9 i+ T9 m6 h5 ]4 d
Marvell>>
# P5 a4 B" D- T9 i( C+ r7 r |
|