summaryrefslogtreecommitdiffstats
path: root/src/cold-flash.c
AgeCommit message (Collapse)AuthorFilesLines
2020-04-25all: Fix delays for all operationsPali Rohár1-7/+7
2016-12-16all: Fix compilation when u_int*_t are not defined and used by usb.hPali Rohár1-2/+0
2016-12-07cold-flash: Increase timeout after leaving cold flash modePali Rohár1-1/+1
Switching to NOLO takes about one second and NOLO itself wait another second. So it should be OK.
2016-12-06cold-flash: Show OMAP chip revisionPali Rohár1-7/+11
2016-12-06all: Revert libusb-1.0 supportPali Rohár1-38/+32
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-02-21all: Fix usb endpoints after conversion to libusb 1.0Pali Rohár1-13/+11
Endpoint in nolo.c for libusb_bulk_transfer must be 0x02, not 0x01.
2016-01-23cold-flash: Comment unused omap variablesPali Rohár1-0/+3
2016-01-23all: Code style fixesPali Rohár1-2/+2
2016-01-23all: Rename variable readed to sentPali Rohár1-17/+17
2016-01-23all: Switch to libusb-1.0Sebastian Reichel1-39/+46
libusb 0.1 is deprecated. This updates 0xFFFF to use the newer libusb 1.0 API instead.
2014-11-26all: Use nanosleep (via SLEEP) instead usleepPali Rohár1-8/+8
2014-11-18cold-flash: struct xloader_msg must be packedPali Rohár1-1/+1
2014-05-10all: Fix typo0.6Pali Rohár1-3/+3
2013-02-18cold-flash: accept also OMAP3630 in the ASIC IDAaro Koskinen1-3/+8
Accept also OMAP3630 in the ASIC ID offset 4. With this patch it's possible communicate also with N950/N9. When plugging in the USB cable into a powered-off device, it seems to start in cold-flash mode, and currently 0xFFFF fails with "Invalid ASIC ID." So far only loading & booting kernel with "0xFFFF -m kernel:zImage -l -b" has been tested, and it works. WARNING: When booting a self-made kernel on N950/N9, NOLO will detect this and will permanently show a crappy disclaimer about warranty voided during the boot, even if you boot again with a stock Nokia kernel. This may also impact some SW functionality. I have no idea how to reset this condition.
2013-02-18cold-flash: correct chip/soc nameAaro Koskinen1-2/+2
RX-51/N900 has OMAP3430, and it seems this is what the ASIC ID field at offset 4 refers to. Fix the comment and printf.
2012-11-21cold-flash: Decrease usleep time after leave_cold_flashPali Rohár1-1/+1
2012-09-23Added macro PRINTF_ERROR_RETURN which working with progressbarPali Rohár1-2/+2
2012-09-23cold-flash: Added function init_cold_flash, basic check if asic id is correctPali Rohár1-23/+59
2012-08-12cold-flash: Add all omap boot messagesPali Rohár1-0/+27
2012-08-11image_read returns size_t, so 0 when error or end of filePali Rohár1-3/+3
2012-08-11Rewrite Makefile, move WITH_DEVICE, WITH_USB and WITH_SQUEUES to MakefilePali Rohár1-1/+2
2012-08-11cold-flash: Rewrite error messages and return negative error values, -EAGAIN ↵Pali Rohár1-78/+47
if not in cold flash mode
2012-08-10Move checking for flashing protocol from main to cold-flashPali Rohár1-0/+12
2012-08-10cold-flash: Use struct usb_device_infoPali Rohár1-8/+8
2012-08-09Rename usb_device to usb-device, fix includesPali Rohár1-0/+1
2012-08-08cold-flash: Remove usb_detach_kernel_driver_np and usb_claim_interface, now ↵Pali Rohár1-18/+0
handled in usb_device.c
2012-08-08cold-flash: Fix usb_set_configuration and usb_claim_interface, Update ↵Pali Rohár1-11/+56
information about OMAP boot messages, implement function leave_cold_flash
2012-08-08cold-flash: prepair cold-flash codePali Rohár1-108/+57
2012-06-23Cold Flasher - Remove duplicate usb code, prepair for flashing form fiasco ↵Pali Rohár1-147/+95
images
2012-06-23Import my open source tool for Cold Flashing: cold-flasher-rx51.cPali Rohár1-0/+440