View previous topic :: View next topic |
Author |
Message |
JCScoobyRS n00b
Joined: 18 Dec 2003 Posts: 57 Location: Colorado, USA
|
Posted: Thu Feb 05, 2004 5:35 pm Post subject: Updating Kernel |
|
|
I want to update my kernel from 2.4.20-gentoo-r9 to 2.4.22-gentoo-r5 and I need to know the best way to do this and to also add agpgart support to the kernel. Can someone tell me what kernel options that must be turned on/off for gentoo to work properly in menuconfig? Thanks, Jeremy _________________ He who listens well, speaks well. |
|
Back to top |
|
|
plasmagunman l33t
Joined: 07 Jun 2002 Posts: 604 Location: berlin
|
Posted: Thu Feb 05, 2004 7:01 pm Post subject: Re: Updating Kernel |
|
|
JCScoobyRS wrote: | I want to update my kernel from 2.4.20-gentoo-r9 to 2.4.22-gentoo-r5 and I need to know the best way to do this |
Code: | emerge sync
emerge gentoo-sources
cd /usr/src/WHATEVER_THE_ACTUAL_VERSION_IS
cp /usr/src/OLD_KERNEL_TREE/.config ./
make oldconfig
make dep && make clean bzImage modules modules_install
mount /boot
cp arch/i386/YOUR_ARCH/boot/bzImage /boot/
edit grub.conf, lilo.conf or whatever
|
_________________ please, feel free to correct my english. - por favor, corrige mi español. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54808 Location: 56N 3W
|
Posted: Thu Feb 05, 2004 7:08 pm Post subject: |
|
|
JCScoobyRS,
Copy your exiting /usr/src/linux/.config file into the top of the new source tree (which will be in /usr/src). Look out for the leading full stop.
cd to your new source tree, the run make oldconfig.
The kernel configuration system will use you old configuration file as far as possible and only stop to ask you questions for new configuration items.
Read the help at each question, if the answer is not obvious. If you make a pigs ear of it, you can do the copy step and start again.
Now you have a kernel config that is as close as possible to your old one
Still in the new kernel tree do
Code: | make dep
make bzImage
make modules |
If this works, you have just hand rolled a kernel. Since its not what ou want,
run make xconfig or make menuconfig.
Telling you what options you need is very difficult without knowing a lot about your hardware. There are some general rules.
1. Everything you need for boong must be compiled in (say 'Y')
This includes things like HDD driver and root filesystem driver.
2. Evrything else can/should be a module (say 'M')
3. Anything you are not sure about can be a module. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
spb Retired Dev
Joined: 02 Jan 2004 Posts: 2135 Location: Cambridge, UK
|
Posted: Thu Feb 05, 2004 7:13 pm Post subject: Re: Updating Kernel |
|
|
JCScoobyRS wrote: | ...and to also add agpgart support to the kernel. Can someone tell me what kernel options that must be turned on/off for gentoo to work properly in menuconfig? Thanks, Jeremy |
For agpgart support in a 2.4 kernel, enable Character Devices => /dev/agpgart support, and then enable the right driver for your motherboard chipset.
Other options you need for Gentoo: General setup => Prompt for development and/or incomplete code/drivers, and File systems => Pseudo filesystems => /dev file system support. |
|
Back to top |
|
|
JCScoobyRS n00b
Joined: 18 Dec 2003 Posts: 57 Location: Colorado, USA
|
Posted: Thu Feb 05, 2004 8:24 pm Post subject: |
|
|
Thanks you all. I agree that there is no easy way to help out but I have since read some kernel docs and gotten my kernel to boot properly. Now...to get the FrameBuffer to resemble that of a default Gentoo kernel. Thanks, Jeremy _________________ He who listens well, speaks well. |
|
Back to top |
|
|
|