LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-29-2003, 10:45 PM   #1
phekno
Member
 
Registered: May 2003
Distribution: Gentoo, Slackware
Posts: 75

Rep: Reputation: 15
Smile LIRC and Compiling my Kernel


OK....So I just installed RedHat 9 with GNOME. At first I was pissed because it is now the only operating system that I have and I was missing some of my old Windows programs. Anyway, long story short, I just downloaded LIRC which is software and drivers for an infrared remote control. I got everything and went to install but I got an error....looks like this:

[...]
make[3]: Entering directory `/usr/src/lirc-0.6.4/drivers/lirc_serial'
DIR=`pwd`; (cd /usr/src/linux/; make SUBDIRS=$DIR obj-m=lirc_serial.o modules)
/usr/src/linux/scripts/pathdown.sh: TOPDIR: parameter null or not set
make[4]: Entering directory `/usr/src/linux'
make[4]: *** No rule to make target `lirc_serial.o', needed by `modules'.
[...]

On the LIRC website (www.lirc.org) they say that I need to setup and compile my current kernel from the given kernel sources or something. Anyway, I don't really understand what they mean and I also don't know how to do any of that stuff anyway. Any help would be greatly appreciated.

Thanx,
Phekno
 
Old 05-30-2003, 08:11 AM   #2
phekno
Member
 
Registered: May 2003
Distribution: Gentoo, Slackware
Posts: 75

Original Poster
Rep: Reputation: 15
Nevermind....I'm dumb.
 
Old 03-14-2004, 01:53 PM   #3
muesli
LQ Newbie
 
Registered: Oct 2003
Location: Netherlands
Distribution: Debian
Posts: 3

Rep: Reputation: 0
I must be also dumb...
I've got the same problem, how do I compile the kernel / sources etc.. ??
I'm running Debian
 
Old 03-14-2004, 04:36 PM   #4
Pwnz3r
Member
 
Registered: Jan 2004
Location: Lancaster, OH
Distribution: Gentoo
Posts: 393

Rep: Reputation: 30
When compiling a new kernel, it doesn't really matter what distribution you do as much as it depends on what bootloader you use. Anyway, here are some general instructions for compiling a kernel.

First of all, get the sources. http://kernel.org is the official site with all of the Linux kernels. For now, just get the newest 2.6.x kernel.

*NOTE* Just clicking the link on the home page will download the patch. The full version can be downloaded from the homepage by clicking the link that says "F" off to the right of the link that reads "2.6.4" or whatnot.

After downloading it, extract it as root to /usr/src and then cd to /usr/src and delete the link called linux and then type:

ln -s linux-2.6.x linux (remember to change x to the last number in the kernel version you have. Type ls if you don't know for some reason.)

After doing this, cd to the linux-2.6.x directory and type:

make xconfig # This will bring up a menu in which you select the drivers and other options needed for your kernel. You can also type make menuconfig if not running X.

After configuring the kernel for your hardware. (if you know what is in your computer, you should be fine. If not, stop here and find out.) If you have a separate /boot partition that is not mounted like me, then mount it. (good for avoiding problems with the file system that the kernel is on in the case of a power outage and in the rare instance that ext3 has a problem or whatever filesystem you use) Now type the following commands:

make bzImage modules modules_install install

After that it is time to set the kernel up to boot. Here is how to do it in LILO. I'm not sure about GRUB, as I've never used it but they make readme's and stuff. Edit the file /etc/lilo.conf as root and add this stuff to the end.

image=/boot/vmlinuz-2.6.x # Remember to replace x with the last digit in the kernel version. You can check it through ls /boot
label="Linux-2.6.x" # This isn't as important to get correct as the above, because it's only the name that will appear. But it's a good idea to make it relevant.
root=/dev/hd* # Make this the device that your root partition is on. For example, a primary drive would be called hda and if it was the first partition then it would be hda1. You can check this by viewing /etc/fstab and seeing what device is mounted to /.
vga=791 # Use this only if you enabled frame buffer support in the kernel. If you have no idea what I'm talking about then don't do it.
append="splash=verbose hdc=ide-scsi" # This line is totally optional. The splash=verbose is only important if using a framebuffer and the hdc=ide-scsi is for CD burning.

After this, run lilo as root and if everything is added without errors then you should be good to go!
 
Old 03-15-2004, 03:23 AM   #5
muesli
LQ Newbie
 
Registered: Oct 2003
Location: Netherlands
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Okay, thanks..
Just one more question: what does this do to my current installation of linux?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lirc compiling fraz Linux - Software 0 06-07-2005 11:07 AM
Compiling LIRC on RH 8 Fennek Linux - Software 3 06-02-2005 04:21 PM
compiling lirc on fc2 gfem Linux - Software 1 11-17-2004 07:15 PM
Problems compiling lirc under FC2 doctorv Fedora 0 06-21-2004 02:51 PM
Compiling LIRC Aeiri Linux - Software 0 02-27-2004 10:36 PM


All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration