Skip to content
Art Nikpal edited this page Jun 5, 2019 · 2 revisions

simple dump from spi

root@start:~# image_dump_spi2
[i] dump  bytes from  to /tmp/image_dump.SPI.bin
[x] dd if=/dev/mtdblock6 bs=8192  of=/tmp/image_dump.SPI.bin
2048+0 records in
2048+0 records out
16777216 bytes (16.0MB) copied, 9.772991 seconds, 1.6MB/s

same dump but for sd/mmc image usable (+8192 header)

root@start:~# image_dump_spi2sd
[i] dump  bytes from  to /tmp/image_dump.spi.MMC.bin
[x] dd if=/dev/mtdblock6 bs=8192 seek=1  of=/tmp/image_dump.spi.MMC.bin
2048+0 records in
2048+0 records out
16777216 bytes (16.0MB) copied, 9.775969 seconds, 1.6MB/s

both same but via ssh usage / remote copy

ssh root@zerm /opt/image_dump_spi2 - > image.SPI.bin or ssh root@zerm /opt/image_dump_spi2sd - > image.spi.MMC.bin