fw_update not working in linux or OS X

USB infrared remote control receiver/transmitter. Get one for $20, including worldwide shipping.

Re: fw_update not working in linux or OS X

Postby JessH » Wed Feb 29, 2012 5:35 pm

Okay, I removed the cruft. Link is the same: http://jesshaas.com/software/IRToy-fw_update.tar.gz

Will get you those firmware dumps later.

~Jess
JessH
Newbie
Newbie
 
Posts: 18
Joined: Tue Jan 17, 2012 8:56 pm

Re: fw_update not working in linux or OS X

Postby charltones » Tue Jun 05, 2012 4:36 pm

Thanks Jess, your source for fw_update worked for me.

One extra tip, in case anyone else has the same problem. I found that the source (and the original download of the source from Diolan) wouldn't configure - it complained of missing libusb. I had libusb and the development headers installed, and no amount of trying to give the right path would help. In the end I delved into the configure script and found the way it was attempting to link didn't seem to work with my copy of g++ (4.6.1 on Linux Mint). I had to:
LIBS=-lusb ./configure

in order to get the test program to link to get configure to run. Apart from that it worked perfectly.
charltones
Newbie
Newbie
 
Posts: 3
Joined: Mon Jun 04, 2012 9:25 am

Re: fw_update not working in linux or OS X

Postby dpavlin » Wed Mar 27, 2013 10:48 am

It seems that jesshaas. com/software/IRToy-fw_update.tar.gz doesn't exist any more. Is there alternative location for firmware updater which works under Linux?

I'm asking this because I just received USB IR Toy v2 from seed, and it seems to be V212 which (if I understand it correctly) is v2 hardware with firmware v12 which would explain why it doesn't work for me :-)

p.s. I inserted space in URL above because forum won't let me post it otherwise. I did check correct one referenced on wiki and this forum.

Update: I extracted fw_update chages from OpenBench Logic Sniffer and applied changes required for 32k pic 18f2550. They are quite trivial, but I'm erasing just first 24k (which is enough for v22 firmware) see:

https://github.com/dpavlin/fw_update/co ... d93978ce06

I hope this will save time to next person who would like to update firmware on newly received IR Toy. It now correctly reports V222 and works with my LG remote. Thanks to everyone for this nice project.

Update 2: Current version at https://github.com/dpavlin/fw_update supports full 32k erase/program for 18F2550.
dpavlin
Newbie
Newbie
 
Posts: 3
Joined: Wed Mar 27, 2013 4:57 am

Re: fw_update not working in linux or OS X

Postby kylegordon » Mon May 20, 2013 5:01 pm

So you delved in and...

What did you do to fix it?
kylegordon
Newbie
Newbie
 
Posts: 1
Joined: Mon May 20, 2013 4:59 pm

Re: fw_update not working in linux or OS X

Postby pjotrekb » Sun Apr 28, 2019 2:49 pm

Sorry for necroposting, but I've got exactly the same issue (on Xubuntu 18.04):
I've just bought the IRToy from Seeed - and they still deliver it with outdated firmware: Selftest says version v212.

Now I'm stuck that the fw_update fails to configure/compile, complaining that:
checking for libusb... configure: error: libusb not found

I've tried compiling both: Jess' version, as well as dpavlin/fw_update (Github). Same issue.

Although I've installed it libusb:
Code: Select all
$ apt install libusb-1.0-0 libusb-1.0-0-dev


When I try charitones' suggestion (LIBS=-lusb ./configure), configure just stops earlier with this message:
configure: error: C++ compiler cannot create executables

(Which is not an issue when I omit "LIBS=-lusb", but...)


I've tried finding out how configure looks for libusb to fix why it can't find it, but failed :(

Any help would greatly be appreciated. Thanks :)
pjotrekb
Newbie
Newbie
 
Posts: 3
Joined: Sun Apr 28, 2019 2:46 pm

Re: fw_update not working in linux or OS X

Postby Barf » Tue Apr 30, 2019 1:10 am

Where was the include file usb.h installed?
Barf
Jr. Member
Jr. Member
 
Posts: 73
Joined: Mon Jul 07, 2014 3:12 pm

Re: fw_update not working in linux or OS X

Postby pjotrekb » Tue Apr 30, 2019 10:15 am

Code: Select all
$ find / -iname "usb.h"

Gave a lot (>80) matches in kernel headers.
All these usb.h seemed to belong to individual hardware drivers (dvb, wimax/i2400m, snd, at76c50x, etc).

One however was in:
/usr/src/linux-headers-4.15.0.44-generic/include/config/usb.h

...but none of them looked like libusb to me, but I may be wrong.


But then I also searched for "libusb.h", which returned:
/usr/include/libusb-1.0/libusb.h


Does that help?
Thanks in advance!
pjotrekb
Newbie
Newbie
 
Posts: 3
Joined: Sun Apr 28, 2019 2:46 pm

Re: fw_update not working in linux or OS X

Postby Barf » Tue Apr 30, 2019 12:01 pm

Hmmm... The program (pic_bootloader.cpp and pic_bootloader.h) expects a file called "usb.h", not libusb.h. On my Fedora 29 system, libusb-devel installs such a file, as /usr/include/usb.h.

How to solve this cleanly is not entirely clear. Ideally. the author of the program should check that the program compiles and works with the present libusb.

Try this: just copy your libusb.h to somewhere where the compiler finds it, using the name usb.h.
Barf
Jr. Member
Jr. Member
 
Posts: 73
Joined: Mon Jul 07, 2014 3:12 pm

Re: fw_update not working in linux or OS X

Postby pjotrekb » Tue Apr 30, 2019 2:42 pm

Ooooh... Will check/try that (and report back)!
Interesting that noone has previously mentioned this here...
pjotrekb
Newbie
Newbie
 
Posts: 3
Joined: Sun Apr 28, 2019 2:46 pm

Re: fw_update not working in linux or OS X

Postby latysa » Fri Jul 12, 2019 5:06 pm

JessH wrote:I tried the ols-fw-update binaryfilezilla uc browser rufus from the latest open logic sniffer package and it finds the device, erases and writes the firmware but then fails at the verify step. I took away the -v option and it erased, wrote and rebooted but the irtoys serial device never shows up.So looks like the diolan's firmware_update utility linked from the irtoy docs is broken(atleast with modern linux and gcc) and the ols-fw-update doesn't work properly with the irtoy.

Ideas?

-Jess

I compiled fw_update in both linux and Mac OS X. In both cases it can't find the ir toy and this is all I get:
latysa
Newbie
Newbie
 
Posts: 2
Joined: Fri Jul 12, 2019 5:03 pm

Previous

Return to USB Infrared Toy