|
发表于 2019-10-26 20:53:00
|
显示全部楼层
- ]; R7 d0 t* z1 c+ D& `求指点 问题出在哪儿 跪谢3 C2 Z- n4 }' v" U8 D3 c8 ^3 v4 t1 u8 g
! r7 S f/ Q7 U$ L6 R# p
Marvell>> sf probe
2 u) @( l' H. A2 ]" `* W
1 N# H- i) E; K! Amachine id: 59d27c40ee176d8a9690c9e459a049ad
: a, C7 a& U& B9 iSF: Detected gd25lq64c with page size 256 Bytes, erase size 4 KiB, total 8 MiB0 q6 H- r4 ?- ?- n
Marvell>> sf updatemacsn 001132B60655 1980S6R9Z0BSM1 z# U! {% d! M# ~! p, Y
sf - SPI flash sub-system
$ a& e* w! _/ p* B
- ~% g, K9 h2 O/ u1 R" aUsage:
/ X( I% v' }1 w* Usf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus
4 n# F+ Q0 a" n% S) b4 B; v and chip select
2 ~) ]0 |8 d" Y1 b% bsf read addr offset|partition len - read `len' bytes starting at
) Z( e9 q H( }) c8 A/ {& s" B" b `offset' or from start of mtd' J' H4 m8 f: S# i* v- m
`partition'to memory at `addr'" c$ A! y% X( m6 B3 X7 l
sf write addr offset|partition len - write `len' bytes from memory% c& H" G1 Z1 J
at `addr' to flash at `offset'. `# C/ n7 \+ `; V- H: i4 ^
or to start of mtd `partition'
* T8 G) Y) O1 C+ msf erase offset|partition [+]len - erase `len' bytes from `offset'
& M8 x$ M1 J5 x( e, c% _ or from start of mtd `partition'; d t' o% X5 O+ b4 t2 p" ~
`+len' round up `len' to block size
# G' O* `9 r( k# g% s' s, ~- Dsf update addr offset|partition len - erase and write `len' bytes from memor y. q0 r l3 W7 C" L1 `- L
at `addr' to flash at `offset'( ^5 B) S3 o& ^# X$ I* r' A- y
or to start of mtd `partition'; ~; X/ d1 E6 e
sf protect lock/unlock sector len - protect/unprotect 'len' bytes starting& w H( Y0 r, m- O' [/ J4 G8 D$ b( \
at address 'sector'
' F4 t# b. V: a1 q) V4 w
4 e! l5 {+ x. _5 ?+ o$ m o' z' }Marvell>>
9 ?' y& U/ g" y2 V- _8 y; a |
|