Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: LIRC and kernelsources, Anyone used infrared under DSL?< Next Oldest | Next Newest >
libretto Offline





Group: Members
Posts: 336
Joined: Oct. 2003
Posted: June 06 2005,20:43 QUOTE

Hi there,

I'm looking to use LIRC (Infrared control in Linux) on my lapotp, so I can control my MD deck.

I tried apt-getting the program but it failed (tried both stable and testing apt sources).

Then tried to install the LIRC source, it complains about there being no kernelsource. So grabbed the kernelsource.dsl, despite this the LIRC install program says there is a 'Makefile' but still no sources...

Do I need to compile the sources or something for the lirc install program to properly detect them??? If so how would I compile them, I'll admit to never having recompiled a kernel in my Linux trials (yet).

LIRC's suggested install command is:

'./setup.sh && make isntall'

Useful suggestions welcome. :D


--------------
Small Radio,  Small Laptop, DSL Linux
Back to top
Profile PM WEB 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: June 06 2005,22:34 QUOTE

libretto,  I was working on a kernel remastering walkthrough when jonf beat me to it.  I can tell you that the Kernelsource.dsl only contains the header files (*.h), the patch file, and the .config file.  It doesn't contain the sources (*.c files).  You could try downloading the kernel source from www.kernel.org and then using the .config and make files from the kernelsource.dsl.

I'd also recomend loading the gnu-utils package first.  Sometimes it's some busybox replacement that gets you.
Back to top
Profile PM 
tempestuous Offline





Group: Members
Posts: 259
Joined: Aug. 2004
Posted: June 07 2005,09:48 QUOTE

At one point in my experiments with DSL, I set up LIRC.
I installed Knoppix 3.4 to hard drive and compiled the LIRC modules ... and yes, the kernel source needs to be present.
Get it from http://developer.linuxtag.net/knoppix/i386/
But I DID NOT need to recompile the kernel.
The compilation will produce a deb file - /usr/src/modules/lirc-modules-2.4.26.deb

I then installed this deb file into DSL with dpkg.
I could then load the lirc_sir.o driver, specifying irq and io parameters.

But prior to all of this, you must set up your IrDA drivers.  IrDA drivers are already in DSL, at -
/lib/modules/2.4.26/kernel/drivers/net/irda/  and
/lib/modules/2.4.26/kernel/net/irda/ircomm/

You will need module-init-tools, irda-utils, and setserial debs to set things up.
I think I got these from http://packages.debian.org/unstable/ (?)
I can't remember any configuration details, but I have these IrDA resources bookmarked in my web browser -
http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/IrDA.html
http://tuxmobil.org/Infrared-HOWTO/Infrared-HOWTO.html
http://irda.sourceforge.net

I hope this helps.  Let us know how it goes.
Craig S[U][/U]
Back to top
Profile PM 
libretto Offline





Group: Members
Posts: 336
Joined: Oct. 2003
Posted: June 07 2005,12:20 QUOTE

Thanks for the replies. I will give it another go in the next few days.

Clacker, as the laptop is running a HD install, gnu-utils.dsl was one of the first/dsl packages i grabbed from the repositry  :;):

tempestuous, I understand your method of precompiling the modules, unfortunately I have not had luck getting knoppix to work as a hdd install (on the main box) so thats why i used DSL.  Although would clacker's above suggestion of grabbing the 'actual' appropriate kernel source (.c) files and then re-running the LIRC setup likely to work ???

P.S.: Of course I could try and re-apt-get the latest LIRC files and see if theres been any change  :laugh:


--------------
Small Radio,  Small Laptop, DSL Linux
Back to top
Profile PM WEB 
tempestuous Offline





Group: Members
Posts: 259
Joined: Aug. 2004
Posted: June 07 2005,15:15 QUOTE

I can't offer any advice about build problems associated with the source files from www.lirc.org, because I think I compiled from lirc-modules-source_xxx.deb at http://packages.debian.org/unstable/utils/  The build process is different with this source - debian/rules binary-modules ...
Perhaps you could try this, too.

Should you use the full kernel source (30MB)? - sure, either for DSL+gnu-utils, or Knoppix.  The link I gave above is still correct.  It's the true Knoppix kernel source, and its configuration appears to be suitable for IrDA and LIRC.  No recompiling necessary.  It just needs to be in place for the LIRC source to reference while building.

But after all of this, would you like me just to email the final deb file to you?  Or upload it somewhere?
This file - lirc-modules-2.4.26_0.6.6-12+Custom.1.00_i386.deb is only 14KB.  I compiled it for native IrDA devices, for i386.

And as your username suggests, are you actually setting this up on a Toshiba Libretto?  This might explain the unsuccessful Knoppix HD install - it requires almost 3GB.
Back to top
Profile PM 
11 replies since June 06 2005,20:43 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: LIRC and kernelsources

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code