summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2021-05-01local: Implement local flashing via nandwritePali Rohár1-8/+162
2021-05-01disk: Implement flashing mmc imagesPali Rohár2-15/+75
2021-05-01local: Rename nanddump structures to just nandPali Rohár1-22/+22
They can be used also for other nand commands like nandwrite.
2021-05-01local: Parse real kernel size from NOLO!img header when dumping kernel imagePali Rohár1-36/+64
Kernel image is prepended with 2kB header with NOLO!img magic and contains size of the kernel image. 0xFFFF until now just skipped this header. With this change is reads from it real kernel image size and correctly truncate final dumped image for 0xFFFF -e/-E dump operation.
2021-05-01local: Fix calling nanddumpPali Rohár1-2/+2
In last 15 years nanddump changed its command line arguments. Argument -b (omit bad blocks) was completely removed and argument -o (omit oob data) changed its meaning to "include" oob data. So for compatibility with all nanddump versions, do not use argument -b and instead of -o use argument --omitoob which is present in all nanddump versions and has same meaning to omit oob data. This change should fix dumping firmware files on devices with recent versions of nanddump.
2021-01-05usb-device: Specify alternate id for cold flashingPali Rohár1-1/+1
2021-01-05usb-device: Add N900 U-Boot mode (TTY via USB) to device listPali Rohár1-1/+2
2021-01-05usb-device: Check that usb device provides required interface/alternate settingsPali Rohár1-0/+12
2021-01-05usb-device: Remove dead usb_set_configuration() codePali Rohár2-25/+14
It is on worng place, must be called prior usb_claim_interface() and currently no device use it.
2021-01-05usb-device: Remove 0x0421/0x3f00 from listPali Rohár1-1/+0
It was some internal Nokia development board with just temporary device id. Not a real RX-34 device.
2021-01-05usb-device: Fix interface id for Nokia N9 Sync mode and disable it as it use ↵Pali Rohár1-1/+1
unsupported ADL protocol
2021-01-05usb-device: Fix iterating over supported list of devicesPali Rohár1-2/+2
2021-01-05disk: Fix detecting Nokia N9 devicePali Rohár1-2/+2
2020-12-26usb-device: Add device ids for Nokia N950 and Nokia N9Pali Rohár1-3/+10
2020-11-29usb-device: Fix range or printable charactersPali Rohár1-1/+1
2020-11-29usb-device: Fix error message for usb_set_altinterfacePali Rohár1-1/+1
2020-04-25all: Fix delays for all operationsPali Rohár5-10/+15
2020-01-15local: Do not show error message about missing dump files which were skippedPali Rohár1-1/+3
2019-09-30disk: Check if reading from block device failedPali Rohár1-0/+5
2018-04-19usb-device: restore N800 supportAaro Koskinen1-1/+1
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-02-08disk: Fix detection of busnumPali Rohár1-1/+9
Unpatched version of libusb on linux platform does not set location, but Debian's version of libusb has a patch which set it. For compatibility with other systems without unpatched libusb version, read busnum from dirname which seems to be always set. Fixes: https://github.com/pali/0xFFFF/issues/5
2018-02-08disk: Remove remaining ENOMEDIUMPali Rohár1-1/+1
2018-02-08disk: Fix swapping maj1:min1 and maj2:min2Pali Rohár1-1/+1
2018-02-08main: Print message after dumping finishPali Rohár1-0/+2
2018-02-08disk: Fix compile warning: comparison between signed and unsigned integer ↵Pali Rohár1-1/+1
expressions
2018-02-08disk: Open whole block device with O_NONBLOCKPali Rohár1-6/+4
This would simplify handling of ENOMEDIUM error.
2018-02-08disk: Ensure that maj1:min1 is first device and maj2:min2 is second devicePali Rohár1-0/+11
2017-07-09disk: After opening blkdev, check that it is really block devicePali Rohár1-0/+4
2017-07-09disk: Close device file handle when freeing structuresPali Rohár3-1/+12
2017-07-09disk: Fix detection of correct device in disk_open_dev()Pali Rohár1-20/+38
2017-07-06disk: Choose correct partition in disk_open_dev()Pali Rohár1-2/+8
2017-06-17main: Use image_alloc_from_fd() to fix race condition between calling stat ↵Pali Rohár1-7/+15
and opening file
2017-06-17image: Add new function image_alloc_from_fd()Pali Rohár2-11/+23
2017-06-17image: Call image_free() when image_append() is failingPali Rohár1-2/+4
2017-06-17main: Fix race condition between calling stat and renamePali Rohár1-5/+11
2017-01-09disk: Remove check which is always falsePali Rohár1-5/+0
Type unsigned long long int according to C99 can store at least 2^64-1.
2017-01-08cal: Fix race condition between calling stat and opening filePali Rohár1-3/+3
2017-01-08Makefile: Fix setting compilerPali Rohár1-3/+3
2016-12-24all: Add basic support for Nokia N9Aaro Koskinen3-2/+7
2016-12-24cal: Fix pointer checkPali Rohár1-1/+1
2016-12-24cal: cal_read_block allocate memoryPali Rohár2-4/+11
2016-12-23disk: Fix for RM-680Pali Rohár1-2/+2
2016-12-23disk: Check for ENOMEDIUM when partition is requiredPali Rohár1-2/+12
2016-12-23cal: SSIZE_MAX is not required to be definedPali Rohár1-0/+2
2016-12-23cal: Move sys/ioctl.h to __linux__Pali Rohár1-1/+1
2016-12-21usb-device: Detect Nokia N950 in disk modePali Rohár1-1/+2
2016-12-17cal: Fix memory leakPali Rohár1-2/+3
2016-12-17usb-device: Add another product string for RM-680Aaro Koskinen1-1/+1
2016-12-17cal: Fix check for lseek errorsPali Rohár1-2/+5
2016-12-17all: Enable Large File SupportPali Rohár1-1/+1