Skip to content

Instantly share code, notes, and snippets.

@Forty-Bot
Created January 23, 2021 02:17
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/40c8a5c1a0539f40d461364d470d8179 to your computer and use it in GitHub Desktop.
Save Forty-Bot/40c8a5c1a0539f40d461364d470d8179 to your computer and use it in GitHub Desktop.
=> sf read 80200000 5 1000
device 0 offset 0x5, size 0x1000
jedec_spi_nor spi-flash@0: from 0x00000005, len 4096
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=5 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200000 len=4096 [bytes]
dw_spi spi@54000000: 68 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=49 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200044 len=4028 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=7d wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200078 len=3976 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=b1 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802000ac len=3924 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=e3 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802000de len=3874 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=115 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200110 len=3824 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=149 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200144 len=3772 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=17d wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200178 len=3720 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=1af wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802001aa len=3670 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=1e3 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802001de len=3618 [bytes]
dw_spi spi@54000000: 53 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=218 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200213 len=3565 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=24c wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200247 len=3513 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=280 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=000000008020027b len=3461 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=2b4 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802002af len=3409 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=2e8 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802002e3 len=3357 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=31c wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200317 len=3305 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=34e wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200349 len=3255 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=382 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=000000008020037d len=3203 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=3b6 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802003b1 len=3151 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=3e8 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802003e3 len=3101 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=41a wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200415 len=3051 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=44e wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200449 len=2999 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=482 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=000000008020047d len=2947 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=4b6 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802004b1 len=2895 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=4ea wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802004e5 len=2843 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=51c wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200517 len=2793 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=550 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=000000008020054b len=2741 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=584 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=000000008020057f len=2689 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=5b8 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802005b3 len=2637 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=5ec wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802005e7 len=2585 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=61e wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200619 len=2535 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=650 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=000000008020064b len=2485 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=682 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=000000008020067d len=2435 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=6b6 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802006b1 len=2383 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=6e8 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802006e3 len=2333 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=71c wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200717 len=2281 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=750 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=000000008020074b len=2229 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=784 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=000000008020077f len=2177 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=7b8 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802007b3 len=2125 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=7ec wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802007e7 len=2073 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=81e wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200819 len=2023 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=852 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=000000008020084d len=1971 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=886 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200881 len=1919 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=8ba wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802008b5 len=1867 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=8ee wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802008e9 len=1815 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=922 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=000000008020091d len=1763 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=956 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200951 len=1711 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=98a wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200985 len=1659 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=9be wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802009b9 len=1607 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=9f2 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=00000000802009ed len=1555 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=a26 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200a21 len=1503 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=a58 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200a53 len=1453 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=a8c wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200a87 len=1401 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=ac0 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200abb len=1349 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=af4 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200aef len=1297 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=b28 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200b23 len=1245 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=b5a wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200b55 len=1195 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=b8c wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200b87 len=1145 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=bc0 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200bbb len=1093 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=bf2 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200bed len=1043 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=c26 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200c21 len=991 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=c5a wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200c55 len=939 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=c8e wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200c89 len=887 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=cc0 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200cbb len=837 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=cf4 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200cef len=785 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=d28 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200d23 len=733 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=d5a wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200d55 len=683 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=d8e wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200d89 len=631 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=dc2 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200dbd len=579 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=df6 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200df1 len=527 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=e28 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200e23 len=477 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=e5c wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200e57 len=425 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=e90 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200e8b len=373 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=ec4 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200ebf len=321 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=ef6 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200ef1 len=271 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=f28 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200f23 len=221 [bytes]
dw_spi spi@54000000: 50 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=f5a wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200f55 len=171 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=f8e wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200f89 len=119 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=fc2 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200fbd len=67 [bytes]
dw_spi spi@54000000: 53 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=ff7 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200ff2 len=14 [bytes]
dw_spi spi@54000000: 14 bytes xfered
SF: 4096 bytes @ 0x5 Read: OK
=> cmp.b 80000000 80200000 1000
byte at 0x80000000 (0x73) != byte at 0x80200000 (0x25)
Total of 0 byte(s) were the same
=> cmp.b 80000000 80200001 1000
byte at 0x80000000 (0x73) != byte at 0x80200001 (0x40)
Total of 0 byte(s) were the same
=> cmp.b 80000001 80200000 1000
byte at 0x8000002d (0x20) != byte at 0x8020002c (0x5a)
Total of 44 byte(s) were the same
=> md.b 80000001
80000001: 25 40 f1 2a 82 ae 84 93 01 00 00 97 d2 04 00 83 %@.*............
80000011: b2 42 8d 73 90 52 30 73 10 40 30 89 42 63 54 52 .B.s.R0s.@0.BcTR
80000021: 1c a1 42 73 a0 42 30 c1 52 1b 03 10 20 5a 03 7d ..Bs.B0.R... Z.}
80000031: 13 33 71 53 00 0a 85 ef 80 90 23 2a 84 93 12 e2 .3qS......#*....
=> md.b 80200000
80200000: 25 40 f1 2a 82 ae 84 93 01 00 00 97 d2 04 00 83 %@.*............
80200010: b2 42 8d 73 90 52 30 73 10 40 30 89 42 63 54 52 .B.s.R0s.@0.BcTR
80200020: 1c a1 42 73 a0 42 30 c1 52 1b 03 10 5a 7d 33 53 ..Bs.B0.R...Z}3S
80200030: 0a ef 90 2a 93 e2 33 55 97 04 83 a2 05 2f 62 63 ...*..3U...../bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment