Hovatek Forum MOBILE Android [Please help] Running SP Flash Tool In Console Mode
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


[Please help] Running SP Flash Tool In Console Mode

[Please help] Running SP Flash Tool In Console Mode

Pages (3): 1 2 3 Next
EricMcm
EricMcm
EricMcm
Enthusiastic Member
12
14-03-2019, 12:03 PM
#1



How can one use SP Flash tool in console mode?
For example I've the following config which I intend to use to perform a readback operation but am gettting "readback filename has empty".

<?xml version="1.0" encoding="UTF-8" ?>
<flashtool-config version="2.0">
<general>
<chip-name>MT6580</chip-name>
<storage-type>EMMC</storage-type>
<download-agent>D:\SP_Flash_Tool_v5.1824_Win\MTK_AllInOne_DA.bin</download-agent>
<scatter>D:\MTK-Chipsets\MT6580_Android_scatter.txt</scatter>
<authentication></authentication>
<certification></certification>
<rom-list>
<rom index="0" enable="false"></rom>
</rom-list>
<connection type="BromUSB" high-speed="true" power="AutoDetect" da_log_level="Info" da_log_channel="UART" timeout-count="3600000" com-port="" />
<checksum-level>none</checksum-level>
<!--log_on: log switch, enable log if true, otherwise false;
log_path: the directory in which the log files has been stored;
clean_hours: the time setting to delete log files regularly, the unit is hours.-->
<log-info log_on="true" log_path="C:\ProgramData\SP_FT_Logs" clean_hours="672" />
</general>
<commands>
<readback>
<physical-readback is-physical-readback="true" />
<readback-list>
<readback-rom-item start-address="0x0" readback-length="0x80000" readback-index="0" readback-enable="true" readback-partion="EMMC_BOOT_1" />
</readback-list>
</readback>
</commands>
</flashtool-config>
X3non
X3non
X3non
Recognized Contributor
22,062
14-03-2019, 04:57 PM
#2
(14-03-2019, 12:03 PM)EricMcm How can one use SP Flash tool in console mode?
...

you didn't specify the filename and the closing tag for read-rom-item so it won't save anything
e.g
  • <readback-rom-item readback-index="0" readback-enable="true" start-address="0x0" readback-length="0x80000" readback-partion="EMMC_BOOT_1">C:\Xenon\desktop\ROM_0<readback-rom-item/>
  • <readback-rom-item readback-index="1" readback-enable="true" start-address="0x0" readback-length="0x80000" readback-partion="EMMC_USER">C:\Xenon\desktop\ROM_1<readback-rom-item/>



to run the operation using the xml file, command should be something like this
  • flash_tool -b -i config.xml
    then you connect your phone

OR specify the port (you'll need to connect the phone to check the riight port number)
  • flash_tool -b -p COM40 -i config.xml
    replace com40 with the correct port number you get in your PC then you connect your phone


if you're using powershell in windows, you know you need to add .\ in front of the command so it looks like this .\flash_tool ........
why don't you simply run the tool in GUI mode? i mean its way more easier
This post was last modified: 14-03-2019, 05:59 PM by X3non.
EricMcm
EricMcm
EricMcm
Enthusiastic Member
12
15-03-2019, 07:56 AM
#3
Thank you very much X3non. Indeed that was the issue.
>>>>
On another note, is there a way one can get the preloader file in console mode using WwR_MTK?
X3non
X3non
X3non
Recognized Contributor
22,062
15-03-2019, 09:41 AM
#4
(15-03-2019, 07:56 AM)EricMcm ...
On another note, is there a way one can get the preloader file in console mode using WwR_MTK?

sadly, no
what OS are you using?
EricMcm
EricMcm
EricMcm
Enthusiastic Member
12
15-03-2019, 09:47 AM
#5



Am running on Windows OS.
>>>>>
If one has a "complete" scatter file say like the attached, one would be able to perform a physical dump of the phone. Now, is there a way in which one can get the scatter files in console mode?

I've seen some sites having some already predefined scatter files, but am not so sure it would be prudent to use them as source of truth.
X3non
X3non
X3non
Recognized Contributor
22,062
15-03-2019, 03:19 PM
#6
(15-03-2019, 09:47 AM)EricMcm ...If one has a "complete" scatter file say like the attached, one would be able to perform a physical dump of the phone. Now, is there a way in which one can get the scatter files in console mode? ...

No


(15-03-2019, 09:47 AM)EricMcm ...
I've seen some sites having some already predefined scatter files, but am not so sure it would be prudent to use them as source of truth.

not a good idea to use scatter file from just anywhere
phones having the same chipset doesn't mean they'll have exactly the same partitions or partition sizes.
EricMcm
EricMcm
EricMcm
Enthusiastic Member
12
26-03-2019, 08:35 AM
#7
Hello, I've the attached sample config file. In the readback-list, I've a readback-list-item with a readback length of 0x24B0800000. However, upon running, the console logs shows that the length being read is 0xb0800000. Why is this happening? And is there a way to resolve it?
X3non
X3non
X3non
Recognized Contributor
22,062
26-03-2019, 10:51 AM
#8
(26-03-2019, 08:35 AM)EricMcm Hello, I've the attached sample config file. In the readback-list, I've a readback-list-item with a readback length of 0x24B0800000. However, upon running, the console logs shows that the length being read is 0xb0800000. Why is this happening? And is there a way to resolve it?

i want to believe that no phone at least no mediatek phone has a storage length such as 0x24b0800000
tried converting this value to decimal yet? 157580001280 which is approximate to 146GB

you should verify how you manage to obtain readback length
how did you obtain readback length?
EricMcm
EricMcm
EricMcm
Enthusiastic Member
12
27-03-2019, 07:51 AM
#9
Hello,

I've an image already which I generated successfully. On inspecting it (fdisk -l <image>), am able to see it has 15758000128 bytes. Converting that value to hex am getting 0x3AB400000 which i then set under <readback-list> as below :-

<readback-rom-item readback-index="0" readback-enable="true" start-address="0x0" readback-length="0x3AB400000" readback-partion="EMMC_USER">F:\Configs\ROM_1</readback-rom-item>

However, upon executing, the hex value is trimmed, in that instead of 0x3AB400000, the value obtained is 0xAB400000, hence at the end of the readback am only getting just around 2.8GB of data instead of around 14.5GB.

See the attached scatter file & the config file am using (
.txt
MT6580_Android_scatter.txt
Size: 1.01 KB / Downloads: 44
and
.txt
config.txt
Size: 1.41 KB / Downloads: 94
)
This post was last modified: 27-03-2019, 07:52 AM by EricMcm.
X3non
X3non
X3non
Recognized Contributor
22,062
27-03-2019, 11:40 AM
#10



(27-03-2019, 07:51 AM)EricMcm Hello,
...
See the attached scatter file & the config file am using ( and )

somehow i dont think 0x3AB400000 is the full length for a 16GB phone, you should either read PGPT or perform a ram test on the phone to verify the exact full length rather than estimate

for the trimming, try setting start address as 0x0000000000000000 ; not sure this helps but you can try, you could also try a different sp flash tool version
Pages (3): 1 2 3 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram