LinuxQuestions.org
Visit Jeremy's Blog.
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 09-14-2001, 09:49 PM   #1
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
Recompiled kernel...in trouble again


Wanted to get my CD-RW working. So I recompiled my kernel, adding SCSI support, etc.
In order to get the process started, I had to have the kernel source on my HD. So I copied "kernel-source-2.4.2-2.i386.rpm" from the 2nd install CD to my /home/ directory. This is where it gets fuzzy. I either
  • Clicked on the icon for this rpm file and let the install proceed or
  • CD'd to /home/ and typed
Code:
rpm -Fvh /home/kernel-source-2.2.4-2.i386.rpm
After that, I successfully did
  • make menuconfig (Set all the parameters in the list)
  • make dep
  • make bzImage
  • make modules
  • make modules_install
  • copied the new bzImage to /boot as "mykernel"
  • Edited lilo.conf to reflect new kernel
  • ran lilo
However, when it was all done, I lacked a printer and ppp support. May have chosen "modules". I don't think that was correct, since these are two often used resources.
So I attempted another compile, and have not been successful.
Here's what happens:
When I click on the appropriate icon, the process starts, but I get a cryptic error message :
Code:
Error - Package Manager -- kernel-source-2.4.2-2
After I click on "ok" the install appears to proceed to completion.
If I type
Code:
rpm -Fvvh home/kernel-source-2.4.2-2.i386.rpm
I get more cryptic messages:
Code:
[root@localhost /root]# rpm -Fvvh /home/kernel-source-2.4.2-2.i386.rpm
D: counting packages to install
D: found 1 packages
D: looking for packages to download
D: retrieved 0 packages
D: Expected size:     21541821 = lead(96)+sigs(149)+pad(3)+data(21541573)
D:   Actual size:     21541821
D: opening db index       /var/lib/rpm/Packages create mode=0x42
D: locked  db index       /var/lib/rpm/Packages
D: opening db index       /var/lib/rpm/Name create mode=0x42
D: found 0 source and 0 binary packages
D: closed  db index       /var/lib/rpm/Name
D: closed  db index       /var/lib/rpm/Packages
[root@localhost /root]
So I am stuck again.
Questions:[list=1][*]Where do I go within the configuration menu to set up my printer?[*]Where do I go to set up my ppp support?[*]Did I really get the kernel source installed somewhere?[*]Where in the heck do I go after I have rpm'd the kernel so that I can issue the command "make menuconfig"[*]When should I and when should I not install something as a module?[/list=1]

Last edited by rdaves@earthlink.net; 09-15-2001 at 09:33 PM.
 
Old 09-15-2001, 08:34 AM   #2
Q25
Member
 
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131

Rep: Reputation: 16
When you unpack the RPM file with the RPM installer it's placed in /usr/src/linux/ or is that /usr/src/linux-2.4.2-2 (can't remember)..

You go to that directory and run your make commands (I normally use 'make xconfig' to start with)..

As for 1) and 2) I'd suggest you start from the top and then by pressing next go through all settings.. It might take 30 min or so but then you know you got all you want compiled checked..
 
Old 09-15-2001, 09:48 PM   #3
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Original Poster
Rep: Reputation: 30
Okay, Thanx

One other question, please: What is the advantage to specifying "module" on a choice during the compile process?
For instance, if I specify "M" for printer support, do I then have to load a module whenever I want to use my printer? If yes, where do I find it?
 
Old 09-16-2001, 01:48 AM   #4
Q25
Member
 
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131

Rep: Reputation: 16
If you're not sure the code is good (beta or just crap) it's better not to include it in the kernel. Or if you update often you wont have to recompile the whole kernel every time..
And some ppl just like a small kernel

Modules can be set up to load at boot.. (don't ask me how.. I've never used modules )

I say compile it into the kernel... but then again I'd probably compile everything I needed into the kernel..
 
Old 09-16-2001, 02:11 PM   #5
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Original Poster
Rep: Reputation: 30
Good info but am still in trouble

Okay, so it isn't necessary to use modules. The kernel can get pretty large, but I guess this isn't a problem.

I have recompiled a couple times now, but am getting reproducable problems.

This stuff scrolls by pretty fast, and I am not aware of where to find it after the boot is over. In the section where the system checks for new hardware, there is a message that says something like "cannot open lp device lp0" and I get a red "failed" message.

I also am unable to connect to the internet. I am using the KPPP dialer, it tells me that it "cannot connect tty and ppp".

Questions:[list=1][*]Where do I look within the "make xconfig" menu for printer support and what, specifically, should it say?[*]What must I do to get tty and ppy to connect. I assume it is a compiling issue, since I had it working when all I did was install RedHat.[*]Tell me more about updating. If I go to the RedHat site, can I get a later version than RedHat V7.1, kernel 2.4.2? Is this a way to avoid recompiling?[/list=1]
 
