Skip to content

Instantly share code, notes, and snippets.

@bakueikozo
Created May 21, 2021 14:58
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 bakueikozo/f8b9ca36f2a45335fd36b17217d4b0a9 to your computer and use it in GitHub Desktop.
Save bakueikozo/f8b9ca36f2a45335fd36b17217d4b0a9 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -x
echo "========== It works! ==========="
echo "========== It works! ==========="
echo "========== It works! ==========="
mkdir /tmp/dump
mount /dev/mmcblk0p1 /tmp/dump
dd if=/dev/mtdblock0 of=/tmp/dump/0_boot.bin
dd if=/dev/mtdblock1 of=/tmp/dump/1_kernel.bin
dd if=/dev/mtdblock2 of=/tmp/dump/2_rootfs.bin
dd if=/dev/mtdblock3 of=/tmp/dump/3_app.bin
dd if=/dev/mtdblock4 of=/tmp/dump/4_kback.bin
dd if=/dev/mtdblock5 of=/tmp/dump/5_aback.bin
dd if=/dev/mtdblock6 of=/tmp/dump/6_cfg.bin
dd if=/dev/mtdblock7 of=/tmp/dump/7_para.bin
sync
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment