knoppmyth.net Forum Index knoppmyth.net
The home of KnoppMyth.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lirc recompile on R5E50
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    knoppmyth.net Forum Index -> General
View previous topic :: View next topic  
Author Message
pgmh



Joined: 19 Feb 2006
Posts: 2

PostPosted: Tue Jan 09, 2007 2:48 pm    Post subject: Lirc recompile on R5E50 Reply with quote

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!
Back to top
View user's profile Send private message
samilliken



Joined: 17 Jan 2006
Posts: 20
Location: Smyrna, TN

PostPosted: Tue Jan 09, 2007 4:52 pm    Post subject: Reply with quote

Where did you manage to find the kernel sources for 2.6.18-chw-13?

-Scott Milliken
Back to top
View user's profile Send private message
tjc



Joined: 25 Mar 2004
Posts: 9115
Location: Arlington, MA

PostPosted: Tue Jan 09, 2007 6:35 pm    Post subject: Reply with quote

See this thread: http://mysettopbox.tv/phpBB2/viewtopic.php?t=13281
Back to top
View user's profile Send private message
eizo71



Joined: 28 Dec 2006
Posts: 2

PostPosted: Tue Jan 09, 2007 7:44 pm    Post subject: Reply with quote

I was also wondering about this, really need this to be resolved.
Back to top
View user's profile Send private message
randomhtpcguy



Joined: 07 Nov 2005
Posts: 153

PostPosted: Wed Jan 10, 2007 10:57 am    Post subject: packard_bell Reply with quote

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.
Back to top
View user's profile Send private message
tjc



Joined: 25 Mar 2004
Posts: 9115
Location: Arlington, MA

PostPosted: Wed Jan 10, 2007 6:16 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
randomhtpcguy



Joined: 07 Nov 2005
Posts: 153

PostPosted: Wed Jan 10, 2007 8:49 pm    Post subject: Reply with quote

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


Last edited by randomhtpcguy on Fri Jan 12, 2007 8:55 am; edited 4 times in total
Back to top
View user's profile Send private message
pgmh



Joined: 19 Feb 2006
Posts: 2

PostPosted: Thu Jan 11, 2007 4:03 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
randomhtpcguy



Joined: 07 Nov 2005
Posts: 153

PostPosted: Fri Jan 12, 2007 8:53 am    Post subject: Reply with quote

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.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
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.


Last edited by randomhtpcguy on Wed Jan 17, 2007 6:44 am; edited 1 time in total
Back to top
View user's profile Send private message
randomhtpcguy



Joined: 07 Nov 2005
Posts: 153

PostPosted: Fri Jan 12, 2007 11:18 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
randomhtpcguy



Joined: 07 Nov 2005
Posts: 153

PostPosted: Sat Jan 13, 2007 7:28 am    Post subject: Reply with quote

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-dist@lists.debian.org/msg285322.html

They suggest to compile the modules with module assistant.

maybe like this
http://www.linuxquestions.org/questions/showthread.php?p=2502408

a more complicated example is
http://www.linuxquestions.org/questions/showthread.php?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.
Back to top
View user's profile Send private message
randomhtpcguy



Joined: 07 Nov 2005
Posts: 153

PostPosted: Mon Jan 15, 2007 9:20 am    Post subject: can't compile lirc modules from source Reply with quote

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.
Back to top
View user's profile Send private message
randomhtpcguy



Joined: 07 Nov 2005
Posts: 153

PostPosted: Tue Jan 16, 2007 7:18 pm    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
eizo71



Joined: 28 Dec 2006
Posts: 2

PostPosted: Wed Jan 17, 2007 8:27 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
randomhtpcguy



Joined: 07 Nov 2005
Posts: 153

PostPosted: Wed Jan 17, 2007 8:46 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    knoppmyth.net Forum Index -> General All times are GMT - 8 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group