LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-16-2003, 03:15 PM   #76
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45

Doomhammer (ugh, like the Orc in WC series ):
You need to do several things:
  • Find out the motherboard which your friend has
  • Find out the on-board devices he has (brands, etc), If he has still Windwos around it could be of real help to check the device manager, just to be sure.
  • Definitively you would need to compile a more recent kernel (2.4.22 or 2.4.23 if it is available, current status is RC1).
  • While indeed you could use /boot/config-2.4.20-8 file as a guideline for the configuration of the new kernel, first find out if you don't need to apply any patches to the kernel in order for it to work with some devices. My recomendation would be to load the configuration file from /boot but save it in the current directory (by save and exit it will write the .config file).
  • Bear in mind that you may have to re-compile several times before the system would be 100% working. Don't despair, and explain to your friend this also!

I hope this info helps you.
 
Old 11-16-2003, 03:47 PM   #77
Doomhammer
Member
 
Registered: Oct 2003
Location: Montreal Qc, Canada
Posts: 105

Rep: Reputation: 15
Ok, thanks for the quick reply.

Long live the Horde!!!
 
Old 11-19-2003, 03:30 PM   #78
mikezenon
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
Hi All,

I have RH8.0 with 2.4.18. I install the kernel package and using following
command to re-build kernel:

make dep
make clean
make bzImage

And there are ERRORS!. Does any one know why? Do I need download any patch?
Thanks,
 
Old 11-19-2003, 06:23 PM   #79
Doomhammer
Member
 
Registered: Oct 2003
Location: Montreal Qc, Canada
Posts: 105

Rep: Reputation: 15
before comiling...
copy your config file located in /boot.
usually the file is /boot/config-[kernel-version]
to the directoty of the kernel source (usually /usr/src/your_kernel_source)

now run the following:
make xconfig (or menuconfig)
press on LOAD CONFIGURATION FROM FILE and write config-[your-kernel-version] then press save.
Next you type
make mrproper
make dep clean
make bzImage
make modules
make modules_install
make install
make clean

it takes usually a good 30-40 minutes to complete the whole process.

Voila!
have a nice day!

Last edited by Doomhammer; 11-19-2003 at 06:28 PM.
 
Old 11-19-2003, 07:17 PM   #80
dr_who
LQ Newbie
 
Registered: Aug 2003
Location: Clarksburg, WV
Posts: 8

Rep: Reputation: 0
Newly Installed Kernel Has A Panic

When attempting to configure, compile and install the latest stable linux kernel, I received a kernel panic at boot time that reports my system's inablity to mount the root file system. I was wondering if anyone would have any suggestions as to how I may proceed to fix this problem? What follows is a description of the steps I employed to install the new kernel:

I downloaded the latest stable linux kernel, linux-2.4.22, in bz2 format, i.e. linux-2.4.22.tar.bz2, decompressed the bz2 file to get the linux-2.4.22.tar tarball and then extracted the directories and files contained therein using the tar command as tar -xvf linux-2.4.22.tar. I then proceeded to configure and install this new kernel source using the following steps:

1) I executed make mrproper utility to prepare the kernel source tree, cleaning out any old files or binaries.
2) I executed make xconfig utility to bring up a GUI configuration tool to use in configuring the new kernel, then proceeded to configure it.
3) I executed make dep utility to create the code dependencies needed for the install.
4) I executed the make clean utility to prepare the sources for the actual compilation of the kernel.
5) I executed the make bzImage utility to compile the source code to a binary image.
6) I executed the make modules utility to compile any modules identified in the configuration step that the kernal needs.
7) I executed the make modules_install utility to install the compiled modules into the kernel binary.
Finally,
8) I executed the make install utility to automatically copy the kernel binary to /boot, create any other files the kernel needs, and modify the bootloader (grub) to boot the new kernel as the default.

Any asistance would be much appreciated.
 
Old 11-19-2003, 07:40 PM   #81
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
How did you configure the kernel? Not the utility but the actual modules and drivers built into the kernel? it sounds to me that you left out the modules corresponding to the root filesystem. In the case of Red Hat it is the ext3 filesystem. You may also compile ext3 support into the kernel, to avoid this kind of problems.
 
Old 12-07-2003, 06:50 PM   #82
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Rep: Reputation: 30
When I'm running xconfig to configure kernel 2.6.0-test10, I get a lot of warning messages like this:

