bkerler / mtkclient

MTK reverse engineering and flash tool
GNU General Public License v3.0
2.62k stars 522 forks source link

MT6768 mtk payload USBError #5

Closed maoyun2019 closed 3 years ago

maoyun2019 commented 3 years ago

I want to downgrade my ROM, so I run mtk payload first, but it failed:

USBError(5, 'Input/Output Error') <class 'usb.core.USBError'> 5

then I run with debugmode, here is the log:

log.txt

bkerler commented 3 years ago

You need to run in BROM, not preloader mode, otherwise this will fail.

maoyun2019 commented 3 years ago

I am sorry but just want to know how do i recognize the BORM or preload mode?

bkerler commented 3 years ago

The brom mode is started using hw buttons (some smartphones have a locked brom mode). If you can see the meid, you're in brom mode.

maoyun2019 commented 3 years ago
BROM mode detected.
['  File "C:\\Users\\86186\\mtkclient\\mtk", line 932, in <module>\n    mtk = Main().run()\n', '  File "C:\\Users\\86186\\mtkclient\\mtk", line 620, in run\n    if mtk.preloader.init(args=self.args, readsocid=readsocid):\n', '  File "C:\\Users\\86186\\mtkclient\\mtkclient\\Library\\mtk_preloader.py", line 191, in init\n    meid = self.get_meid()\n', '  File "C:\\Users\\86186\\mtkclient\\mtkclient\\Library\\mtk_preloader.py", line 524, in get_meid\n    if self.usbwrite(self.Cmd.GET_BL_VER.value):\n']
TX:fe
usbread:0x1
['  File "C:\\Users\\86186\\mtkclient\\mtk", line 932, in <module>\n    mtk = Main().run()\n', '  File "C:\\Users\\86186\\mtkclient\\mtk", line 620, in run\n    if mtk.preloader.init(args=self.args, readsocid=readsocid):\n', '  File "C:\\Users\\86186\\mtkclient\\mtkclient\\Library\\mtk_preloader.py", line 191, in init\n    meid = self.get_meid()\n', '  File "C:\\Users\\86186\\mtkclient\\mtkclient\\Library\\mtk_preloader.py", line 527, in get_meid\n    self.usbwrite(self.Cmd.GET_ME_ID.value)  # 0xE1\n']
TX:e1
usbread:0x1
usbread:0x4

It seems that i am in BROM mode, but the error still occurs.

I will try it in Linux.

maoyun2019 commented 3 years ago

I try it in Linux and the error still occurs, then I changed my USB data cable it works!!

bphd commented 1 year ago

Input/Output Error

Same, happen to me in any phone mode possible. Can't do anything with the program because of that

My cable transmit fine data, internet, charge, anything. I don't understand