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
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
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
cf95375177
disk: Fix detection of MyDocs partition in DISK RAW mode for non RX-51 devices
2016-05-12 00:12:55 +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
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
a1623bcb7e
image: Fix detection of jffs2 initfs images
...
Looks like that some official initfs images are bigger then 3MB, so set limit to 10MB
2016-03-09 00:07:52 +01:00
Pali Rohár
c90c6319fe
main: Initialize buf before calling dev_get_rd_flags()
2016-02-23 18:38:48 +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
6952d73082
libusb-sniff: Fix libusb_control_transfer function
2016-02-23 18:15:55 +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
Pali Rohár
abcf256268
disk: Use correct libusb function which returns Linux devnum value
...
It is libusb_get_device_address() and not libusb_get_port_number()
2016-02-12 22:27:35 +01:00
Pali Rohár
09920cf8ab
config.mk: Version is from git
2016-01-23 16:46:05 +01:00
Pali Rohár
96de6a6215
usb-device: Fix memory leak when listing devices
2016-01-23 16:38:17 +01:00
Pali Rohár
2504f9e553
travis: Update travis script for clang and libusb-1.0
2016-01-23 16:27:35 +01:00
Pali Rohár
2e9748e6a5
cold-flash: Comment unused omap variables
2016-01-23 16:26:40 +01:00
Pali Rohár
fc987674dd
all: Code style fixes
2016-01-23 16:07:02 +01:00
Pali Rohár
62fa041f86
all: Rename variable readed to sent
2016-01-23 16:06:51 +01:00
Pali Rohár
6482e4d2b7
libusb-sniff: Use POSIX.1-2003 workaround for dlsym() assignment which is compatible with C99
2016-01-23 16:03:01 +01:00
Pali Rohár
5f0897d372
doc: Remove nanddump param -i also from doc
2016-01-13 22:28:36 +01:00
Pali Rohár
f36a762168
fiasco: Fix code for append device & hwrevs subsection
...
Fix possible use-after-free in WRITE_OR_FAIL_FREE() macro
2016-01-10 17:26:23 +01:00
Pali Rohár
c258289b74
image: Check for return value fo image_read() in image_type_from_data()
2016-01-10 14:33:30 +01:00
Pali Rohár
3c1ab9934d
main: Check for SW rel version length
2016-01-10 14:32:43 +01:00
Pali Rohár
b48b9b558c
fiasco: Remove wrong checks for 'name' and 'swver'
...
Members 'name' and 'swver' of fiasco are arrays, not pointers
2016-01-10 14:31:28 +01:00
Pali Rohár
b7f80de25d
all: Check for return value of lseek
2016-01-10 14:29:18 +01:00
Pali Rohár
1ee86c05f4
fiasco: Fix memory leak for device_hwrevs_bufs variable
2016-01-10 13:29:28 +01:00
Pali Rohár
79af7395bf
fiasco: In simulate mode do not close invalid not open fd
2016-01-10 13:27:17 +01:00
Pali Rohár
ccef3c6daa
README: Update 0xFFFF website
2016-01-10 12:53:57 +01:00
Pali Rohár
05f7048580
local: Call nanddump without -i param
...
Param -i was removed in recent versions of mtd-utils.
And in older versions it did nothing.
2016-01-10 12:33:22 +01:00
Pali Rohár
75ea4bfbd8
image: Fix condition for detecting device
2015-06-24 19:09:34 +02:00
Pali Rohár
3f406cc9ad
fiasco: Fix checking for header of next image
2015-06-24 18:30:07 +02:00
Pali Rohár
289d2f22b2
image: Fix detecting new ARM U-Boot images
2015-01-15 09:42:40 +01:00
Pali Rohár
f965980e2b
all: Fix MEMMEM implementation
2015-01-15 09:42:01 +01:00
Pali Rohár
ef678ecf6c
fiasco: Remove not reached code
2014-11-26 17:00:10 +01:00
Pali Rohár
33f1dc8b55
local: Fix argument for mmap/munmap
2014-11-26 16:53:08 +01:00
Pali Rohár
bb90caec1b
all: Fix overflow in shift operators
2014-11-26 16:49:39 +01:00
Pali Rohár
c86e130ab1
Makefile: Now 0xFFFF is Posix compatible, enable -D_POSIX_C_SOURCE=200809L
2014-11-26 16:35:01 +01:00
Pali Rohár
448365b588
cal: Enable Linux code only on Linux
2014-11-26 16:33:21 +01:00
Pali Rohár
ef1960cc32
disk: Enable Linux code only on Linux
2014-11-26 16:33:07 +01:00
Pali Rohár
5633a06710
local: Enable N900 code only for ARM and enable Linux code only on Linux
2014-11-26 16:32:36 +01:00
Pali Rohár
d61815f40e
mkii: Fix argument for usb_bulk_write
2014-11-26 16:30:54 +01:00
Pali Rohár
15219cb99c
main: Add missing extern variables for getopt
2014-11-26 16:30:32 +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
52efd5a404
nolo: Check for return buffer size
2014-11-26 15:47:21 +01:00
Pali Rohár
bc9f42f559
all: Use nanosleep (via SLEEP) instead usleep
2014-11-26 15:46:03 +01:00
Pali Rohár
a9b1332f8f
mkii: Update code with to reflect documentation
2014-11-26 15:09:01 +01:00
Pali Rohár
e8f9a79174
doc/mkii: Update info about protocol
2014-11-26 15:07:50 +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
2c15535099
operations: Enable mkii_get_sw_ver
2014-11-21 17:48:01 +01:00
Pali Rohár
8369f94195
mkii: Implement mkii_get_sw_ver
2014-11-21 17:47:47 +01:00
Pali Rohár
f1095777c6
operations: Check for supported image types in dev_flash_image
2014-11-21 17:16:44 +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
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
d3eb042a1c
operations: Enable dumping mmc images via USB disk protocol
2014-11-21 16:41:05 +01:00
Pali Rohár
93680de944
disk: Implement disk_dump_image()
2014-11-21 16:33:42 +01:00
Pali Rohár
5fd0755448
disk: Find emmc device in disk_init()
2014-11-21 16:33:28 +01:00
Pali Rohár
bebb608bc8
usb-device: Add data info to struct usb_device
2014-11-21 16:32:30 +01:00
Pali Rohár
75c87a1583
disk: Ignore '.' and '..' when listing directory
2014-11-21 16:31:29 +01:00
Pali Rohár
5d20747c30
local: Ignore '.' and '..' when listing directory
2014-11-21 16:31:13 +01:00
Pali Rohár
e66015b880
disk: Remove old disk functions (they are not used anymore)
2014-11-21 15:03:18 +01:00
Pali Rohár
e30e08136a
local: Use new disk functions
2014-11-21 15:02:10 +01:00
Pali Rohár
e00331fb42
disk: Implement new functions for raw disk access
2014-11-21 15:01:30 +01:00
Pali Rohár
eb23177014
disk: Implement init and get_device functions
2014-11-18 23:52:14 +01:00
Pali Rohár
5611e8a68c
operations: When reboot is not supported use usb_switch_to_nolo()
2014-11-18 23:51:48 +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
ea980459f1
operations: Enable RAW disk
2014-11-18 23:31:49 +01:00
Pali Rohár
c23e8df260
usb-device: Enable also RAW disk
2014-11-18 23:31:28 +01:00
Pali Rohár
1a59034571
operations: Fix code to work also with Mk II protocol
2014-11-18 23:27:21 +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
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
3538c40ad1
Relase version 0.6.1
2014-11-18 23:23:23 +01:00
Pali Rohár
b286e79ddb
cold-flash: struct xloader_msg must be packed
2014-11-18 23:19:54 +01:00
Pali Rohár
e443393aa5
fiasco: Fix possible memory leak
2014-11-18 20:31:16 +01:00
Pali Rohár
8c788bad62
nolo: Do not call NOLO_ERROR_LOG when not needed
2014-11-18 20:15:14 +01:00
Pali Rohár
142ef93ddc
fiasco: Fix initializing variables
2014-11-18 20:14:23 +01:00
Pali Rohár
89566f559b
fiasco: Fix memory leaks
2014-11-18 18:49:32 +01:00
Pali Rohár
cfd3b662a5
Makefile: Fix compilation of libusb-sniff libraries
2014-11-18 18:09:30 +01:00
Pali Rohár
65888448bf
main: When doing normal flash filter all 2nd images
...
This will fix infinite loop after successfull fiasco image flash
2014-11-18 18:09:06 +01:00
Pali Rohár
26b6f86f84
nolo: Fix parsing cmt status
...
Now flashing cmt images should work without problems
2014-11-18 18:07:59 +01:00
Pali Rohár
f3d203c205
main: Correctly set and free processed images
...
This will fix more memory corruptions (specially at quit).
2014-11-18 18:06:22 +01:00
Pali Rohár
79a171e823
printf-utils: Fix division by zero if total is zero
2014-11-18 18:04:45 +01:00
Pali Rohár
99608d2b3f
usb-device: Reattach kernel driver
2014-11-09 21:51:51 +01:00
Pali Rohár
f0712d5b23
all: Replace strlen() call on const string with sizeof()-1
2014-10-19 20:23:21 +02:00
Pali Rohár
8d52950ede
main: Use snprintf instead sprintf and initialize buffer to NULL term
2014-10-19 20:18:47 +02:00
Pali Rohár
a8986bf631
local: Check return value of snprintf
2014-10-19 20:18:02 +02:00
Pali Rohár
9a1f63c5ae
nolo: Check return value of sprintf
2014-10-19 20:17:29 +02:00
Pali Rohár
b1564909d7
nolo: Fix size of snprintf buffer
2014-10-19 20:17:06 +02:00
Pali Rohár
d6eba11357
fiasco: fiasco_alloc_from_file: check if hwrevs has enough size
2014-10-19 18:26:47 +02:00
Pali Rohár
c88e5264c9
main: Update usage
2014-09-29 00:48:37 +02:00