/boot/config-2.4.20-8:2137: trying to assign nonexistent symbol <symbol>

and then when i run make modules_install I get unresolved symbols errors

How do I fix this?

Last edited by vincebs; 12-07-2003 at 08:00 PM.
 
Old 12-07-2003, 08:08 PM   #83
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Mhmmm that's odd... I've got no problems whatsoever with xconfig (KDE based) and the 2.6 kernels.
 
Old 12-07-2003, 08:11 PM   #84
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Rep: Reputation: 30
does it have something to do with it using the config-2.4.20-8 file? I'm using GNOME by the way. Here are some sample unresolved symbols errors I get while running make install_modules:

depmod: *** Unresolved symbols in /lib/modules/2.6.0-test10/kernel/fs/nfsd/nfsd.ko
...
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test10/kernel/fs/vfat/vfat.ko
...
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test10/kernel/net/ipv4/netfilter/ip_nat_ftp.ko
...
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test10/kernel/net/ipv4/netfilter/ipt_state.ko
...
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test10/kernel/net/ipx/ipx.ko
...
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test10/kernel/sound/core/oss/snd-mixer-oss.ko
...
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test10/kernel/sound/pci/snd-ens1371.ko
<--- how will I get my Ensoniq 1371 PCI card to work now???

Last edited by vincebs; 12-07-2003 at 08:40 PM.
 
Old 12-07-2003, 08:38 PM   #85
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
I would most likely be sure about that. They both (2.4 & 2.6) manage things QUITE differently. I'd suggest you to open an xconfig session for bor both kernels (each in different virtual desktops) and just configure the 2.6 taking information from the 2.4. Before trying to configure the 2.6 kernel though, I'd do make mrproper.
 
Old 12-07-2003, 08:43 PM   #86
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Rep: Reputation: 30
How do I choose which kernel I open xconfig for? (as in one for 2.4, one for 2.6)

Where do I get the config-2.6.0-test10 file from?
 
Old 12-07-2003, 08:44 PM   #87
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Rep: Reputation: 30
So indeed I shouldn't use the line:


[prompt$] cp /boot/config-2.4.20-20.9 ~/kernel/linux-2.4.22/

?
 
Old 12-07-2003, 09:50 PM   #88
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
I meant that because of deep differences between the two kernel versions (2.4 against 2.6) you should not use the same config file u use for a 2.4.x kernel into a 2.6.x kernel. That is why I suggested to :
  • Open two consoles in separate virutal desktops.
  • Suppose you will open the 2.6 xconfig in the desktop 1 and in the desktop 2 the xconfig for the 2.4, just navigate to where the sources are located in either console and type 'make xconfig' (or make gconfig for GNOME config with the 2.6).
  • Compare the two configuration utilities and configure by hand the 2.6 based on what your current 2.4 has selected.
 
Old 12-07-2003, 10:42 PM   #89
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Rep: Reputation: 30
So that'll mean I have to download the kernel source for 2.4 then?

So basically I have to copy what's in my 2.4 configuration to my 2.6 configuration.

Then how will I get performance gains from compiling? I want to make the new kernel smaller than the old one.
 
Old 12-07-2003, 11:09 PM   #90
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
You only need to install the sources (from CD 1) and yes, start the xconfig after copying the /boot/config-<version> file. In any case, if what you want is to make a smaller kernel, then the help entries in the confiugration tool! They're self explainatory in most cases. You still have questions/trouble understanding some concept or need for a driver? no problem! head towards /where/you/have/the/sources/Documentation/ and read the various documents in there, they're the most helpful in understanding what options you need (require) and want or don't want to compile into your kernel.
 
  


Reply

Tags
howto, tutorial


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
Red Hat/Fedora ALSA mini-HowTo. Thetargos Red Hat 182 04-01-2006 12:12 PM
red hat 9 kernel compilation b0nd Linux - Newbie 1 08-11-2005 10:05 AM
Kernel compilation (2.4.25 - Red Hat) on DELL Inspiron 2650 rohitmordani Linux - Laptop and Netbook 7 04-05-2004 05:10 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 06:33 PM
Red Hat Update Agent for kernel updates and custom kernels SparceMatrix Linux - General 5 09-03-2002 04:58 PM

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

All times are GMT -5. The time now is 09:05 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