Skip to content

Instantly share code, notes, and snippets.

@Forty-Bot
Created January 17, 2021 22:55
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/bebaff6e74b5f16c875638db7d1b4468 to your computer and use it in GitHub Desktop.
Save Forty-Bot/bebaff6e74b5f16c875638db7d1b4468 to your computer and use it in GitHub Desktop.
=> sf read 80200000 0 100
device 0 offset 0x0, size 0x100
jedec_spi_nor spi-flash@0: from 0x00000000, len 256
jedec_spi_nor spi-flash@0: op 3b 1-1-2 addr=0 wait=8
dw_spi spi@54000000: cr0=00400807 spi_cr0=00004218 buf=0000000080200000 len=256 [bytes]
00000000: 3b 00 00 00 ;...
dw_spi spi@54000000: 256 bytes xfered
SF: 256 bytes @ 0x0 Read: OK
=> md.b 80200000
80200000: 00 fa dc 05 00 73 25 40 f1 2a 82 ae 84 93 01 00 .....s%@.*......
80200010: 00 97 c2 04 00 83 b2 c2 8f 73 90 52 30 73 10 40 .........s.R0s.@
80200020: 30 89 42 63 54 52 1c a1 42 73 a0 42 30 c1 52 1b 0.BcTR..Bs.B0.R.
80200030: 03 10 20 5a 03 7d 13 33 71 53 00 0a 85 ef 80 e0 .. Z.}.3qS......
=> sf read 80200000 5 100
device 0 offset 0x5, size 0x100
jedec_spi_nor spi-flash@0: from 0x00000005, len 256
jedec_spi_nor spi-flash@0: op 3b 1-1-2 addr=5 wait=8
dw_spi spi@54000000: cr0=00400807 spi_cr0=00004218 buf=0000000080200000 len=256 [bytes]
00000000: 3b 00 00 05 ;...
dw_spi spi@54000000: 256 bytes xfered
SF: 256 bytes @ 0x5 Read: OK
=> md.b 80200000
80200000: 00 fa dc 05 00 73 25 40 f1 2a 82 ae 84 93 01 00 .....s%@.*......
80200010: 00 97 c2 04 00 83 b2 c2 8f 73 90 52 30 73 10 40 .........s.R0s.@
80200020: 30 89 42 63 54 52 1c a1 42 73 a0 42 30 c1 52 1b 0.BcTR..Bs.B0.R.
80200030: 03 10 20 5a 03 7d 13 33 71 53 00 0a 85 ef 80 e0 .. Z.}.3qS......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment