Jump to content
Flirc Forums
LinuxMan

Device immediately reverts to bootloader; completely unusable

Recommended Posts

Dead in the water, right out of the box.  Need help ASAP.  Details are:

 

Target machine:  Raspberry Pi running raspbmc.  (the Pi was purchased together with with the flirc here)

GUI machine:  (1) x86_64 linux, (2) Windows 7 x32 (I've tried both).

 

1.  Setup flirc in either GUI machine.  No apparent issues; things look promising.

2.  Unplug device, move it to target machine.  HID keyboard device 0x20a0:0x0001 appears.

3.  Moments later, suddenly, the device disconnects and reappears as bootloader 0x20a0:0x0002.  No response to remote.

4.  Retry setup in a GUI machine.  A download occurs, and things look okay again.  Return to step 2.

5.  Lather, rinse, repeat, scream.

 

Here's the target machine's syslog.

 

Jul  9 21:33:22 raspbmc kernel: usb 1-1.2: new low-speed USB device number 69 using dwc_otg
Jul  9 21:33:22 raspbmc kernel: usb 1-1.2: New USB device found, idVendor=20a0, idProduct=0001
Jul  9 21:33:22 raspbmc kernel: usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul  9 21:33:22 raspbmc kernel: usb 1-1.2: Product: flirc
Jul  9 21:33:22 raspbmc kernel: usb 1-1.2: Manufacturer: flirc.tv
Jul  9 21:33:22 raspbmc kernel: input: flirc.tv flirc as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input5
Jul  9 21:33:22 raspbmc kernel: hid-generic 0003:20A0:0001.0006: input: USB HID v1.01 Keyboard [flirc.tv flirc] on usb-bcm2708_usb-1.2/input0
Jul  9 21:33:40 raspbmc kernel: usb 1-1.2: USB disconnect, device number 69
Jul  9 21:33:41 raspbmc kernel: usb 1-1.2: new low-speed USB device number 70 using dwc_otg
Jul  9 21:33:42 raspbmc kernel: usb 1-1.2: New USB device found, idVendor=20a0, idProduct=0002
Jul  9 21:33:42 raspbmc kernel: usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul  9 21:33:42 raspbmc kernel: usb 1-1.2: Product: bootldr
Jul  9 21:33:42 raspbmc kernel: usb 1-1.2: Manufacturer: claylogic.com

 

Please respond VERY URGENTLY.  This is a SHOW-STOPPING bug and I surely cannot be the only one affected.

 

Thanks,

Eric

Share this post


Link to post
Share on other sites

It's because of a cheap power supply. I have a workaround in newer devices. You can shoot me an email for a replacement, or if you have a higher quality USB supply at home, that will probably fix it too. Let me know. You can reach me at support at flirc.tv

Share this post


Link to post
Share on other sites

Thanks so much for the quick response.

 

It's running off a 3A/5V stepdown regulator coming from a Powerwerx 30A/12V switching supply, either of which I'd be hard pressed to blame -- but okay, maybe.

 

Regardless, if you've got a replacement that behaves, I'll take it.  Will contact you privately about that.

 

Thanks again,

Eric

Share this post


Link to post
Share on other sites

LinuxMan it doesn't really matter what power supply you are using to power up the RPi. USB host ports are still limitted in their power output with polyfuses which limit the output current to 140mA in constant draw. It is recommended not to draw more than 100mA and even with only 100mA the output voltage can drop almost 0.5v from 5v to 4.5v.

 

Use powered USB hub between RPi and devices which are powered from USB. USB ports on RPi were not designed to power other devices.

Edited by yawor

Share this post


Link to post
Share on other sites

Flirc only uses 5-10mA at best. The issue is that there is noise on the power supply. And there is a race condition, because flirc is starting up and the power supply shuts it down again. I've fixed it in the new bootloader, doesn't happen with all devices. Please email me if you are still seeing that.

 

Thanks Yawor for all your help in the forums, you've really been an asset lately, can I offer you some free loot? Possibly an admin account if you are interested?

Share this post


Link to post
Share on other sites

Hello 

I have a similar problem to OP.  Dead in the water, right out of the box.  Need help ASAP

I'm using kodibuntu on my laptop... My flirc opens for a few minutes then closes again.

 

Here is my sys log

kernel: [ 4162.056337] usb 5-1: Product: flirc
kernel: [ 4162.056341] usb 5-1: Manufacturer: flirc.tv
kernel: [ 4162.107497] input: flirc.tv flirc as /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input17
kernel: [ 4162.107793] hid-generic 0003:20A0:0001.0004: input,hidraw3: USB HID v1.01 Keyboard [flirc.tv flirc] on usb-0000:00:1d.3-1/input0
mtp-probe: checking bus 5, device 6: "/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1"
mtp-probe: bus: 5, device: 6 was not an MTP device
kernel: [ 4180.488097] usb 5-1: USB disconnect, device number 6
acpid: input device has been disconnected, fd 13
kernel: [ 4181.192045] usb 5-1: new low-speed USB device number 7 using uhci_hcd
kernel: [ 4181.363327] usb 5-1: New USB device found, idVendor=20a0, idProduct=0002
kernel: [ 4181.363334] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
kernel: [ 4181.363338] usb 5-1: Product: bootldr
kernel: [ 4181.363342] usb 5-1: Manufacturer: claylogic.com
mtp-probe: checking bus 5, device 7: "/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1"
mtp-probe: bus: 5, device: 7 was not an MTP device

Then more errors ???


kernel: [ 6346.195978] Flirc[6533]: segfault at 18 ip 0806a138 sp bf971fd0 error 4 in Flirc[8048000+236000]
kernel: [ 6361.756608] Flirc[6553]: segfault at 18 ip 0806a138 sp bfeec380 error 4 in Flirc[8048000+236000]


kernel: [ 4161.884181] usb 5-1: new low-speed USB device number 6 using uhci_hcd
kernel: [ 4162.056324] usb 5-1: New USB device found, idVendor=20a0, idProduct=0001
kernel: [ 4162.056333] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
kernel: [ 4162.056337] usb 5-1: Product: flirc
kernel: [ 4162.056341] usb 5-1: Manufacturer: flirc.tv
kernel: [ 4162.107497] input: flirc.tv flirc as /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input17
kernel: [ 4162.107793] hid-generic 0003:20A0:0001.0004: input,hidraw3: USB HID v1.01 Keyboard [flirc.tv flirc] on usb-0000:00:1d.3-1/input0
mtp-probe: checking bus 5, device 6: "/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1"
mtp-probe: bus: 5, device: 6 was not an MTP device
kernel: [ 4180.488097] usb 5-1: USB disconnect, device number 6
acpid: input device has been disconnected, fd 13
kernel: [ 4181.192045] usb 5-1: new low-speed USB device number 7 using uhci_hcd
kernel: [ 4181.363327] usb 5-1: New USB device found, idVendor=20a0, idProduct=0002
kernel: [ 4181.363334] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
kernel: [ 4181.363338] usb 5-1: Product: bootldr
kernel: [ 4181.363342] usb 5-1: Manufacturer: claylogic.com
mtp-probe: checking bus 5, device 7: "/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1"
mtp-probe: bus: 5, device: 7 was not an MTP device

and this is the message i get when i run 'flirc' for terminal.

$ Flirc

Can't load 'test.ini'
[E] fl_product_type(717): unknown or unsupported variant
[E] fl_product_type(717): unknown or unsupported variant
[E] fl_product_type(717): unknown or unsupported variant
[DEVICE]        Uploading

 

Thanks in advance for any help

Rich

 

Edited by blingblangblong
didn't put all errors in

Share this post


Link to post
Share on other sites

Hello 

I have a similar problem to OP.  Dead in the water, right out of the box.  Need help ASAP

I'm using kodibuntu on my laptop... My flirc opens for a few minutes then closes again.

 

Here is my sys log

kernel: [ 4162.056337] usb 5-1: Product: flirc
kernel: [ 4162.056341] usb 5-1: Manufacturer: flirc.tv
kernel: [ 4162.107497] input: flirc.tv flirc as /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input17
kernel: [ 4162.107793] hid-generic 0003:20A0:0001.0004: input,hidraw3: USB HID v1.01 Keyboard [flirc.tv flirc] on usb-0000:00:1d.3-1/input0
mtp-probe: checking bus 5, device 6: "/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1"
mtp-probe: bus: 5, device: 6 was not an MTP device
kernel: [ 4180.488097] usb 5-1: USB disconnect, device number 6
acpid: input device has been disconnected, fd 13
kernel: [ 4181.192045] usb 5-1: new low-speed USB device number 7 using uhci_hcd
kernel: [ 4181.363327] usb 5-1: New USB device found, idVendor=20a0, idProduct=0002
kernel: [ 4181.363334] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
kernel: [ 4181.363338] usb 5-1: Product: bootldr
kernel: [ 4181.363342] usb 5-1: Manufacturer: claylogic.com
mtp-probe: checking bus 5, device 7: "/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1"
mtp-probe: bus: 5, device: 7 was not an MTP device

Then more errors ???


kernel: [ 6346.195978] Flirc[6533]: segfault at 18 ip 0806a138 sp bf971fd0 error 4 in Flirc[8048000+236000]
kernel: [ 6361.756608] Flirc[6553]: segfault at 18 ip 0806a138 sp bfeec380 error 4 in Flirc[8048000+236000]


kernel: [ 4161.884181] usb 5-1: new low-speed USB device number 6 using uhci_hcd
kernel: [ 4162.056324] usb 5-1: New USB device found, idVendor=20a0, idProduct=0001
kernel: [ 4162.056333] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
kernel: [ 4162.056337] usb 5-1: Product: flirc
kernel: [ 4162.056341] usb 5-1: Manufacturer: flirc.tv
kernel: [ 4162.107497] input: flirc.tv flirc as /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input17
kernel: [ 4162.107793] hid-generic 0003:20A0:0001.0004: input,hidraw3: USB HID v1.01 Keyboard [flirc.tv flirc] on usb-0000:00:1d.3-1/input0
mtp-probe: checking bus 5, device 6: "/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1"
mtp-probe: bus: 5, device: 6 was not an MTP device
kernel: [ 4180.488097] usb 5-1: USB disconnect, device number 6
acpid: input device has been disconnected, fd 13
kernel: [ 4181.192045] usb 5-1: new low-speed USB device number 7 using uhci_hcd
kernel: [ 4181.363327] usb 5-1: New USB device found, idVendor=20a0, idProduct=0002
kernel: [ 4181.363334] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
kernel: [ 4181.363338] usb 5-1: Product: bootldr
kernel: [ 4181.363342] usb 5-1: Manufacturer: claylogic.com
mtp-probe: checking bus 5, device 7: "/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1"
mtp-probe: bus: 5, device: 7 was not an MTP device

and this is the message i get when i run 'flirc' for terminal.

$ Flirc

Can't load 'test.ini'
[E] fl_product_type(717): unknown or unsupported variant
[E] fl_product_type(717): unknown or unsupported variant
[E] fl_product_type(717): unknown or unsupported variant
[DEVICE]        Uploading

 

Thanks in advance for any help

Rich

 

Does it upload? you don't need the ini to run the GUI.  Does the GUI eventually launch? If not, try sudo Flirc.

Share this post


Link to post
Share on other sites

Try adding this to your /boot/cmdline.txt file:

dwc_otg.speed=1

You'll need to reboot for that to work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×