Open greboide opened 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; }
i can get ps vita to connect trough qcma though and copy content between pc and ps vita...
Did you close Qcma before running it? If usb device session is held by Qcma, finalhe cannot open it then.
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
all i get is like above, also i had to patch like this to get it to compile: