20-12-2017, 03:02 PM
In this tutorial, we'll be showing how to clean up a preloader dump file gotten from an SP flash tool readback. What you will notice after dumping preloader is that the file is usually very large, this is because SP flash tool dumps the entire partition including empty sectors. One will need to clean up the preloader dump before he / she will be able to flash it. I've attached a RAW dump and CLEAN preloader file for those who wish to practice.
Important Notice
- A better and easier method to do will be to use the "preloader analysis" feature in WwR-MTK tool
Requirements
- Download HXD editor
- The preloader.bin file you got from your SP flash tool readback
How to clean-up Preloader dump created using SP flash tool readback
Follow the steps below to clean up preloader dump created using SP flash tool readback
- Download, install and Launch HXD
- Open the preloader file using HXD (you can simply drag the preloader.bin file onto the HXD window)
- Press "control + F" to find, fill the find window with the values below then click OK
Code:Search for: 4D 4D 4D 01 38
Datatype: Hex-values
Search direction: All
- Look at the right section of HXD, highlight and delete everything above "MMM.8"
- You'll get a delete confimation window, click OK
- Now, search again for the hex values below (best you copy out the values in code tag below)
Code:FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- It will be highlighed once it has been found, simply hold down your shift key then scroll to the end of the file and click on the last item under Hex. Then press your delete button.
- You'll get a delete confimation window, click OK
- Save the modified file, then exit HXD
- The newly modified file is now your clean preloader.bin