public
Created

mmc reading with recoveyr_util

  • Download Gist
mmc_read.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12
./sbloader 0 recovery.sb && \
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata noresp 0 0 - &&
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata noresp 0 0 - &&
for i in $(seq 0 30); do
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata resp 1 0x40ff8000 -
done &&
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata longresp 2 0 - &&
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata resp 3 0x10000 - &&
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata resp 7 0x10000 - &&
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata resp 13 0x10000 - &&
./util_reader/read_util 066f:3780 ssp_cmd 2 read resp 8 0 - &&
./util_reader/read_util 066f:3780 ssp_cmd 2 read resp 17 0 -

Looking for device 0x66f:0x3780...
device found at 2:11
configuration: 1
interfaces: 1
Use interface 0, alt 0
Use endpoint 129
Protocol version: 1
Protocol magic: badrock
20 00 10 e0 73 02 00 00 00 09 00 00 0e 07 00 9c ...s...........
01 00 00 10 00 00 55 aa 00 02 00 00 ......U.........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 11 ................
0f 07 01 00 c1 e9 00 ac 01 00 00 14 eb 00 00 10 ................
21 00 53 87 06 06 00 04 00 00 00 88 01 00 00 87 !.S.............
07 06 01 c9 0a 06 00 8c 01 00 00 10 00 00 00 c9 ................
0b 06 01 11 0e 07 00 9c 01 00 00 10 00 00 55 aa ..............U.
Device log:
wrapped command: cmd=0x2, flags=0x1
ssp command: ssp=2, cmd=0x11, arg=0x0, len=0x200
timing=0xF3C00
ctrl0=0x23030200
cmd0=0x190011
cmd1=0x0
ctrl1=0x273
status=0xE0140029
END
ctrl0=0x3030200
cmd0=0x190011
cmd1=0x0
ctrl1=0x273
status=0xE0100020
resp0=0x900

./sbloader 0 recovery.sb && \
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata noresp 0 0 - &&
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata noresp 0 0 - &&
for i in $(seq 0 5); do
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata resp 1 0x40ff8000 -
sleep 0.2s
done &&
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata longresp 2 0 - &&
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata resp 3 0x10000 - &&
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata resp 7 0x10000 - &&
./util_reader/read_util 066f:3780 ssp_cmd 2 nodata resp 13 0x10000 - &&
./util_reader/read_util 066f:3780 ssp_cmd 2 read resp 8 0 - &&
./util_reader/read_util 066f:3780 ssp_cmd 2 read resp 17 0 -

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.