Old 09-16-2001, 02:35 PM   #6
Q25
Member
 
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131

Rep: Reputation: 16
If your printer is connected to the parallel port then look under 'parallel port support' (think there are only 3 choises.. just yes them all is my guess, but read the help documents. They're right there ).
If it's USB there are some settings for printers under 'USB support'..
If you're using ISDN there are some ppp settings in 'ISDN support'

I've not tried the above myself. So maybe some1 else could fill you in on the rest.. Or as it alwayz sayz in the How-To's : FIXME

You can get the newest stable kernel (2.4.9) @ www.kernel.org

If you said exactly what hardware you had it'll be easier for others to respond I think..

btw.. for CD-RW remember that under SCSI support you need to get 'Generic SCSI support' compiled into the kernel too..
 
Old 09-16-2001, 10:26 PM   #7
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Original Poster
Rep: Reputation: 30
Thanks, need more help, please

Although I have recompiled my kernel about 10 times, have never been successful.
What I need is a roadmap on how to proceed with "make xconfig". I have tried several times in the last couple days to no avail. I keep recompiling, and never am able to connect to the internet (system dials out, but tty and ppp never connect), printer doesn't work ( system cannot open device lp0), and USB problems exist that I can't even define (have two usb devices that I have never been able to get working) and my CDR-RW won't work. I have made the selections you recommend and have read extensively the help pages on just about every item

btw, here's my equipment:

ATX mid-tower 300W case
Asus A7V socket A motherboard with K7 850 mhz CPU
Afreey 56x D ROM
HP 8250i internal IDE 4X4X24 CD Rewriter w/2mb buffer
Mitsumi 1.44 floppy
2 Fujitsu 40GB UA/100 5400rpm EIDE hard drives (mstr & slve on ATA)
Hard drive supercooler
Matrox Millenium G400 dual head video card
Phillips Brilliance 150P 15" flat panel monitor
Sound Blaster Live! Platinum sound card
256 MB SDRAM PC133 Memory
USB external hard drive with separate power supply
SIIG Smart Media reader _ USB
W98 SE and Linux dual boot

Questions:
  1. Is there anything that I can refer to that might help me with how to make choices when I do "make xconfig"?
  2. What do I do to get printer support
  3. What do I do to get tty & ppp to connect
  4. what do I do to get my CDRW to work
  5. What do I do to get my USB devices to work
 
Old 09-18-2001, 03:03 PM   #8
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Original Poster
Rep: Reputation: 30
A small amount of success

Well, I have finally recompiled my kernel successfully. I now have printer support and ppp support. As yet, I have not bees successful with my CDRW or USB devices.

The process of recompiling my Kernel involved:[list=1][*]Reading the Linux Kernel HOWTO [*]Getting the kernel source copied from install disk #2[*]Configuring the kernel using "make xconfig" . It is necessary to read help for every choice. I tried to stay away from modules.[*]make clean[*]make dep[*]make bzImage[*]make modules[*]make modules_install[*]cp arch/i386/boot/bziImage boot/mykernel[*]backup bzImage to /home[*]fix my boot disk to start the new kernel (I boot with a floppy)[/list=1]

I still have some work to do with my CDRW and USB stuff

Last edited by rdaves@earthlink.net; 09-18-2001 at 10:44 PM.
 
Old 09-18-2001, 03:45 PM   #9
Q25
Member
 
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131

Rep: Reputation: 16
Isn't that "make modules_install" and not "make modules install"?
 
Old 09-18-2001, 07:59 PM   #10
Q25
Member
 
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131

Rep: Reputation: 16
btw... when trying to get support for your CD-RW do you remember to compile both "SCSI emulation" (under 'ATA,IDE,ATAPI)) and "Generic SCSI support" (under SCSI support)?
 
Old 09-18-2001, 10:43 PM   #11
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Original Poster
Rep: Reputation: 30
Yes, make modules_install is correct. I have edited my post to reflect this.
Re: your compile points. This was my intention...Don't remember exactly if I did these two things or not...will check my configuration file (I think this is the place to check...right?).

Thanks

Last edited by rdaves@earthlink.net; 09-18-2001 at 10:46 PM.
 
  


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
Recompiled kernel failing thelonewolf Debian 10 08-02-2005 11:10 PM
recompiled kernel uses more power??? lumbrjackedpcj Linux - Software 1 03-22-2005 07:04 PM
recompiled kernel 2.6.3-13 what does this mean? rbonafied Mandriva 8 06-07-2004 01:00 PM
recompiled kernel not in use taoweijia Linux - Newbie 1 01-09-2004 09:33 AM
recompiled kernel and no vmlinuz.old or kernel module for Nvidia Bruce Hill Slackware 13 12-11-2003 02:36 AM


All times are GMT -5. The time now is 04:09 PM.

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