View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 42 posts ] 
Go to page 1, 2, 3  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Lirc recompile on R5E50
PostPosted: Tue Jan 09, 2007 4:48 pm 
Offline
Joined: Sun Feb 19, 2006 4:49 am
Posts: 2
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!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 6:52 pm 
Offline
Joined: Tue Jan 17, 2006 12:29 pm
Posts: 20
Location: Smyrna, TN
Where did you manage to find the kernel sources for 2.6.18-chw-13?

-Scott Milliken


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 8:35 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
See this thread: http://mysettopbox.tv/phpBB2/viewtopic.php?t=13281


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 9:44 pm 
Offline
Joined: Thu Dec 28, 2006 6:15 pm
Posts: 2
I was also wondering about this, really need this to be resolved.


Top
 Profile  
 
 Post subject: packard_bell
PostPosted: Wed Jan 10, 2007 12:57 pm 
Offline
Joined: Mon Nov 07, 2005 10:09 am
Posts: 153
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 8:16 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 10:49 pm 
Offline
Joined: Mon Nov 07, 2005 10:09 am
Posts: 153
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 10:55 am, edited 4 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 6:03 pm 
Offline
Joined: Sun Feb 19, 2006 4:49 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 10:53 am 
Offline
Joined: Mon Nov 07, 2005 10:09 am
Posts: 153
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.


Last edited by randomhtpcguy on Wed Jan 17, 2007 8:44 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 1:18 am 
Offline
Joined: Mon Nov 07, 2005 10:09 am
Posts: 153
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 9:28 am 
Offline
Joined: Mon Nov 07, 2005 10:09 am
Posts: 153
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.


Top
 Profile  
 
PostPosted: Mon Jan 15, 2007 11:20 am 
Offline
Joined: Mon Nov 07, 2005 10:09 am
Posts: 153
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 16, 2007 9:18 pm 
Offline
Joined: Mon Nov 07, 2005 10:09 am
Posts: 153
bump


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 17, 2007 10:27 pm 
Offline
Joined: Thu Dec 28, 2006 6:15 pm
Posts: 2
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!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 17, 2007 10:46 pm 
Offline
Joined: Mon Nov 07, 2005 10:09 am
Posts: 153
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.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ] 
Go to page 1, 2, 3  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 12 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