|
根据坛友所授方法:
( c0 \! l' v& ], A# i0 V0 C. t
2 f6 [0 r( F8 _. N, M, K/ A" N接ttl,打开串口,上电,不断点击回车,进uboot,依次输入以下命令:7 ?9 \4 B @, S
sf probe1 ] c* ^# r* C2 A
sf updatemacsn 112233445566 12345abcdefgh( ]$ J* }- a: s+ R7 D. d
112233445566为mac,后者为sn,按需修改: G8 r) y5 C$ t! x
$ ?" S- j( h% z- R D" r2 G没有修改成功. E3 Z4 k, \$ n6 c
求指点 问题出在哪儿,不知道是不是命令输入有误
* y" g: m- D# D; |9 W在此跪谢给位大佬
, w* n* F8 R+ C l1 m r5 q( x8 b% Z" H
Marvell>> sf probe1 I! \$ g7 }# N6 U5 f& b
* q! G9 k3 F- T$ V7 V: a machine id: 59d27c40ee176d8a9690c9e459a049ad: Z; `- l6 a. {
SF: Detected g325lp64d with page size 256 Bytes, erase size 4 KiB, total 8 MiB
; T' W; }/ l# q! `) Q: j2 i Marvell>> sf updatemacsn 001132B60655 1980S6R9Z0BSM$ ~+ p3 ]1 G; W' h( j7 g7 [
sf - SPI flash sub-system4 Z/ N% e5 r* s# _% i% A
$ i( R5 N* |. B- L! ~+ i2 P
Usage:$ u/ r& _9 z. ?7 ~# A
sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus
* e1 u, P7 c ? and chip select
. s9 S: e& f* O sf read addr offset|partition len - read `len' bytes starting at3 i; a! F5 m3 |9 {
`offset' or from start of mtd
5 C( @+ M8 A1 X7 v3 T `partition'to memory at `addr'6 ]' ?) t/ Q- S6 |" f1 L- F
sf write addr offset|partition len - write `len' bytes from memory
4 m# e* R' v* T2 ^# c at `addr' to flash at `offset'" P/ _/ i* t4 G0 h9 D8 f! y( [+ x
or to start of mtd `partition'+ n' G! s& Z5 H7 k
sf erase offset|partition [+]len - erase `len' bytes from `offset'6 c7 f% ^- K3 N+ q
or from start of mtd `partition'
' K, g1 S# v& F, j. A, P; K `+len' round up `len' to block size6 Y* c. d1 k# ^" f% S
sf update addr offset|partition len - erase and write `len' bytes from memor y ?/ @7 G7 y# H- B
at `addr' to flash at `offset'
- r# }) R5 {( E: t, w or to start of mtd `partition'
1 z3 O" J6 f" n# P+ g$ C% `7 q4 C sf protect lock/unlock sector len - protect/unprotect 'len' bytes starting
- A c, g+ r: b" u3 s5 h# ]7 ]8 L3 q at address 'sector'3 n' D c0 V6 t. v, }8 J6 B4 H8 K; U
( p7 a$ M2 F6 U Marvell>>. i! r4 M+ M( q/ j3 ]9 j# `
|
|