thomas@skater :: ~/Téléchargements » wget
http://netassist.dl.sourceforge.net/project/xfer9860/xfer9860/0.2.2/xfer9860-0.2.2.tar.bz2
--2015-12-26 03:11:36--
http://netassist.dl.sourceforge.net/project/xfer9860/xfer9860/0.2.2/xfer9860-0.2.2.tar.bz2
Résolution de netassist.dl.sourceforge.net (netassist.dl.sourceforge.net)… 62.205.134.42, 2a01:d0:0:37::2
Connexion à netassist.dl.sourceforge.net (netassist.dl.sourceforge.net)|62.205.134.42|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 17615 (17K) [application/octet-stream]
Sauvegarde en : « xfer9860-0.2.2.tar.bz2 »
xfer9860-0.2.2.tar.bz2 100%[=======================================>] 17,20K 69,4KB/s ds 0,2s
2015-12-26 03:11:37 (69,4 KB/s) — « xfer9860-0.2.2.tar.bz2 » sauvegardé [17615/17615]
thomas@skater :: ~/Téléchargements » tar xvjf xfer9860-0.2.2.tar.bz2
xfer9860-0.2.2/
xfer9860-0.2.2/INSTALL
xfer9860-0.2.2/COPYING
xfer9860-0.2.2/ChangeLog
xfer9860-0.2.2/src/
xfer9860-0.2.2/src/downloadfile.h
xfer9860-0.2.2/src/usbio.h
xfer9860-0.2.2/src/downloadfile.c
xfer9860-0.2.2/src/optimizememory.c
xfer9860-0.2.2/src/config.h
xfer9860-0.2.2/src/uploadfile.c
xfer9860-0.2.2/src/optimizememory.h
xfer9860-0.2.2/src/getinfo.c
xfer9860-0.2.2/src/uploadfile.h
xfer9860-0.2.2/src/Casio9860.h
xfer9860-0.2.2/src/xfer9860.c
xfer9860-0.2.2/src/getinfo.h
xfer9860-0.2.2/src/Casio9860.c
xfer9860-0.2.2/src/SConstruct
xfer9860-0.2.2/src/usbio.c
xfer9860-0.2.2/TODO
xfer9860-0.2.2/README
xfer9860-0.2.2/SConstruct
xfer9860-0.2.2/AUTHORS
thomas@skater :: ~/Téléchargements » cd xfer9860-0.2.2
thomas@skater :: Téléchargements/xfer9860-0.2.2 » scons
scons: Reading SConscript files ...
==== Looking for required libraries ====
Checking for C library usb-1.0... yes
==== Looking for required includes ====
Checking for C header file unistd.h... yes
Checking for C header file stdio.h... yes
Checking for C header file string.h... yes
Checking for C header file stdlib.h... yes
Checking for C header file sys/types.h... yes
Checking for C header file sys/stat.h... yes
Checking for C header file math.h... yes
==== Starting program compilation ====
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/uploadfile.o -c -O2 -pipe -fomit-frame-pointer -Wall -pedantic src/uploadfile.c
gcc -o src/downloadfile.o -c -O2 -pipe -fomit-frame-pointer -Wall -pedantic src/downloadfile.c
src/downloadfile.c: In function 'readPacket':
src/downloadfile.c:39:49: warning: pointer targets in passing argument 3 of 'libusb_bulk_transfer' differ in signedness [-Wpointer-sign]
read = libusb_bulk_transfer(usb_handle, 0x82, buffer+pos, ((MAX_DATA_PAYLOAD*2)+18)-pos, &transferred, 40);
^
In file included from src/Casio9860.h:27:0,
from src/downloadfile.c:27:
/usr/include/libusb-1.0/libusb.h:1747:17: note: expected 'unsigned char *' but argument is of type 'char *'
int LIBUSB_CALL libusb_bulk_transfer(libusb_device_handle *dev_handle,
^
src/downloadfile.c: In function 'downloadFile':
src/downloadfile.c:52:71: warning: variable 'packetLength' set but not used [-Wunused-but-set-variable]
int i=0, dataLength=0, unescapedSize=0, totalCount=0, packetCount=0, packetLength=0, dataWritten=0;
^
gcc -o src/getinfo.o -c -O2 -pipe -fomit-frame-pointer -Wall -pedantic src/getinfo.c
gcc -o src/optimizememory.o -c -O2 -pipe -fomit-frame-pointer -Wall -pedantic src/optimizememory.c
gcc -o src/usbio.o -c -O2 -pipe -fomit-frame-pointer -Wall -pedantic src/usbio.c
src/usbio.c: In function 'ReadUSB':
src/usbio.c:78:47: warning: pointer targets in passing argument 3 of 'libusb_bulk_transfer' differ in signedness [-Wpointer-sign]
ret = libusb_bulk_transfer(usb_handle, 0x82, buffer, length, &BytesRead, USB_READ_TIMEOUT);
^
In file included from src/usbio.h:27:0,
from src/usbio.c:23:
/usr/include/libusb-1.0/libusb.h:1747:17: note: expected 'unsigned char *' but argument is of type 'char *'
int LIBUSB_CALL libusb_bulk_transfer(libusb_device_handle *dev_handle,
^
src/usbio.c: In function 'WriteUSB':
src/usbio.c:88:46: warning: pointer targets in passing argument 3 of 'libusb_bulk_transfer' differ in signedness [-Wpointer-sign]
ret = libusb_bulk_transfer(usb_handle, 0x1, buffer, length, &BytesWritten, USB_WRITE_TIMEOUT);
^
In file included from src/usbio.h:27:0,
from src/usbio.c:23:
/usr/include/libusb-1.0/libusb.h:1747:17: note: expected 'unsigned char *' but argument is of type 'char *'
int LIBUSB_CALL libusb_bulk_transfer(libusb_device_handle *dev_handle,
^
gcc -o src/Casio9860.o -c -O2 -pipe -fomit-frame-pointer -Wall -pedantic src/Casio9860.c
src/Casio9860.c: In function 'fx_getDeviceHandle':
src/Casio9860.c:36:36: warning: C++ style comments are not allowed in ISO C90
struct libusb_context *ctx = NULL;//a libusb session
^
src/Casio9860.c:36:36: warning: (this will be reported only once per input file)
src/Casio9860.c: In function 'fx_initDevice':
src/Casio9860.c:76:65: warning: pointer targets in passing argument 6 of 'libusb_control_transfer' differ in signedness [-Wpointer-sign]
ret = libusb_control_transfer(usb_handle, 0x80, 0x6, 0x100, 0, buffer, 0x12, 200);
^
In file included from src/Casio9860.c:26:0:
/usr/include/libusb-1.0/libusb.h:1743:17: note: expected 'unsigned char *' but argument is of type 'char *'
int LIBUSB_CALL libusb_control_transfer(libusb_device_handle *dev_handle,
^
src/Casio9860.c:84:65: warning: pointer targets in passing argument 6 of 'libusb_control_transfer' differ in signedness [-Wpointer-sign]
ret = libusb_control_transfer(usb_handle, 0x80, 0x6, 0x200, 0, buffer, 0x29, 250);
^
In file included from src/Casio9860.c:26:0:
/usr/include/libusb-1.0/libusb.h:1743:17: note: expected 'unsigned char *' but argument is of type 'char *'
int LIBUSB_CALL libusb_control_transfer(libusb_device_handle *dev_handle,
^
src/Casio9860.c:91:63: warning: pointer targets in passing argument 6 of 'libusb_control_transfer' differ in signedness [-Wpointer-sign]
ret = libusb_control_transfer(usb_handle, 0x41, 0x1, 0x0, 0, buffer, 0x0, 250);
^
In file included from src/Casio9860.c:26:0:
/usr/include/libusb-1.0/libusb.h:1743:17: note: expected 'unsigned char *' but argument is of type 'char *'
int LIBUSB_CALL libusb_control_transfer(libusb_device_handle *dev_handle,
^
gcc -o src/xfer9860.o -c -O2 -pipe -fomit-frame-pointer -Wall -pedantic -DVERSION=\"v0.2.2\" src/xfer9860.c
gcc -o src/xfer9860 src/uploadfile.o src/downloadfile.o src/getinfo.o src/optimizememory.o src/usbio.o src/Casio9860.o src/xfer9860.o -lusb-1.0 -lm
scons: done building targets.
thomas@skater :: Téléchargements/xfer9860-0.2.2 » fucking cp src/xfer9860 /usr/share
Citer : Posté le 26/12/2015 08:45 | #
Xfer9860 ne marche pas donc je te conseille d'utiliser USBConnector
Citer : Posté le 26/12/2015 09:06 | # | Fichier joint
Ça a l'air de marcher (bizarrement, mais j'y arrive à peu près), merci
Mon blog ⋅ Mes autres projets
Citer : Posté le 26/12/2015 11:09 | #
Oui, xfer9860 ne fonctionne pas avec les calculatrices SH4. D'ailleurs, il faut aussi le lancer en tant que superutilisateur (sudo) deux fois d'affilé, même pour SH3… Yep, USBConnector est plus efficace