LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Recompiled kernel...in trouble again (https://www.linuxquestions.org/questions/linux-software-2/recompiled-kernel-in-trouble-again-6551/)

rdaves@earthlink.net 09-14-2001 08:49 PM

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]

Q25 09-15-2001 07:34 AM

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

rdaves@earthlink.net 09-15-2001 08:48 PM

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?

Q25 09-16-2001 12:48 AM

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 :rolleyes:

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

rdaves@earthlink.net 09-16-2001 01:11 PM

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]

Q25 09-16-2001 01:35 PM

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 :rolleyes:

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

rdaves@earthlink.net 09-16-2001 09:26 PM

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

rdaves@earthlink.net 09-18-2001 02:03 PM

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

Q25 09-18-2001 02:45 PM

Isn't that "make modules_install" and not "make modules install"?
;)

Q25 09-18-2001 06:59 PM

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)?

rdaves@earthlink.net 09-18-2001 09:43 PM

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


All times are GMT -5. The time now is 08:50 AM.