Skip to content

Instantly share code, notes, and snippets.

@mohamad-supangat
Created October 11, 2022 07:15
Show Gist options
  • Save mohamad-supangat/e7e76409a5df8418f35ac630864eb917 to your computer and use it in GitHub Desktop.
Save mohamad-supangat/e7e76409a5df8418f35ac630864eb917 to your computer and use it in GitHub Desktop.
backup and restore boot and recovery using dd

backup with dd

dd if=/dev/block/mmcblk0 of=/storage/sdcard1/boot.img bs=4096 count=4096 skip=7552
dd if=/dev/block/mmcblk0 of=/storage/sdcard1/recovery.img bs=4096 count=4096 skip=11648
fash boot.img with dd
dd if=/sdcard/image-new.img of=/dev/block/platform/155a0000.ufs/by-name/BOOT
@mohamad-supangat
Copy link
Author

mohamad-supangat commented Dec 22, 2023

Backup boot.img

dd of=/sdcard/boot.img if=/dev/block/platform/155a0000.ufs/by-name/BOOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment