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
Sebastian Reichel
ed4bdab6e7
libusb-sniff: add libusb 1.0 support
...
This adds additional support for libusb-1.0 to the
sniffing library. Afterwards it can be used with
libusb 1.0 and libusb 0.1 based binaries.
2016-01-23 16:16:18 +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
6482e4d2b7
libusb-sniff: Use POSIX.1-2003 workaround for dlsym() assignment which is compatible with C99
2016-01-23 16:03:01 +01:00
Sebastian Reichel
57b0c6d0c4
libusb-sniff: avoid usb.h include
...
usb.h is only required for the definition of usb_dev_handle,
which is never used, so it can be defined as anonymous struct
instead. This has the advantage, that libusb is not required
on the system compiling the library.
2016-01-23 16:02:46 +01:00
Sebastian Reichel
4a4005b46d
libusb-sniff: add header for getenv()
2016-01-23 16:02:40 +01:00
Pali Rohár
5f0897d372
doc: Remove nanddump param -i also from doc
2016-01-13 22:28:36 +01:00
Sebastian Reichel
d4342a8cdf
disk: dirent.h is required for DIR
...
Without <dirent.h> include newer gcc releases
throw warnings about undefined "DIR".
2016-01-13 22:23:29 +01:00
Sebastian Reichel
055621d3a2
all: free() is defined in stdlib.h
...
Without including <stdlib.h> newer gcc releases throw
warnings about undefined free().
2016-01-13 22:23:29 +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
Dhole
94a2fe0c17
mangen: Set build date externally
...
Patch build system to allow the build date in the man entry
to be set externally. In Debian it will be set to the latest
debian/changelog entry for reproducibility.
2015-06-24 17:46:28 +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