How do I use the scatter file to readback the boot image? When tried first time loaded the scatter file and then from readback selected emmc_boot_1 but the file size is only 4kb.
Hi, when you input the scatter file, you see the following output for "download" tab. We are interested in the "boot" region:
Then go to Readback tab and click add, enter same value as the start of "boot" for starting location, in this case 0x21700000, and size 32 megabytes (0x2000000). That 32M is simply 0x23700000 - 0x21700000 (difference from start of next partition, "logo"). Actually, I had to enter the size with leading zeroes (0x00000000002000000) back when I did this originally, but this may have changed in recent flashtool versions. I did not need to do that now when I took the screenshot, for some reason.
No, I do not know how to get the endpoint of the boot image "cleanly". The patched image (from Magisk) is correct size. But 10 megs vs 32 - no difference really.