LinHES Forums http://forums.linhes.org/ |
|
Lirc recompile on R5E50 http://forums.linhes.org/viewtopic.php?f=5&t=13404 |
Page 1 of 3 |
Author: | pgmh [ Tue Jan 09, 2007 4:48 pm ] |
Post subject: | Lirc recompile on R5E50 |
Just wondering if anybody has managed to compile lirc 0.8 or 0.8.1 on R5E50? I have the kernel sources installed and sym-linked to /usr/src/linux Running configure as follows: Code: ./configure --with-kerneldir=/usr/src/linux --with-driver=imon_pad gives the following error: Code: checking for Linux kernel sources... 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 which seems to prevent make from running correctly. The recompile is to obtain a version of the lirc_imon module patched to turn the Imon Pad remote's pad from a mouse to a four way button. Thanks for reading! |
Author: | samilliken [ Tue Jan 09, 2007 6:52 pm ] |
Post subject: | |
Where did you manage to find the kernel sources for 2.6.18-chw-13? -Scott Milliken |
Author: | tjc [ Tue Jan 09, 2007 8:35 pm ] |
Post subject: | |
See this thread: http://mysettopbox.tv/phpBB2/viewtopic.php?t=13281 |
Author: | eizo71 [ Tue Jan 09, 2007 9:44 pm ] |
Post subject: | |
I was also wondering about this, really need this to be resolved. |
Author: | randomhtpcguy [ Wed Jan 10, 2007 12:57 pm ] |
Post subject: | packard_bell |
I am also having trouble compiling LIRC with cecil's kernel source. LIRC fails to recognize this source as being installed, but i didn't know about the command line option (source directory). Looks like it will probably still fail like in the OP above found, but i will try. I am trying to reconfigure LIRC to use "--driver=packard_bell" and I think that means i need to compile LIRC from source. (the knoppmyth install script says it doesn't have information about packard bell serial receiver although it is listed) It fails saying can't find kernel source with 2.6.18-chw-13 source installed. I followed the post to install the kernel source, but did not recompile the kernel and reinstall the kernel as that seemed very dangerous. Both of my rigs are running without remotes now. The other is a USB-UIRT which used to requires a lirc patch and recompile. |
Author: | tjc [ Wed Jan 10, 2007 8:16 pm ] |
Post subject: | |
Just remember to correct the symlink for /usr/src/linux to point to the directory where the source landed when you unpacked it... Hang on while I "drunk-monkey-ize" Cecil's directions... As root: Code: cd /usr/src
wget ftp://knoppmyth.net/R5/linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb dpkg -i linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb rm -f linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb tar xjvf linux-source-2.6.18-chw-13.tar.bz2 rm -f linux ln -s linux-source-2.6.18-chw-13 linux ln -s linux-source-2.6.18-chw-13 kernel-source-2.6.18-chw-13 # Thanks jbm2131! You should be able to cut & paste that whiole lump into root shell session and have it done in one go. |
Author: | randomhtpcguy [ Wed Jan 10, 2007 10:49 pm ] |
Post subject: | |
Ok, now it compiles and installs, but the modules don't work. Code: cd /usr/src/lirc-0.8.0 Code: ./setup.sh chose serial devices -> packard_bell save config and exit. Code: nano configure.sh added "--prefix=/usr \" see my configure.sh below: Code: #!/bin/bash ./configure \ # below here was automatically generated by running ./setup.sh --with-moduledir=/lib/modules/2.6.18-chw-13/misc \ --with-x \ --with-driver=packard_bell \ --with-major=61 \ --with-port=0x3f8 \ --with-irq=4 \ # manually added below customization for knoppmyth --prefix=/usr \ # uncomment below only if lirc is having trouble finding the source # --with-kerneldir=/usr/src/linux-source-2.6.18-chw-13 \ "$@" ^x (save) then run configure: Code: sh configure.sh It says a bunch of stuff ending with: "You will have to use the lirc_serial kernel module. Now enter 'make' and 'make install' to compile and install the package." Code: make && make install
appears to install lirc correctly into /usr/sbin/lircd However, it doesn't load the kernel module: Quote: check hardware.conf includes lirc_serial driver is default i think root@mythtvmaster:/usr/sbin# nano /etc/lirc/hardware.conf root@mythtvmaster:/usr/sbin# /etc/init.d/lirc restart Stopping lirc daemon: lircmd lircd. ##################################################### ## I couldn't load the required kernel modules ## ## You should install lirc-modules-source to build ## ## kernel support for your hardware. ## ##################################################### ## If this message is not appropriate you may set ## ## LOAD_MODULES=false in /etc/lirc/hardware.conf ## ##################################################### Starting lirc daemon:. root@mythtvmaster:/usr/sbin# modprobe lirc_serial WARNING: Error inserting lirc_dev (/lib/modules/2.6.18-chw-13/misc/lirc_dev.ko): Invalid module format FATAL: Error inserting lirc_serial (/lib/modules/2.6.18-chw-13/misc/lirc_serial.ko): Invalid module format |
Author: | pgmh [ Thu Jan 11, 2007 6:03 pm ] |
Post subject: | |
Thanks for all the replies. Glad I'm not the only one! TJC - thanks - I hadn't linked kernel-source RandomHTPCGuy - after editing configure.sh what did you run to get the message "You will have to use the lirc_serial kernel module"? If after adding the prefix line you mention I run configure.sh I get exactly the same error regarding the kernel sources as before. Thanks, Paul |
Author: | randomhtpcguy [ Fri Jan 12, 2007 10:53 am ] |
Post subject: | |
I edited my post above to be more specific. Jimmyfergus may have may have an idea. Quote: Special step for R5E50:
The installation needs kernel headers and those installed don't cut it. This author had to to install, and build, the kernel source to get VMware to install. This wasn't true for R5C7. If you work out how to avoid this or do it better, please edit the Wiki. Here's the process, it takes a while (kernel build), order is important, you should be able to cut/paste: (note:I had to have the /usr/src/linux link remain pointing to the headers, to compile the source, and then after I could move the link to the source. ) wget ftp://knoppmyth.net/R5/linux-source-2.6 ... om_all.deb dpkg -i linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb cd /usr/src; tar xjvf linux-source-2.6.18-chw-13.tar.bz2 cd /usr/src/linux-source-2.6.18-chw-13; cp /boot/config-2.6.18-chw-13 .config; make cd /usr/src; rm linux; ln -s linux-source-2.6.18-chw-13 linux I haven't tried compiling the kernel (compile but not installing) but it may fix our problems? I will try this over the weekend. edit --- didn't help. may need to actually install which I'm loathe to do. |
Author: | randomhtpcguy [ Sat Jan 13, 2007 1:18 am ] |
Post subject: | |
tried compiling the kernel still doesn't create the modules correctly Quote: root@mythtvmaster:/usr/src/lirc# /etc/init.d/lirc start
##################################################### ## I couldn't load the required kernel modules ## ## You should install lirc-modules-source to build ## ## kernel support for your hardware. ## ##################################################### ## If this message is not appropriate you may set ## ## LOAD_MODULES=false in /etc/lirc/hardware.conf ## ##################################################### Starting lirc daemon:. root@mythtvmaster:/usr/src/lirc# modprobe lirc_serial WARNING: Error inserting lirc_dev (/lib/modules/2.6.18-chw-13/misc/lirc_dev.ko): Invalid module format FATAL: Error inserting lirc_serial (/lib/modules/2.6.18-chw-13/misc/lirc_serial.ko): Invalid module format |
Author: | randomhtpcguy [ Sat Jan 13, 2007 9:28 am ] |
Post subject: | |
Still NO LUCK It may be related to a bug compiling lirc with this 2.6.18, but it is listed as fixed. http://www.mail-archive.com/debian-bugs ... 85322.html They suggest to compile the modules with module assistant. maybe like this http://www.linuxquestions.org/questions ... ?p=2502408 a more complicated example is http://www.linuxquestions.org/questions ... ?p=2502408 Could someone else try this. It failed for me but i have messed around so much it seems like i may need to start from scratch. currently i fail with : Quote: Updated infos about 1 packages
Getting source for kernel version: 2.6.18-chw-13 Kernel headers available in /usr/src/kernel-source-2.6.18-chw-13 apt-get install build-essential Reading package lists... Done Building dependency tree... Done build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 254 not upgraded. Done! unpack Extracting the package tarball, /usr/src/lirc-modules.tar.gz, please wait... Target package file /usr/src/lirc-modules-2.6.18-chw-13_0.8.0-9+2.6.18-chw-13-10.00.Custom_i386.deb already exists, not rebuilding! (however, you could use the -f switch to ignore it) dpkg -Ei /usr/src/lirc-modules-2.6.18-chw-13_0.8.0-9+2.6.18-chw-13-10.00.Custom_i386.deb (Reading database ... 68775 files and directories currently installed.) Unpacking lirc-modules-2.6.18-chw-13 (from .../lirc-modules-2.6.18-chw-13_0.8.0-9+2.6.18-chw-13-10.00.Custom_i386.deb) ... dpkg: error processing /usr/src/lirc-modules-2.6.18-chw-13_0.8.0-9+2.6.18-chw-13-10.00.Custom_i386.deb (--install): trying to overwrite `/lib/modules/2.6.18-chw-13/misc/lirc_atiusb.ko', which is also in package lirc-modules Errors were encountered while processing: /usr/src/lirc-modules-2.6.18-chw-13_0.8.0-9+2.6.18-chw-13-10.00.Custom_i386.deb I: Direct installation failed, trying to post-install the dependencies apt-get -f install Reading package lists... Done Building dependency tree... Done 0 upgraded, 0 newly installed, 0 to remove and 254 not upgraded. |
Author: | randomhtpcguy [ Mon Jan 15, 2007 11:20 am ] |
Post subject: | can't compile lirc modules from source |
Does anyone else need to compile lirc kernel modules from source with R5E50? If anyone is out there who has a suggestion or may be willing to try i would be grateful. I need the driver="packard_bell" and the lirc_serial kernel module, with serial device=/dev/ttyS0. I got the compile from source to work, but it isn't able to use the kernel modules when called so it fails. |
Author: | randomhtpcguy [ Tue Jan 16, 2007 9:18 pm ] |
Post subject: | |
bump |
Author: | eizo71 [ Wed Jan 17, 2007 10:27 pm ] |
Post subject: | |
is this resolved for the recompile of the imon_pad remote? If not, this "easy to use" mythtv dist is rendered unusable for owners of the Silverstone htpc case, and i would imagen that to be a lot of people! |
Author: | randomhtpcguy [ Wed Jan 17, 2007 10:46 pm ] |
Post subject: | |
i eventually could recompile but the modules weren't created in the correct form. If you don't need modules then it may work for you. I think there was a work around that got the existing compile to work for your remote. search for it. |
Page 1 of 3 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |