Compiling LIRC on Ubuntu


I’m running Robert Nelsons version of Ubuntu kernel, and most of the stuff seems to work ok. The kernel was cross compiled with Robert’s scripts on x86 Ubuntu machine, and I’m running his latest version of kernel (3.0.3-x2)
I have downloaded the build essentials, to be able to compile c++ code and my project compiles fine.

However, I’m having problems compiling LIRC.
When I try to compile the project, I get strange error:
scripts/genksyms/genksyms: 1: Syntax error: “(” unexpected
whole make log is here

When looking at the genksyms, the “file genksyms” shows this:
genksyms: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

Should this be x86 ? Or armel ? Anyhow naturally it won’t run then trying to execute.

Have I done something wrong when copying the sources (and therefore, also the scripts) to the Ubuntu image on my Beagle ? At least the kernel and modules seem to run ok


Any reason why your aren't just installing lirc from a package "sudo
apt-get install lirc" ?

Both Ubuntu Oneiric and Debian testing (Wheezy) have lirc 0.9.0 built..

As of 2.6.36, most of the lirc modules are now built in the kernel..


Is there a specific module you need???

Otherwise back to building: (can you please supply your "./configure"
line, a few drivers are broken for v3.0.x..)

/tmp/lirc-0.9.0$ ./configure
--with-kerneldir=/tmp/stable-kernel/KERNEL/ --with-driver=all ??


Hi Robert,

And first of all, thanks for your great work on the elinux page for Ubuntu, it was really easy to start using ubuntu on my beagleboard following your instructions!

I’m still very much a newbie in whole linux development, so I might have made some mistakes / wrong assumptions.
When I recompiled newest kernel from your scripts, I copied the uImage and kernel from deploy directory. Copied source from folder KERNEL to /usr/src and symlinked /usr/src/linux to the appropriate folder

Indeed I tried first installing lirc through aptitude. To my understanding, I need lirc and lirc-modules-source, to be able to configure my serial infra transceiver… or is this assumption wrong ?

When installing lirc through aptitude, the dpkg only gives you the options to configure ttyS0 or ttyS1, is there any difference that on current kernels those ports are called ttyOx ?
Or is it just the matter of supplying proper address and irq (dmesg |grep tty, I get ttyO0 at MMIO 0x4806a000 (irq = 72) ) to some config file, and those ttySx ttyOx are just for human readability ?
My /etc/serial.conf says /dev/ttyS0 uart none, should this be ttyO0?

Installing lirc through aptitude, the “loading LIRC modules” just hangs, or fails, it seems to vary, this happens with and without lirc-modules-source (I guess lirc is configured first)
If it doesn’t hang, it says to check my lirc configuration from hardware.conf

In dmesg looks like there is some issue loading the module (Unable to handle kernel NULL pointer dereference at virtual address 000003f9)

The .configure command of lirc can be seen here:

Thanks a lot for your advice,