Commit Graph
21 Commits
Author SHA1 Message Date
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 bc9f42f559 all: Use nanosleep (via SLEEP) instead usleep 2014-11-26 15:46:03 +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 f898ac4411 all: Fix typo 2014-05-10 22:39:47 +02:00
Aaro Koskinen 6dae516af2 cold-flash: accept also OMAP3630 in the ASIC ID
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-18 00:18:44 +01:00
Aaro Koskinen f5a9d273ce cold-flash: correct chip/soc name
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.
2013-02-18 00:18:44 +01:00
Pali Rohár 8635ea66a7 cold-flash: Decrease usleep time after leave_cold_flash 2012-11-21 14:13:12 +01:00
Pali Rohár e66d87fde0 Added macro PRINTF_ERROR_RETURN which working with progressbar 2012-09-23 17:09:27 +02:00
Pali Rohár d76b5a2b44 cold-flash: Added function init_cold_flash, basic check if asic id is correct 2012-09-23 16:12:22 +02:00
Pali Rohár db546a17b8 cold-flash: Add all omap boot messages 2012-08-12 17:32:42 +02:00
Pali Rohár 26099e9536 image_read returns size_t, so 0 when error or end of file 2012-08-11 21:23:53 +02:00
Pali Rohár 83bcb7358c Rewrite Makefile, move WITH_DEVICE, WITH_USB and WITH_SQUEUES to Makefile 2012-08-11 11:12:58 +02:00
Pali Rohár 8c5590d150 cold-flash: Rewrite error messages and return negative error values, -EAGAIN if not in cold flash mode 2012-08-11 10:39:11 +02:00
Pali Rohár 8eb58ad08c Move checking for flashing protocol from main to cold-flash 2012-08-10 14:56:38 +02:00
Pali Rohár f79b653523 cold-flash: Use struct usb_device_info 2012-08-10 13:22:01 +02:00
Pali Rohár 01239ea839 Rename usb_device to usb-device, fix includes 2012-08-09 16:13:43 +02:00
Pali Rohár 71b63c29d3 cold-flash: Remove usb_detach_kernel_driver_np and usb_claim_interface, now handled in usb_device.c 2012-08-08 21:39:38 +02:00
Pali Rohár 5b17b8e398 cold-flash: Fix usb_set_configuration and usb_claim_interface, Update information about OMAP boot messages, implement function leave_cold_flash 2012-08-08 16:57:39 +02:00
Pali Rohár b80dfdc657 cold-flash: prepair cold-flash code 2012-08-08 11:33:08 +02:00
Pali Rohár 418f3cfd4b Cold Flasher - Remove duplicate usb code, prepair for flashing form fiasco images 2012-06-23 18:19:08 +02:00
Pali Rohár 3f0d6f85d3 Import my open source tool for Cold Flashing: cold-flasher-rx51.c 2012-06-23 18:17:49 +02:00