I got the irtrans to work under Karmic by compiling the 2.6.31.6 kernel from kernel.org and by replacing the ftdi_sio module. Result is a nicely working HTPC. Aside from this unfortunate issue with the ftdi_sio kernel module supplied in Karmic which hopefully will be resolved in some kernel update later on there is now out-of-the box support in lcdproc for the irtrans module.
Short summary on how I got it to work is above, the long "overkill" version is below where I recompiled the complete kernel only to get a working ftdi_sio module. I am sure that there is a faster way to do it, however I did not manage to get a module that would load by only compiling a single module. Suggestions are welcome
.
Create two new directories within your home:
Code:
# cd
# mkdir kernel-tmp
# mkdir kernel
# cd kernel-tmp
Download the kernel source for 2.6.31.6 and unpack the kernel:
Code:
# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.6.tar.bz2
# tar xjvf linux-2.6.31.6.tar.bz2
Download the kernel source for the current kernel using apt and satisfy the build dependencies:
Code:
# cd
# cd
# cd kernel
# sudo apt-get build-dep linux-image-$(uname -r) fakeroot
# sudo apt-get install kernel-package
# apt-get source linux-image-$(uname -r)
# cd linux-$(uname -r)
Prepare the kernel for rebuilding to the currently installed kernel:
Code:
# cp /boot/config-$(uname -r) .config
# make oldconfig
Answer any questions with the default answer if applicable
Remove the debugging option to avoid large file sizes:
Search for the string "CONFIG_DEBUG_INFO" (CTRL-W) and replace the value to "CONFIG_DEBUG_INFO=n"
Save the change using CTRL-O and exit the file with CTRL-W
Now we are changing the makefile to make sure the kernel has the same identifier as the running kernel:
Change the EXTRAVERSION value to EXTRAVERSION = -14
Save in nano with CTRL-O and exit with CTRL-X
Now copy (replace) the new source for the FTDI driver from the downloaded kernel to the source retrieved using apt
Code:
# cd
# cp kernel-tmp/linux-2.6.31.6/drivers/usb/serial/ftdi* kernel/linux-image-$(uname -r)/drivers/usb/serial/
Build the kernel using the following command:
Code:
# sudo make-kpkg --rootcmd fakeroot --initrd --append-to-version=-generic kernel-image
Test your new ftdi module:
Code:
# sudo rmmod ftdi_sio
# sudo insmod drivers/usb/serial/ftdi_sio.ko
The irserver should work now, test this by typing:
Code:
# sudo /usr/local/irtrans/irserver /dev/ttyUSB0
Make the change permanent by the following command (replace the old module):
Code:
# sudo cp drivers/usb/serial/ftdi_sio.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/
I hope this works for you as well. Let me know if the instructions work for you or if you have a faster solution.
Bookmarks