Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2012 00:15:48 +0200
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        Juergen Lock <nox@jelal.kn-bremen.de>
Cc:        freebsd-multimedia@FreeBSD.org, freebsd-hackers@FreeBSD.org
Subject:   Re: serial lirc driver for testing (and a book review)
Message-ID:  <20120427221548.GA54848@triton8.kn-bremen.de>
In-Reply-To: <20120424210838.GA9258@triton8.kn-bremen.de>
References:  <20120424210838.GA9258@triton8.kn-bremen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
I have now updated the shar and patch to uart(4) code from head
(instead of 9.0), fixed read() not respecting O_NONBLOCK, and improved
behaviour at kldunload:

	http://people.freebsd.org/~nox/tmp/uart-lirc-preliminary-002.patch

and

	http://people.freebsd.org/~nox/tmp/uartlirc-preliminary-002.shar

If someone would like to comment on the code I'd be grateful! :)

On Tue, Apr 24, 2012 at 11:08:38PM +0200, Juergen Lock wrote:
> Hi!
> 
>  For those that don't read forums.freebsd.org:  I posted a short review
> of "FreeBSD Device Drivers: A Guide for the Intrepid" by Joseph Kong,
> 
> 	http://forums.freebsd.org/showthread.php?p=175029
> 
> and wrote a serial lirc driver in the process.  If you want to test
> it extract the shar, run `make DEBUG_FLAGS=-g' in the extracted uartlirc
> dir, then copy uartlirc.ko and uartlirc.ko.symbols to /boot/modules,
> reboot to loader prompt, do `load uartlirc.ko' and `boot -v'.
> (or add `uartlirc_load="YES"' to loader.conf and reboot.)
> 
>  After that make sure you have the comms/lirc port installed, then
> you should be able to run:
> 
> 	mode2 -d /dev/lirc0
> 
> or if you have X,
> 
> 	xmode2 -d /dev/lirc0
> 
> and see pulses and spaces reported when triggering a remote at the
> receiver, and using irrecord and lircd should work as normal too,
> see the pkg-message of the comms/lirc port which can be shown like
> this:
> 
> 	pkg_info -D lirc\* |less
> 
>  Enjoy, :)
> 	Juergen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120427221548.GA54848>