|
根据坛友所授方法:
+ J7 {9 g6 I8 }8 c; ^# F+ V: }" c
接ttl,打开串口,上电,不断点击回车,进uboot,依次输入以下命令:
# ^6 X) B: @1 ?; {/ K Z- P' C" ` I sf probe
" }5 [2 ~( D' N5 B0 ]/ [sf updatemacsn 112233445566 12345abcdefgh1 Z6 g" ^' V2 ^ e* w# @; i6 l
112233445566为mac,后者为sn,按需修改
9 \9 I- ]- v# c: Z j2 |$ c4 x, Z+ f8 M- n4 {/ |
没有修改成功# F, {' }6 D. A, Q
求指点 问题出在哪儿,不知道是不是命令输入有误9 }% j2 V- P7 y* q3 _
在此跪谢给位大佬
7 b: U/ f9 m9 k; ^! T' f) C+ ^- @, I- a. n7 H
Marvell>> sf probe
( B; M0 v$ g4 z4 ]3 M! w( `) \$ d! _& a, I/ V. k0 x+ @
machine id: 59d27c40ee176d8a9690c9e459a049ad
8 W, e! G; b' n% Z6 V) h SF: Detected g325lp64d with page size 256 Bytes, erase size 4 KiB, total 8 MiB
0 x0 @9 N1 A, H3 r$ }$ ]; ]# Q$ o$ W9 O Marvell>> sf updatemacsn 001132B60655 1980S6R9Z0BSM
- m" ?' f! b6 N+ Y sf - SPI flash sub-system
/ Y9 m8 _0 u# U V: h" V9 `1 g* f% u+ i/ m& x9 R
Usage:! ]; }6 L4 h w* X* i# `
sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus
8 ?! C& q: L9 `: p8 m1 @/ G6 S/ T and chip select' h: n& O: x3 Q {
sf read addr offset|partition len - read `len' bytes starting at1 p2 K. Q4 ^+ H0 V9 L
`offset' or from start of mtd
0 f/ q- p. ?. S4 }8 W* x `partition'to memory at `addr'
2 H! W# K' e1 ~+ A4 } sf write addr offset|partition len - write `len' bytes from memory4 _* q" t3 c1 t6 |8 ^2 M2 g. T+ y
at `addr' to flash at `offset'
9 E. f& m, f' {0 A" \, g$ Y, r! { [3 O or to start of mtd `partition'
( o$ d8 T: \3 u/ r4 G sf erase offset|partition [+]len - erase `len' bytes from `offset'
& F% L7 S( \, C& z3 y' _ or from start of mtd `partition'4 g D$ f* h; n. r
`+len' round up `len' to block size
/ V) g: h: I N sf update addr offset|partition len - erase and write `len' bytes from memor y9 q" e/ S* F* Y
at `addr' to flash at `offset'3 g; L- A2 r8 m0 Y0 U2 \
or to start of mtd `partition'
$ u+ C* n: L F$ @4 [3 d sf protect lock/unlock sector len - protect/unprotect 'len' bytes starting6 s$ Q0 }5 f' X+ K. m9 f9 U
at address 'sector'9 y7 x9 d# v; h4 K, @
S! z/ W5 V* C1 x
Marvell>>
1 Y7 r) e0 F$ \ \6 {( a& L2 @ |
|