Created
May 21, 2021 14:58
-
-
Save bakueikozo/f8b9ca36f2a45335fd36b17217d4b0a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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