colorhug-flash failure

98 views
Skip to first unread message

Michał Nazarewicz

unread,
Jan 30, 2019, 4:59:38 PM1/30/19
to colorhu...@googlegroups.com
I’m trying to update firmware on my ColorHug, so I connect the device
and get the following in dmesg:

[28159.983482] usb 3-1: new full-speed USB device number 12 using uhci_hcd
[28160.179040] usb 3-1: New USB device found, idVendor=04d8,
idProduct=f8da, bcdDevice= 0.02
[28160.179046] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[28160.179050] usb 3-1: Product: ColorHug
[28160.179053] usb 3-1: Manufacturer: Hughski Ltd.
[28160.185608] hid-generic 0003:04D8:F8DA.0011: hiddev1,hidraw4: USB
HID v1.11 Device [Hughski Ltd. ColorHug] on usb-0000:00:1a.2-1/input0

I then run colorhug-flash (version 0.2.8, packaged with Debian) which
detects that a new firmware is available:

$ sudo colorhug-flash
1.2.3 compared to 1.2.0 = newer
1.2.2 compared to 1.2.0 = newer
1.2.1 compared to 1.2.0 = newer
1.1.8 compared to 1.2.0 = older

So I hit ‘Update’ and the tool does something for a bit but then spits
out the following two errors:

usb:00:01: Invalid read: retval=0x0b [Unknown command for bootloader]
cmd=0x0b [get-serial-number] (expected 0xb [get-serial-number]) len=2
(expected 6 or 64)
usb:00:01: USB error on device 04d8:f8da : No such device (it may have
been disconnected) [-4]

Anyone has an idea what’s wrong?

Here’s some more debug info:

$ uname -r
4.19.0-1-amd64
$ colorhug-cmd get-firmware-version
1.2.0
$ colorhug-cmd get-hardware-version
Hardware Version 1
$ colorhug-cmd get-serial-number
000584
$ colorhug-cmd get-calibration-map
0 -> 0
1 -> 0
2 -> 0
3 -> 0
4 -> 0
5 -> 0
$ colorhug-cmd list-calibration
Index Description
0 Factory Calibration [LCPE]
1 Lenovo T510 [L]
2 Lenovo T500 [L]
3 DELL U2410 (sRGB) [L]
$ lsusb -vd 04d8:f8da

Bus 003 Device 014: ID 04d8:f8da Microchip Technology, Inc. Hughski
Ltd. ColorHug
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x04d8 Microchip Technology, Inc.
idProduct 0xf8da Hughski Ltd. ColorHug
bcdDevice 0.02
iManufacturer 1 Hughski Ltd.
iProduct 2 ColorHug
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 41
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 300mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 29
Report Descriptor: (length is 29)
Item(Global): Usage Page, data= [ 0x00 0xff ] 65280
(null)
Item(Local ): Usage, data= [ 0x01 ] 1
(null)
Item(Main ): Collection, data= [ 0x01 ] 1
Application
Item(Local ): Usage Minimum, data= [ 0x01 ] 1
(null)
Item(Local ): Usage Maximum, data= [ 0x40 ] 64
(null)
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Report Count, data= [ 0x40 ] 64
Item(Main ): Input, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position
Non_Volatile Bitfield
Item(Local ): Usage Minimum, data= [ 0x01 ] 1
(null)
Item(Local ): Usage Maximum, data= [ 0x40 ] 64
(null)
Item(Main ): Output, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position
Non_Volatile Bitfield
Item(Main ): End Collection, data=none
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Device Status: 0x0001
Self Powered


--
Best regards
ミハウ “𝓶𝓲𝓷𝓪86” ナザレヴイツ
«If at first you don’t succeed, give up skydiving»

Richard Hughes

unread,
Jan 31, 2019, 7:37:47 AM1/31/19
to colorhu...@googlegroups.com
On Wed, 30 Jan 2019 at 21:59, Michał Nazarewicz <min...@mina86.com> wrote:
> I then run colorhug-flash (version 0.2.8, packaged with Debian) which
> detects that a new firmware is available:

Could you try with fwupdmgr? That's been the supported update
mechanism for some time.

Richard.
Reply all
Reply to author
Forward
0 new messages