Pali Rohár
ca080dd33f
usb-device: Add device ids for Nokia N950 and Nokia N9
2020-12-26 01:40:57 +01:00
Pali Rohár
4ae1f13624
usb-device: Fix range or printable characters
2020-11-29 21:56:29 +01:00
Pali Rohár
69a7c2705e
usb-device: Fix error message for usb_set_altinterface
2020-11-29 21:55:17 +01:00
Pali Rohár
f37c2cd7e8
all: Fix delays for all operations
2020-04-25 20:04:51 +02:00
Aaro Koskinen
7f38b4bd10
usb-device: restore N800 support
...
N800 has stopped working at some point, not sure why:
$ 0xFFFF -I
[...]
Waiting for USB device...
Found USB device: SU-18/RX-44/RX-48/RX-51/RM-680 (0x421:0x105) in NOLO mode
USB device product string: Nokia N800 (Update mode)
USB device serial number string: (not detected)
Detected USB device: RX-34
Error: Device mishmash
Add the device to 0421:0105 list, and it works again:
Waiting for USB device...
Found USB device: SU-18/RX-34/RX-44/RX-48/RX-51/RM-680 (0x421:0x105) in NOLO mode
USB device product string: Nokia N800 (Update mode)
USB device serial number string: (not detected)
Detected USB device: RX-34
Initializing NOLO...
Device: RX-34
[...]
2018-04-19 22:46:11 +03:00
Aaro Koskinen
08485a0c09
all: Add basic support for Nokia N9
2016-12-24 18:23:28 +01:00
Pali Rohár
bd59c47ec3
usb-device: Detect Nokia N950 in disk mode
2016-12-21 18:25:25 +01:00
Aaro Koskinen
d4ff1d9328
usb-device: Add another product string for RM-680
2016-12-17 17:46:35 +01:00
Pali Rohár
7522a9fbc7
all: Fix compilation when u_int*_t are not defined and used by usb.h
2016-12-16 15:39:46 +01:00
Pali Rohár
3d71caab8f
usb-device: Do not reattach kernel driver after closing cold flash mode
2016-12-07 11:56:37 +01:00
Pali Rohár
4ccf8fb369
usb-device: Do not print verbose message "Reattach kernel driver to USB interface..."
2016-12-07 11:55:54 +01:00
Pali Rohár
9a5f940046
usb-device: Check that we are not using broken libusb-1.0 library
2016-12-06 23:11:47 +01:00
Pali Rohár
676da47751
all: Revert libusb-1.0 support
...
Listing of usb devices with libusb-1.0 is too slow and not usable for
flashing or cold-flashing Nokia N900.
Old libusb (0.1) does not have this problem and works perfectly.
Problem for libusb-1.0 was reported at least two times into libusb-devel
mailing list, but upstream developers are totally ignore it. One message is
in archive: https://sourceforge.net/p/libusb/mailman/message/34985373/
Because of that there is just one option: use tested and working libusb 0.1
library instead some experimental and non-working libusb-1.0.
2016-12-06 22:39:44 +01:00
Pali Rohár
ea7f2a441a
all: Add support for Nokia N950 (RM-680)
2016-06-27 17:24:51 +02:00
Pali Rohár
8a433f2d7a
usb-device: Do not reattach kernel driver if USB interface is not used
2016-05-12 00:18:02 +02:00
Pali Rohár
d2e7b3d242
mkii: Implement rebooting to Update mode
2016-03-12 12:47:41 +01:00
Pali Rohár
54805eb040
mkii: Define MKII_UPDATE_MODE instead hardcoded constant
2016-03-12 12:01:27 +01:00
Pali Rohár
c560f3642c
usb-device: Finish usb device detection based on product strings
2016-03-09 00:15:59 +01:00
Pali Rohár
98451c5851
usb-device: Add FLASH_DISK usb ids for all supported devices
2016-03-09 00:15:25 +01:00
Pali Rohár
aeb9e897db
usb-device: Autodetect Nokia 770 device from product string
2016-02-23 18:23:04 +01:00
Pali Rohár
96de6a6215
usb-device: Fix memory leak when listing devices
2016-01-23 16:38:17 +01:00
Sebastian Reichel
d5028a12ca
all: Switch to libusb-1.0
...
libusb 0.1 is deprecated. This updates 0xFFFF to use the
newer libusb 1.0 API instead.
2016-01-23 16:06:12 +01:00
Pali Rohár
bb90caec1b
all: Fix overflow in shift operators
2014-11-26 16:49:39 +01:00
Pali Rohár
bc9f42f559
all: Use nanosleep (via SLEEP) instead usleep
2014-11-26 15:46:03 +01:00
Pali Rohár
6372323ee8
usb-device: Difference between Update and PC Suite mode
2014-11-21 17:16:10 +01:00
Pali Rohár
bc4aeefab5
usb-device: Do not claim USB interface in raw disk mode
2014-11-18 23:51:04 +01:00
Pali Rohár
c23e8df260
usb-device: Enable also RAW disk
2014-11-18 23:31:28 +01:00
Pali Rohár
feb2d3ac6a
usb-device: Rename usb_switch_to_mkii to usb_switch_to_update
2014-11-18 23:26:50 +01:00
Pali Rohár
78fc280577
usb-device: Enable Mk II protocol
2014-11-18 23:26:19 +01:00
Pali Rohár
99608d2b3f
usb-device: Reattach kernel driver
2014-11-09 21:51:51 +01:00
Pali Rohár
1610debbd5
usb-device: Fix memory leak
2014-09-29 00:44:19 +02:00
Pali Rohár
89bc4a10a3
usb-device: Do not use sighandler_t
2013-09-20 18:08:31 +02:00
Pali Rohár
55bfee79a2
usb-device: Handle Ctrl+C SIGINT and quit wait loop
2013-09-07 22:49:08 +02:00
Pali Rohár
287cb10250
usb-device: Remove useless check for LIBUSB_HAS_GET_DRIVER_NP
2013-09-07 22:31:39 +02:00
Pali Rohár
eb97fad2a7
usb-device: Disable Mk II protocol and RAW disk because are not implemented yet
2013-04-07 14:24:31 +02:00
Pali Rohár
032538ec5a
usb-device: Fix crashing when accessing out of global array usb_flash_protocols in function usb_flash_protocol_to_string
2013-04-07 14:23:26 +02:00
Pali Rohár
6665ba9917
usb-device: Disable FLASH_DISK and FLASH_MKII modes in usb device table until there will be implementation
2012-11-21 14:19:46 +01:00
Pali Rohár
75df75b4e9
usb-device: Fix formatting messages and fix usb_switch_to_cold
2012-11-21 14:16:10 +01:00
Pali Rohár
067c84ea2c
usb-device: Fix usb_switch_to_cold
2012-11-20 21:52:03 +01:00
Pali Rohár
5f0b6bb328
usb-device: Added support for Mk II
2012-11-15 15:23:45 +01:00
Pali Rohár
fc51f45195
usb-device: Added usb_switch_to_ functions
2012-09-23 14:03:28 +02:00
Pali Rohár
f059663164
usb-device: Check for USB product string if device match, remove detected_ prefix
2012-09-23 14:01:20 +02:00
Pali Rohár
b2bd1d90c7
usb-device: Fix serial number string
2012-09-23 13:51:29 +02:00
Pali Rohár
5efa0d96b8
usb-device: If usb_claim_interface fail, exit program
2012-09-23 01:52:17 +02:00
Pali Rohár
e4b4d211c1
usb-device: fix usb device serial number string
2012-09-22 23:20:01 +02:00
Pali Rohár
d636ef78dd
hwrev is int16_t
2012-09-22 21:23:56 +02:00
Pali Rohár
6062a736d2
usb-device: Fix usb_descriptor_info_print and Mk II name
2012-08-11 15:24:46 +02:00
Pali Rohár
8e2c830433
usb-device: Show USB device descriptor info
2012-08-11 14:40:56 +02:00
Pali Rohár
83bcb7358c
Rewrite Makefile, move WITH_DEVICE, WITH_USB and WITH_SQUEUES to Makefile
2012-08-11 11:12:58 +02:00
Pali Rohár
e75b963d3a
usb-device: Add variable detected_hwrev to struct usb_device_info
2012-08-11 09:50:38 +02:00