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
Code:
rpm -Fvh /home/kernel-source-2.2.4-2.i386.rpm
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 If I type Code:
rpm -Fvvh home/kernel-source-2.4.2-2.i386.rpm Code:
[root@localhost /root]# rpm -Fvvh /home/kernel-source-2.4.2-2.i386.rpm 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] |
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.. ;) |
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? |
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 |
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] |
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.. |
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:
|
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 |
Isn't that "make modules_install" and not "make modules install"?
;) |
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)?
|
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. |