Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Updating Kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
JCScoobyRS
n00b
n00b


Joined: 18 Dec 2003
Posts: 57
Location: Colorado, USA

PostPosted: Thu Feb 05, 2004 5:35 pm    Post subject: Updating Kernel Reply with quote

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
View user's profile Send private message
plasmagunman
l33t
l33t


Joined: 07 Jun 2002
Posts: 604
Location: berlin

PostPosted: Thu Feb 05, 2004 7:01 pm    Post subject: Re: Updating Kernel Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54808
Location: 56N 3W

PostPosted: Thu Feb 05, 2004 7:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Thu Feb 05, 2004 7:13 pm    Post subject: Re: Updating Kernel Reply with quote

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
View user's profile Send private message
JCScoobyRS
n00b
n00b


Joined: 18 Dec 2003
Posts: 57
Location: Colorado, USA

PostPosted: Thu Feb 05, 2004 8:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum