LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-13-2004, 01:45 AM   #1
stardotstar
Member
 
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Rep: Reputation: 30
RH9 - did 2.6.x kernel build and probs with .config


Is there anyway to find out the basics that RH9 used when I installed the distro so that I can xconfig my new kernel to have the modules and drivers configured in the 2.6.8.1 kernel the way they are now with the 2.4 kernel.

You see I downloaded and compiled a fresh 2.6.8.1 doing the xconfig as best I knew how based on cpuinfo and lspci but I couldn't get the pcmcia and onboard NIC, soundcard, etc etc to work.

In fact I had a bit of a hack just getting the initrd to work - but finally did - my old menu.lst only specified:

ro root=LABEL/ (or similar - don't have it infront of me now)

and the new kernel required
ro root= /dev/hda5 (which is the root but I don't see the diff from the previous distro kernel...)

So it boots but none of the basic config of drivers and devices is quite right. X works, the mouse works, in fact most stuff is ok just don't know where to begin.

I did get some messages when compiling my modules so I guess I have some dependencies stuffed up here.

Please any kind, patient pro able to make any suggestions.

Cheers,
Will
 
Old 09-13-2004, 07:28 AM   #2
fphillips
Member
 
Registered: Sep 2004
Location: KS
Distribution: Slack 10-current
Posts: 87

Rep: Reputation: 15
look for a file named /boot/config-<kernelversion>. You can do your make xconfig and tell it to load the 2.4 config, or copy the 2.4 config to .config and make oldconfig. There will be some stuff you don't need, and anyway you should still go through and look at everything because a 2.4 kernel config is quite different from a 2.6. Just as you did before, use the lspci/cpuinfo to make sure all support for your devices is included.
 
Old 09-13-2004, 07:38 PM   #3
stardotstar
Member
 
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Original Poster
Rep: Reputation: 30
Thank you for the reply I will attempt to find the old config. I noticed several in the /usr/local/src/arch/i386 dir I think but I suspect these are defaults and not the one used by the distro installer that yielded my working kernel.
 
Old 09-14-2004, 06:58 PM   #4
stardotstar
Member
 
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Original Poster
Rep: Reputation: 30
I used the old config to build a new 2.6.8.1 and followed all the steps to compile the kernel and modules as in Kwan Lowe's new HowTo (Digital Hermit)

but I got numerous messages when building the modules about declared but unused variables etc...

The machine would not boot.

So in the end I suspected it was due to config being very diff for a 2.6 kernel and I upgraded using FC2...

All is well but I still want to build new 2.6.8.1 kernel from 2.6.5.x (I think) Will I have more success with the .config file made during the recent upgrade from RH9 to FC2?
 
Old 09-15-2004, 01:22 PM   #5
fphillips
Member
 
Registered: Sep 2004
Location: KS
Distribution: Slack 10-current
Posts: 87

Rep: Reputation: 15
You didn't just cp oldconfig newconfig did you?

If you email me your .config and the output of dmesg, lspci and cat /etc/fstab I can take a look - I've built tons of 2.6 kernels.

In the meantime you may want to run scripts/ver_linux in your kernel tree to see if you have all the required versions.

Otherwise, just keep trying - read the help screens when you're configuring.

The 2.6.5 config will be much easier to start with, although if this is a distro kernel it'll have extra stuff in there you don't need.
 
Old 09-15-2004, 07:21 PM   #6
stardotstar
Member
 
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Original Poster
Rep: Reputation: 30
OK, sounds good to me - I'll get that stuff together and email it to you. The system is working ok with the distro kernel but I am wanting to get a bit smarter about all this and dispense with just having to run installers. I have had plenty of success building source for apps and what not but the kernel seems so much more complex.

Thanks for the offer.
 
  


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
Kernel Build config file Igor007 Programming 1 08-14-2005 03:39 PM
iptables config probs geniarse Linux - Networking 4 10-28-2004 01:18 PM
GTK (Get That Killah) 2.4 Build Probs handle2001 Linux - Software 5 04-01-2004 01:08 AM
usb.c: couldn't get all of config descriptors (RH9+kernel 2.4.25) xgdfalcon Linux - Hardware 0 03-09-2004 10:29 AM
Xine build probs kanun Linux - Software 5 08-22-2003 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:39 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
Open Source Consulting | Domain Registration