View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Mar 08, 2007 9:35 pm 
Offline
Joined: Mon Aug 14, 2006 11:49 am
Posts: 26
I have been experimenting with KnoppMyth for several days and almost everything worked right out of the box, almost everything.

The hardware is a Lixsystems lx8102 with the ASUS M2NPV-VM motherboard. This system has a homebrew serial IR receiver hooked up to COM1, which their tech support describes as "home brew SIO"

I found directions for enabling support for the homebrew IR receiver at http://www.knoppmythwiki.org/index.php?page=LIRCHowTo and I was trying to follow it but ran into a rpoblem where the configuration script requires the kernel soures, which I can't find.

Am I choosing the correct options?
I downloaded the lird-0.7.0 sources and extracted in /usr/src
cd lirc-0.7.0
./setup-sh

The documentation says to follow the prompts but doesn't say which options to choose. I chose the following:

1 Driver Configuration
...then
1 Home-bew (16x50 UART compatible serial port)
...then
1 COM1 (0x3f8, 4)

Then I'm not sure about the option for "Driver Specific Options". Option 2 "Software generated carrier" is chosen by default so I stayed with that. The other options are "With transmitter diode" and "Igor Cesko's variation", neither of which I checked.

Then I chose "3 Save configuration & run configure"

Then then runs configure but that fails eventually complaining about lack of sourcecode:

.
.
.
checking for Linux kernel sources... no Makefile found
checking for which drivers can be installed on this system...
checking for caraca_init in -lcaraca_client... no
checking for ir_strerror in -lirman... no
checking for ir_strerror in -lirman_sw... no
checking for portaudio.h... no
checking for alsa/asoundlib.h... yes
checking for snd_pcm_open in -lasound... yes
configure: error: *** you need to have the Linux kernel source installed
for this driver


There are no kernel sources I could find on the DVD image I downloaded or anywhere within /usr/src. There are header files installed but not full kernel sources.

How can I get this serial IR receiver working?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 09, 2007 12:21 am 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
http://mysettopbox.tv/phpBB2/viewtopic.php?t=13281


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 09, 2007 9:24 am 
Offline
Joined: Mon Aug 14, 2006 11:49 am
Posts: 26
Thanks. That got the kernel installed successfully.

Sorry for the stupid questions but I'm just learning about Debian, I've been using Fedora for the last several years.

Ok, now returning to the lirc instructions, I extracted the linux sources, copied the.config file from the linux-headers directory to the linux-source-2.6.18-chw-13 directory and typically I should be able to just do a "make oldconfig" to load in the settings from .config

Unfortunately that did not work:

root@mythtv:/usr/src/linux-source-2.6.18-chw-13# pwd
/usr/src/linux-source-2.6.18-chw-13
root@mythtv:/usr/src/linux-source-2.6.18-chw-13# ls -l .config
-rw-r--r-- 1 root root 68185 Mar 9 07:06 .config
root@mythtv:/usr/src/linux-source-2.6.18-chw-13# make oldconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:304:24: error: asm/socket.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2


Did I miss something?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 09, 2007 9:12 pm 
Offline
Joined: Mon Aug 14, 2006 11:49 am
Posts: 26
Ok, I seem to have solved that problem.

It was of course incredibly NOT obvious, but after much messing around the Googling I found that there was a missing symlink. From the kernel source directory:

# ln -s includes/asm-i386 includes/asm

The "make oldconfig" completes successfully after that.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 10, 2007 9:19 am 
Offline
Joined: Mon Aug 14, 2006 11:49 am
Posts: 26
So now the setup.sh script completes and creates the Makefiles but it won't compile:


Code:
root@mythtv:/usr/src/lirc-0.7.0# make
make  all-recursive
make[1]: Entering directory `/usr/src/lirc-0.7.0'
Making all in drivers
make[2]: Entering directory `/usr/src/lirc-0.7.0/drivers'
Making all in lirc_dev
make[3]: Entering directory `/usr/src/lirc-0.7.0/drivers/lirc_dev'
mv Makefile Makefile.automake
cp ../Makefile.kernel Makefile
make -C /usr/src/linux/ SUBDIRS=/usr/src/lirc-0.7.0/drivers/lirc_dev modules \
                KBUILD_VERBOSE=1
make[4]: Entering directory `/usr/src/linux-source-2.6.18-chw-13'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (           \
        echo;                                                           \
        echo "  ERROR: Kernel configuration is invalid.";               \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                                                           \
        /bin/false)
mkdir -p /usr/src/lirc-0.7.0/drivers/lirc_dev/.tmp_versions
rm -f /usr/src/lirc-0.7.0/drivers/lirc_dev/.tmp_versions/*

  WARNING: Symbol version dump /usr/src/linux-source-2.6.18-chw-13/Module.symvers
           is missing; modules will have no dependencies and modversions.

make -f scripts/Makefile.build obj=/usr/src/lirc-0.7.0/drivers/lirc_dev
  gcc -m32 -Wp,-MD,/usr/src/lirc-0.7.0/drivers/lirc_dev/.lirc_dev.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i586  -ffreestanding -Iinclude/asm-i386/mach-default -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I /usr/src/lirc-0.7.0/drivers/lirc_dev/../.. -I /usr/src/linux//include/  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_dev)"  -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)" -c -o /usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.o /usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:28:27: error: linux/version.h: No such file or directory
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:29:5: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:29:26: warning: "KERNEL_VERSION" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:29:40: error: missing binary operator before token "("
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:47:5: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:47:26: warning: "KERNEL_VERSION" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:47:40: error: missing binary operator before token "("
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:53:5: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:53:27: warning: "KERNEL_VERSION" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:53:41: error: missing binary operator before token "("
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:57:5: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:57:27: warning: "KERNEL_VERSION" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:57:41: error: missing binary operator before token "("
In file included from /usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:61:
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:8:5: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:8:27: warning: "KERNEL_VERSION" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:8:41: error: missing binary operator before token "("
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:12:7: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:12:29: warning: "KERNEL_VERSION" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:12:43: error: missing binary operator before token "("
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:17:5: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:17:26: warning: "KERNEL_VERSION" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:17:40: error: missing binary operator before token "("
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:28:5: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:28:26: warning: "KERNEL_VERSION" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:28:40: error: missing binary operator before token "("
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:83:5: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:83:27: warning: "KERNEL_VERSION" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/../../drivers/kcompat.h:83:41: error: missing binary operator before token "("
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c: In function 'lirc_register_plugin':
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:376: error: 'MOD_INC_USE_COUNT' undeclared (first use in this function)
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:376: error: (Each undeclared identifier is reported only once
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:376: error: for each function it appears in.)
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:435:5: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:435:27: warning: "KERNEL_VERSION" is not defined
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:435:41: error: missing binary operator before token "("
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c: In function 'lirc_unregister_plugin':
/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.c:476: error: 'MOD_DEC_USE_COUNT' undeclared (first use in this function)
make[5]: *** [/usr/src/lirc-0.7.0/drivers/lirc_dev/lirc_dev.o] Error 1
make[4]: *** [_module_/usr/src/lirc-0.7.0/drivers/lirc_dev] Error 2
make[4]: Leaving directory `/usr/src/linux-source-2.6.18-chw-13'
make[3]: *** [lirc_dev.o] Error 2
make[3]: Leaving directory `/usr/src/lirc-0.7.0/drivers/lirc_dev'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/lirc-0.7.0/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/lirc-0.7.0'
make: *** [all] Error 2



This looks related to include file version.h no longer existing. How do I work around that?


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 85 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu