Pali Rohár
580f1de0fe
mkii: Update comments about unknown bytes in flashing protocol
2021-05-02 13:43:21 +02:00
Pali Rohár
f37c2cd7e8
all: Fix delays for all operations
2020-04-25 20:04:51 +02:00
Pali Rohár
8f57f7ef61
mkii: Fix detection of Update mode
2016-12-10 14:13:14 +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
61d77eed68
mkii: Call /version/sw_release only for protocol version 2
...
Looks like command /version/sw_release is supported only by protocol version 2.
2016-06-27 17:24:05 +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
7b3e9bcf00
mkii: Use libusb_get_active_config_descriptor() instead libusb_get_config_descriptor()
...
This will fix problem that it was used incorrect config index
2016-03-12 11:38:00 +01:00
Pali Rohár
96e4fa5995
mkii: Fix memory leak, call libusb_free_config_descriptor()
2016-03-12 11:36:50 +01:00
Pali Rohár
bc7894b99d
all: Fix usb endpoints after conversion to libusb 1.0
...
Endpoint in nolo.c for libusb_bulk_transfer must be 0x02, not 0x01.
2016-02-21 20:52:21 +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
d61815f40e
mkii: Fix argument for usb_bulk_write
2014-11-26 16:30:54 +01:00
Pali Rohár
db4c7c1951
all: Use internal MEMMEM instead gnu memem
...
It is used only on small strings, so it is fast enough
2014-11-26 16:29:53 +01:00
Pali Rohár
a9b1332f8f
mkii: Update code with to reflect documentation
2014-11-26 15:09:01 +01:00
Pali Rohár
349a9d40ef
mkii: Fix mode information
2014-11-26 14:26:14 +01:00
Pali Rohár
c87687128f
mkii: Fix mkii_reboot_device
2014-11-26 14:25:50 +01:00
Pali Rohár
8b5c945078
mkii: Fix mkii_get_hwrev
2014-11-26 14:25:41 +01:00
Pali Rohár
8369f94195
mkii: Implement mkii_get_sw_ver
2014-11-21 17:47:47 +01:00
Pali Rohár
7023b4b290
mkii: Check for Update and PC Suite mode
2014-11-21 17:15:16 +01:00
Pali Rohár
8c305104a0
mkii: Check for supported image types
2014-11-21 17:14:39 +01:00
Pali Rohár
ea9f9d5a69
mkii: Unfinished code for image flashing
2014-11-18 23:25:25 +01:00
Pali Rohár
3dc90e643c
mkii: Implement device reboot
2014-11-18 23:24:55 +01:00
Pali Rohár
351bfbd055
mkii: Implement device initialization
2014-11-18 23:24:02 +01:00
Pali Rohár
bd54b19bbf
mkii: Added template for initfs version string
2012-11-24 01:03:06 +01:00
Pali Rohár
09b6b377fe
mkii: Fix unused parameter warnings
2012-11-20 21:51:29 +01:00
Pali Rohár
116e77bef7
mkii: Fix return values
2012-11-20 21:41:58 +01:00
Pali Rohár
420482c6b7
Added template for Mk II flashing protocol
2012-11-15 15:12:58 +01:00