My sister recently bought a razr z3re and I've been trying to help her
upload files to it in Linux. I'm sorry I don't have the phone with me
so I can't send lsusb -v right now. As stated at
http://moto4lin.sourceforge.net/wiki/Razr_V3re the svn moto4lin
successfully switches to P2K mode but fails after repeated "Sending
control message failed... Retry...", "Unable to get phone model",
"Unable to get drive name", etc. However, the svn p2ktest _can_
successfully get the version, model, volumes, etc.
I dug around in the code and eventually realized that the index passed
to usb_control_msg() should be 2 instead of 8 (as I now see was posted
to this list a year ago.) p2kmoto.c in p2kmoto/ successfully
autodetects this but p2kproc.cpp in moto4lin/ still hard codes 8.
So I changed all the 8s to 2s passed to sendControl() in p2kproc.cpp
and that solved the original problem. moto4lin now successfully passes
doGetPhoneModel() and doGetDriveName() but now fails to get file
count. The 'ls' command in p2ktest also fails.
In both drv_fileCount() and drv_fileList() "E002" is raised after
inpSize() returns 2 instead of the expected 4. In the 'while
(time(NULL)-t<5)' loop of inpSize() sendControl() consistently returns
2 and "Error answer. try again" is repeated printed. drv_fileCount()
and drv_fileList() occasionally have the effect of shutting off the
phone. The screen will go black and the phone will stop responding for
up to a few minutes.
I stared at the code for hours and added debug printf's everywhere but
eventually stopped making progress. I'm very confused about how
outData(), inpSize(), and packetCount work.
I'd be very interested in helping to develop support for the z3re. Can
anyone give me a pointer on what to try next?
Get latest updates about Open Source Projects, Conferences and News.