bkerler / edl

Inofficial Qualcomm Firehose / Sahara / Streaming / Diag Tools :)
GNU General Public License v3.0
1.66k stars 385 forks source link

31mwf command isn't supported by streaming loader #164

Open thetechdudemc opened 3 years ago

thetechdudemc commented 3 years ago

attempting to use python edl.py wf flash.bin with a Qualcomm MDM9207 that I just dumped the flash successfully to using python edl.py rf flash.bin and I'm getting the error streaming_client - [LIB]: ←[31mwf command isn't supported by streaming loader←[0m

Full output

............main - Device detected :) main - Mode detected: sahara Device is in EDL mode .. continuing. sahara -

HWID: 0x000480e100000000 (MSM_ID:0x000480e1,OEM_ID:0x0000,MODEL_ID:0x0000) CPU detected: "MDM9207" PK_HASH: 0xcc3153a80293939b90d02d3bf8b23e0292e452fef662c74998421adad42a380f Serial: 0x62c41a84

sahara - Possibly unfused device detected, so any loader should be fine... sahara - Trying loader: C:\Users\watch\edl\edl..\Loaders\qualcomm\patched\mdm9x07\000480e100000000_cc3153a80293939b_enprg_peek.bin sahara - Uploading loader C:\Users\watch\edl\edl..\Loaders\qualcomm\patched\mdm9x07\000480e100000000_cc3153a80293939b_enprg_peek.bin ... Streaming - Successfully uploaded programmer :) Streaming - HELLO protocol version: 3 Streaming - Chipset: 9x07 Streaming - Base address of the NAND controller: 079b0000 Streaming - Sector size: 516 bytes Streaming - Spare bytes: 2 bytes Streaming - Defective block marker position: spare+6 Streaming - The total size of the flash memory = 2048 blocks (512 MB) Streaming - Flash memory: Toshiba KSLCMBL2VA2M2A, NAND 512MiB 1.8V 8-bit Streaming - Page size: 4096 bytes (8 sectors) Streaming - The number of pages in the block: 64 Streaming - OOB size: 256 bytes Streaming - ECC: BCH, 8 bit Streaming - ЕСС size: 2 bytes Successfully uploaded programmer :) streaming_client streaming_client - [LIB]: ←[31mwf command isn't supported by streaming loader←[0m

no clue how it was able to dump fine but now can't write it back

thetechdudemc commented 3 years ago

It also states main - Mode detected: nandprg so I guess this is for nand flashing

thetechdudemc commented 3 years ago

If this tool can't do this can someone please point me to a tool that will?

I have two Orbic Speed RC400L hotspots, I have one that works perfectly and one that needs firmware flashed to it. I'm trying to make a dump image of the one that works and flash it to the one that doesn't. I put the one that works into EDL and using the commands above made a flash.bin file, and then plugged in the one that didn't work and am getting that error. Furthermore I tried the one that works fine that I made the flash file of and that one doesn't work either, so it's not a device issue.

thetechdudemc commented 3 years ago

Even more issues :/

So after the above failed, I decided to try something different

Connected first device in EDL and did python edl.py rl dumps --skip=modem --genxml and this worked, it created all the partition dumps successfully

I then connected the second device to flash with these dumps in EDL and did python edl.py wl dumps and got this

....main - Device detected :) main - Mode detected: sahara Device is in EDL mode .. continuing. sahara -

HWID: 0x000480e100000000 (MSM_ID:0x000480e1,OEM_ID:0x0000,MODEL_ID:0x0000) CPU detected: "MDM9207" PK_HASH: 0xcc3153a80293939b90d02d3bf8b23e0292e452fef662c74998421adad42a380f Serial: 0x62c41a84

sahara - Possibly unfused device detected, so any loader should be fine... sahara - Trying loader: C:\Users\watch\edl\edl..\Loaders\qualcomm\patched\mdm9x07\000480e100000000_cc3153a80293939b_enprg_peek.bin sahara - Uploading loader C:\Users\watch\edl\edl..\Loaders\qualcomm\patched\mdm9x07\000480e100000000_cc3153a80293939b_enprg_peek.bin ... Streaming - Successfully uploaded programmer :) Streaming - HELLO protocol version: 3 Streaming - Chipset: 9x07 Streaming - Base address of the NAND controller: 079b0000 Streaming - Sector size: 516 bytes Streaming - Spare bytes: 2 bytes Streaming - Defective block marker position: spare+6 Streaming - The total size of the flash memory = 2048 blocks (512 MB) Streaming - Flash memory: Toshiba KSLCMBL2VA2M2A, NAND 512MiB 1.8V 8-bit Streaming - Page size: 4096 bytes (8 sectors) Streaming - The number of pages in the block: 64 Streaming - OOB size: 256 bytes Streaming - ECC: BCH, 8 bit Streaming - ЕСС size: 2 bytes Successfully uploaded programmer :) Traceback (most recent call last): File "edl.py", line 362, in base.run() File "edl.py", line 353, in run sc.handle_streaming(cmd, options) File "C:\Users\watch\edl\edl\Library\streaming_client.py", line 366, in handle_streaming if self.streaming.enter_flash_mode(): File "C:\Users\watch\edl\edl\Library\streaming.py", line 173, in enter_flash_mode self.send_ptable(ptable, 0) # 1 for fullflash File "C:\Users\watch\edl\edl\Library\streaming.py", line 229, in send_ptable cmdbuf = b"\x19" + pack("<B", mode) + parttable TypeError: can't concat NoneType to bytes

bkerler commented 2 years ago

Writing isn't yet supported, as it already states.