Code Monkey home page Code Monkey logo

Comments (14)

hoplik avatar hoplik commented on August 20, 2024 1

v2.16. for win.
emmcdl_2_16.exe.zip

from emmcdl.

totalolage avatar totalolage commented on August 20, 2024

I'm having a similar issue (on windows), any progeress?

from emmcdl.

hoplik avatar hoplik commented on August 20, 2024

I did not manage to compile the project at all (In Windows10, under VS2019), but using a ready-made exe file, everything works successfully, without errors. I would like to have a working package for Linux.

from emmcdl.

totalolage avatar totalolage commented on August 20, 2024

I'm trying to compile it now. Do you have a link to the exe you used? Or can you share it? (I'm using win 7 though)

from emmcdl.

totalolage avatar totalolage commented on August 20, 2024

Thank you very much, unfortunately the issue persists :(

(this is now running the executable you shared; same result)
image

from emmcdl.

hoplik avatar hoplik commented on August 20, 2024

Driver not correct, i think. Device in EDL (emergency download) pid 9008. No any ! in com-port list.

from emmcdl.

totalolage avatar totalolage commented on August 20, 2024

I tried reinstalling all drivers with no success.
I've now compiled emmcdl on linux and have the identical behaviour to what you had;
image

Edit:
I put some debugging prints into the code and recompiled. A check on the device fails in the match_fastboot_with_serial function (in usbport.cpp). For some reason, my device reports a USB interface code of 0x10 when the tool expects 0xff. These codes are vendor specific and I have so far not found what they mean.

from emmcdl.

hoplik avatar hoplik commented on August 20, 2024

I think there is a problem with the USB port settings in Linux. Unfortunately, I can't find any information about what parameters I need to set for stable operations.

from emmcdl.

spvkgn avatar spvkgn commented on August 20, 2024

I put some debugging prints into the code and recompiled. A check on the device fails in the match_fastboot_with_serial function (in usbport.cpp). For some reason, my device reports a USB interface code of 0x10 when the tool expects 0xff. These codes are vendor specific and I have so far not found what they mean.

https://www.usb.org/defined-class-codes

I got ff codes in Class, SubClass and Protocol but same problem occurs.

$ sudo cat /sys/kernel/debug/usb/devices
…
T:  Bus=01 Lev=01 Prnt=01 Port=03 Cnt=02 Dev#=  7 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=05c6 ProdID=9008 Rev= 0.00
S:  Manufacturer=Qualcomm CDMA Technologies MSM
S:  Product=QHSUSB__BULK
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=  2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

from emmcdl.

hoplik avatar hoplik commented on August 20, 2024

In response to the code
sudo cat /sys/kernel/debug/usb/devices
I get the same response about Vendor Specific Class Code
T: Bus=01 Lev=01 Prnt=01 Port=04 Cnt=02 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=05c6 ProdID=9008 Rev= 0.00 S: Manufacturer=Qualcomm CDMA Technologies MSM S: Product=QUSB__BULK C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 2mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

from emmcdl.

spvkgn avatar spvkgn commented on August 20, 2024

There is another fork https://github.com/ccz120/emmcdl , it works with ttyUSB but it seems there is a problem with gpt dump option. Other options not tested yet.

$ sudo ./emmcdl -p ttyUSB0 -info
Version 2.10
open serial port:/dev/ttyUSB0 succeed
Serial Port No data within five seconds. Success

===============Device Class:sahara Protocol:firehose Emergency:false================
Sahara version 1--2 
mode 3.
SerialNumber: 0x66f8b654
MSM_HW_ID: 0x0004f0e1
OEM_PK_HASH: 0xcab02552dc28f562e8c5befa75bc4a97b90aab1c91a3c186ec51f3d3d7d6a1c7
SBL SW Version: 0x00000000

Status: 0 Success

$ sudo ./emmcdl -p ttyUSB0 -f prog_emmc_firehose_8937_ddr.mbn -gpt
Version 2.10
open serial port:/dev/ttyUSB0 succeed
Serial Port No data within five seconds. Success
PblHack: Error - cmd:1836597052, status:824327534
Serial Port No data within five seconds. Resource temporarily unavailable
0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 
Firehose:ConnectToFlashProg
Serial Port No data within five seconds. Resource temporarily unavailable
Serial Port No data within five seconds. Resource temporarily unavailable

===============Device Class:sahara Protocol:firehose Emergency:true================
Firehose:ConnectToFlashProg
Serial Port No data within five seconds. Resource temporarily unavailable
Serial Port No data within five seconds. Resource temporarily unavailable
Connected to flash programmer, starting download
Downloaded raw image at speed   0.6305 MB/s 00:00:02
Status: 0 Success

from emmcdl.

hoplik avatar hoplik commented on August 20, 2024

Thank you for the link. I checked it on my phone, seems, all work good.
Снимок экрана в 2020-10-07 22-26-27

from emmcdl.

hoplik avatar hoplik commented on August 20, 2024

Closed

from emmcdl.

 avatar commented on August 20, 2024

None of the options from the forked link above seem to work. Trying to dump partitions appears to work, but doesn't even actually do anything. This is really annoying since I don't want to resort to Windows just to use it

from emmcdl.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.