soarqin / finalhe

Final h-encore, a tool to push h-encore exploit for PS VITA/PS TV automatically
GNU General Public License v3.0
625 stars 116 forks source link

i couldnt make it recognize usb on linux #30

Open greboide opened 6 years ago

greboide commented 6 years ago
PTP: Opening session
VitaMTP: PTP_ERROR_IO: failed to open session
VitaMTP: Cannot configure USB device.

all i get is like above, also i had to patch like this to get it to compile:

diff --git a/deps/vitamtp/vitamtp.c b/deps/vitamtp/vitamtp.c
index 7fa1cbc..f3b2ab9 100644
--- a/deps/vitamtp/vitamtp.c
+++ b/deps/vitamtp/vitamtp.c
@@ -24,6 +24,7 @@
 #include "ptp.h"
 #include "vitamtp.h"
 #include "ptp_defines.h"
+#include "endian.h"

 int g_VitaMTP_logmask = VitaMTP_ERROR;

@@ -602,10 +603,10 @@ uint16_t VitaMTP_SendCopyConfirmationInfoInit(vita_device_t *device, uint32_t ev
 {
     unsigned char *data = NULL;
     uint16_t ret = VitaMTP_GetData(device, event_id, PTP_OC_VITA_SendCopyConfirmationInfoInit, (unsigned char **)p_info, NULL);
-    LE32TOH((*p_info)->count);
+    le32toh((*p_info)->count);
     uint32_t i;
     for (i=0; i<(*p_info)->count; i++)
-        LE32TOH((*p_info)->ohfi[i]);
+        le32toh((*p_info)->ohfi[i]);
     return ret;
 }
greboide commented 6 years ago

i can get ps vita to connect trough qcma though and copy content between pc and ps vita...

soarqin commented 6 years ago

Did you close Qcma before running it? If usb device session is held by Qcma, finalhe cannot open it then.

soarqin commented 6 years ago

By the way, linux usb device permission is default to root-only, you should run finalhe from sudo or root user, or you should put config file in /etc/udev/rules.d/ to set permission individually, check this tutorial