LIRC and USB IRToy

Posted: November 4, 2013 in IOT, Linux

Building LIRC for DP USB IR Toy

 

How I built LIRC with USB IR Toy support

matt@desktop:~$ git clone git://lirc.git.sourceforge.net/gitroot/lirc/lirc
Cloning into 'lirc'...
remote: Counting objects: 13436, done.
remote: Compressing objects: 100% (3474/3474), done.
remote: Total 13436 (delta 10403), reused 12735 (delta 9826)
Receiving objects: 100% (13436/13436), 2.60 MiB | 534 KiB/s, done.
Resolving deltas: 100% (10403/10403), done.
matt@desktop:~$ cd lirc
matt@desktop:~/lirc$ wget http://www.thenautilus.net/cgit/gentoo-overlay/plain/app-misc/lirc/files/lirc-0.9.0-usb_irtoy.patch
--2013-09-13 21:07:57-- http://www.thenautilus.net/cgit/gentoo-overlay/plain/app-misc/lirc/files/lirc-0.9.0-usb_irtoy.patch
Resolving www.thenautilus.net (www.thenautilus.net)... 84.19.175.180, 2a01:1e8:e100:27c::2
Connecting to www.thenautilus.net (www.thenautilus.net)|84.19.175.180|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19871 (19K) [text/plain]
Saving to: 'lirc-0.9.0-usb_irtoy.patch'
100%[==================================================>] 19,871 58.8K/s in 0.3s
2013-09-13 21:07:58 (58.8 KB/s) - 'lirc-0.9.0-usb_irtoy.patch' saved [19871/19871]
matt@desktop:~/lirc$ patch -p1 < lirc-0.9.0-usb_irtoy.patch
patching file configure.ac
Hunk #2 succeeded at 446 (offset -1 lines).
Hunk #3 succeeded at 680 (offset -1 lines).
Hunk #4 succeeded at 1394 (offset -1 lines).
patching file daemons/hw-types.c
patching file daemons/hw_usbirtoy.c
patching file setup.data
patching file setup.sh
matt@desktop:~/lirc$ ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:17: installing `./compile'
configure.ac:10: installing `./missing'
daemons/Makefile.am: installing `./depcomp'
Makefile.am: installing `./INSTALL'
Creating setup-driver.sh ...
matt@desktop:~/lirc$ ./configure --with-driver=usb_irtoy --without-x --with-tty=/dev/usbirtoy
matt@desktop:~/lirc$ ./configure --with-driver=usb_irtoy --without-x --with-tty=/dev/usbirtoy
checking for a BSD-compatible install... /usr/bin/install -c
...
. config.status: executing libtool commands
Your hardware does not require a special LIRC kernel module.
You will have to use the suitable kernel driver to access /dev/usbirtoy.
Now enter 'make' and 'make install' to compile and install the package.
matt@desktop:~/lirc$ make
...
matt@desktop:~/lirc$ sudo make install
matt@desktop:~$ cat /etc/udev/rules.d/60-usb_irtoy.rules
SUBSYSTEM=="tty",KERNEL=="ttyACM*",ATTRS{manufacturer}=="Dangerous Prototypes", ATTRS{product}=="CDC Test", ATTRS{serial}=="00000001",SYMLINK+="usbirtoy"
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s