Skip to content

Instantly share code, notes, and snippets.

@Forty-Bot
Created January 17, 2021 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Forty-Bot/9c940ada7e772fc9858a4b799ddd39ff to your computer and use it in GitHub Desktop.
Save Forty-Bot/9c940ada7e772fc9858a4b799ddd39ff to your computer and use it in GitHub Desktop.
=> sf read 80200000 10000 100
device 0 offset 0x10000, size 0x100
jedec_spi_nor spi-flash@0: from 0x00010000, len 256
jedec_spi_nor spi-flash@0: op 3b 1-1-2 addr=10000 wait=8
dw_spi spi@54000000: cr0=00400807 spi_cr0=00004218 buf=0000000080200000 len=256 [bytes]
00000000: 3b 01 00 00 ;...
dw_spi spi@54000000: 256 bytes xfered
SF: 256 bytes @ 0x10000 Read: OK
=> md.b 80200000
80200000: fa dc 05 00 73 25 40 f1 2a 82 ae 84 93 01 00 00 ....s%@.*.......
80200010: 97 c2 04 00 83 b2 c2 8f 73 90 52 30 73 10 40 30 ........s.R0s.@0
80200020: 89 42 63 54 52 1c a1 42 73 a0 42 30 c1 52 1b 03 .BcTR..Bs.B0.R..
80200030: 10 20 5a 03 7d 13 33 71 53 00 0a 85 ef 80 e0 7a . Z.}.3qS......z
=> sf read 80200000 20000 100
device 0 offset 0x20000, size 0x100
jedec_spi_nor spi-flash@0: from 0x00020000, len 256
jedec_spi_nor spi-flash@0: op 3b 1-1-2 addr=20000 wait=8
dw_spi spi@54000000: cr0=00400807 spi_cr0=00004218 buf=0000000080200000 len=256 [bytes]
00000000: 3b 02 00 00 ;...
dw_spi spi@54000000: 256 bytes xfered
SF: 256 bytes @ 0x20000 Read: OK
=> md.b 80200000
80200000: dc 05 00 73 25 40 f1 2a 82 ae 84 93 01 00 00 97 ...s%@.*........
80200010: c2 04 00 83 b2 c2 8f 73 90 52 30 73 10 40 30 89 .......s.R0s.@0.
80200020: 42 63 54 52 1c a1 42 73 a0 42 30 c1 52 1b 03 10 BcTR..Bs.B0.R...
80200030: 20 5a 03 7d 13 33 71 53 00 0a 85 ef 80 e0 7a 2a Z.}.3qS......z*
=> sf read 80200000 30000 100
device 0 offset 0x30000, size 0x100
jedec_spi_nor spi-flash@0: from 0x00030000, len 256
jedec_spi_nor spi-flash@0: op 3b 1-1-2 addr=30000 wait=8
dw_spi spi@54000000: cr0=00400807 spi_cr0=00004218 buf=0000000080200000 len=256 [bytes]
00000000: 3b 03 00 00 ;...
dw_spi spi@54000000: 256 bytes xfered
SF: 256 bytes @ 0x30000 Read: OK
=> md.b 80200000
80200000: 05 00 73 25 40 f1 2a 82 ae 84 93 01 00 00 97 c2 ..s%@.*.........
80200010: 04 00 83 b2 c2 8f 73 90 52 30 73 10 40 30 89 42 ......s.R0s.@0.B
80200020: 63 54 52 1c a1 42 73 a0 42 30 c1 52 1b 03 10 20 cTR..Bs.B0.R...
80200030: 5a 03 7d 13 33 71 53 00 0a 85 ef 80 e0 7a 2a 84 Z.}.3qS......z*.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment