Help - Search - Members - Calendar
Full Version: Lirc On Tetsu/eviljazz Kernel (2.4.20)
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > Sharp ROMs
matthis
As far as I know we don't have a working lirc module for 2.4.20 on the Sharp/Cacko ROM.

I tried to build Lirc 0.8.2

1. ./configure --host=i686 arm=arm-gnu-linux --with-kerneldir=/home/mat/Desktop/zaurus-kernel-2.4.20-v55/linux/ --prefix=/home/mat/Desktop/lirc-arm/ --with-driver=sa1100

2. make ends with these errors...

CODE
lirc_sir.c:139: `IRQ_Ser2ICP' undeclared here (not in a function)
lirc_sir.c: In function `on':
lirc_sir.c:242: `PPSR' undeclared (first use in this function)
lirc_sir.c:242: (Each undeclared identifier is reported only once
lirc_sir.c:242: for each function it appears in.)
lirc_sir.c:242: `PPC_TXD2' undeclared (first use in this function)
lirc_sir.c: In function `off':
lirc_sir.c:247: `PPSR' undeclared (first use in this function)
lirc_sir.c:247: `PPC_TXD2' undeclared (first use in this function)
lirc_sir.c: In function `lirc_write':
lirc_sir.c:362: `Ser2UTCR3' undeclared (first use in this function)
lirc_sir.c:383: `Ser2UTSR0' undeclared (first use in this function)
lirc_sir.c:383: `UTSR0_RID' undeclared (first use in this function)
lirc_sir.c:383: `UTSR0_RBB' undeclared (first use in this function)
lirc_sir.c:383: `UTSR0_REB' undeclared (first use in this function)
lirc_sir.c:385: `UTCR3_RXE' undeclared (first use in this function)
lirc_sir.c:385: `UTCR3_RIE' undeclared (first use in this function)
lirc_sir.c: In function `sir_interrupt':
lirc_sir.c:624: `Ser2UTSR0' undeclared (first use in this function)
lirc_sir.c:629: `UTSR0_EIF' undeclared (first use in this function)
lirc_sir.c:635: `Ser2UTSR1' undeclared (first use in this function)
lirc_sir.c:637: `UTSR1_FRE' undeclared (first use in this function)
lirc_sir.c:639: `UTSR1_ROR' undeclared (first use in this function)
lirc_sir.c:641: `UTSR1_PRE' undeclared (first use in this function)
lirc_sir.c:645: `Ser2UTDR' undeclared (first use in this function)
lirc_sir.c:650: `UTSR0_RFS' undeclared (first use in this function)
lirc_sir.c:650: `UTSR0_RID' undeclared (first use in this function)
lirc_sir.c:663: `UTSR1_RNE' undeclared (first use in this function)
lirc_sir.c:675: `UTSR0_TFS' undeclared (first use in this function)
lirc_sir.c:683: `UTSR0_RBB' undeclared (first use in this function)
lirc_sir.c:683: `UTSR0_REB' undeclared (first use in this function)
lirc_sir.c:616: warning: `data' might be used uninitialized in this function
lirc_sir.c: In function `init_hardware':
lirc_sir.c:875: `Ser2HSCR0' undeclared (first use in this function)
lirc_sir.c:877: `Ser2UTCR0' undeclared (first use in this function)
lirc_sir.c:878: `Ser2UTCR1' undeclared (first use in this function)
lirc_sir.c:879: `Ser2UTCR2' undeclared (first use in this function)
lirc_sir.c:880: `Ser2UTCR3' undeclared (first use in this function)
lirc_sir.c:881: `Ser2UTCR4' undeclared (first use in this function)
lirc_sir.c:883: `Ser2UTDR' undeclared (first use in this function)
lirc_sir.c:884: `Ser2UTSR0' undeclared (first use in this function)
lirc_sir.c:885: `Ser2UTSR1' undeclared (first use in this function)
lirc_sir.c:889: `PPDR' undeclared (first use in this function)
lirc_sir.c:889: `PPC_TXD2' undeclared (first use in this function)
lirc_sir.c:890: `PSDR' undeclared (first use in this function)
lirc_sir.c:898: `HSCR0_HSSP' undeclared (first use in this function)
lirc_sir.c:901: `UTSR0_RID' undeclared (first use in this function)
lirc_sir.c:901: `UTSR0_RBB' undeclared (first use in this function)
lirc_sir.c:901: `UTSR0_REB' undeclared (first use in this function)
lirc_sir.c:904: `UTCR0_1StpBit' undeclared (first use in this function)
lirc_sir.c:904: `UTCR0_7BitData' undeclared (first use in this function)
lirc_sir.c:909: `UTCR4_HPSIR' undeclared (first use in this function)
lirc_sir.c:909: `UTCR4_Z1_6us' undeclared (first use in this function)
lirc_sir.c:912: `UTCR3_RXE' undeclared (first use in this function)
lirc_sir.c:912: `UTCR3_RIE' undeclared (first use in this function)
lirc_sir.c: In function `drop_hardware':
lirc_sir.c:1015: `Ser2UTCR3' undeclared (first use in this function)
lirc_sir.c:1017: `Ser2UTCR0' undeclared (first use in this function)
lirc_sir.c:1018: `Ser2UTCR1' undeclared (first use in this function)
lirc_sir.c:1019: `Ser2UTCR2' undeclared (first use in this function)
lirc_sir.c:1020: `Ser2UTCR4' undeclared (first use in this function)
lirc_sir.c:1023: `Ser2HSCR0' undeclared (first use in this function)
make[5]: *** [lirc_sir.o] Error 1


What do I need to get it to compile? Thanks for any help.
Capn_Fish
It kind of looks like you're missing a header. Could you post the whole output, or did you post from exactly where the errors started?
matthis
Dear Capn_Fish,

Thank you for your reply.
Yes I did post from where the errors started ... no such thing as ***.h missing or any other helpful hint.

(Maybe I need to disable something in ./configure?)


PS: I tried with lirc version 0.6.6 (which has apparently been succesfully build for 2.4.18), but got the same errors.
Capn_Fish
I don't know. It might be one of the many cross-compiling issues. I seem to recall having this issue before (no missing headers, etc.), but I can't remember what caused it. It may have been a CFLAG or a missing dep (you've double-checked that you have all the necessary libs and the correct versions, right?).

EDIT: I just checked the home page, and it says something-or-other is broken in 0.8.2. Maybe try 0.8.3?
matthis
Same errors for 0.8.3 blink.gif
Capn_Fish
I'm out of ideas, then. Sorry sad.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.