Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help a n00b (kernels)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Brother Dysk
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 131
Location: Hong Kong SAR PRC

PostPosted: Wed Dec 17, 2003 2:42 am    Post subject: Help a n00b (kernels) Reply with quote

I have 2.4.20-gentoo-r7 as my kernel.

I want to get to using the 2.4.20-gentoo-r9 kernel, do_brk fix, and all that.

How? I take it it's not quite as easy as just 'emerge world' or 'emerge gentoo-sources'
Back to top
View user's profile Send private message
steel300
Veteran
Veteran


Joined: 10 Jul 2003
Posts: 1155

PostPosted: Wed Dec 17, 2003 2:57 am    Post subject: Reply with quote

Code:

emerge gentoo-sources
rm /usr/src/linux
ln -sf /usr/src/linux-2.4.20-gentoo-r9 /usr/src/linux
cd /usr/src/linux
cp ../linux-2.4.20-gentoo-r7/.config ./
make dep && make clean bzImage modules modules_install
mount /boot
cp arch/i386/boot/bzImage /boot
umount /boot


That should take care of the job. I'm just guessing on the actual directories that the trees are in, but linux-2.4.20-gentoo-r7 and linux-2.4.20-gentoo-r9 sound right. Since they are in the same kernel branch (both 2.4.x), just copying the config file and recompiling should take care of everything. If you used genkernel, you can skip anything past the make line.
_________________
Rationality is the recognition of the fact that nothing can alter the truth and nothing can take precedence over that act of perceiving it.
Back to top
View user's profile Send private message
triad
Apprentice
Apprentice


Joined: 10 Jul 2003
Posts: 234
Location: Dark Side of the Moon

PostPosted: Wed Dec 17, 2003 3:00 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=99348&highlight=gist+genkernel
_________________
It's not the size of your processor that matters... But how you use it!
Back to top
View user's profile Send private message
Brother Dysk
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 131
Location: Hong Kong SAR PRC

PostPosted: Wed Dec 17, 2003 3:19 am    Post subject: Reply with quote

Thankyou, doing that now :D
Back to top
View user's profile Send private message
steel300
Veteran
Veteran


Joined: 10 Jul 2003
Posts: 1155

PostPosted: Wed Dec 17, 2003 3:20 am    Post subject: Reply with quote

No Problem. Write back and let us know how it went.
_________________
Rationality is the recognition of the fact that nothing can alter the truth and nothing can take precedence over that act of perceiving it.
Back to top
View user's profile Send private message
Brother Dysk
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 131
Location: Hong Kong SAR PRC

PostPosted: Wed Dec 17, 2003 3:25 am    Post subject: Reply with quote

Oh, just a though, I'll be able to boot both my old kernel and the new one after this, I take it (obviously setting up GRUB accordingly)
Back to top
View user's profile Send private message
steel300
Veteran
Veteran


Joined: 10 Jul 2003
Posts: 1155

PostPosted: Wed Dec 17, 2003 3:36 am    Post subject: Reply with quote

Yeah, just copy the new bzImage file to /boot as bzImage-new. Then edit grub.conf and add an entry identical to your the entry for your old kernel, except for the line where you specify the kernel.

Something like this:
Code:

default 0
timeout 10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title = Gentoo
root (hd0,0)
kernel (hd0,0)/boot/bzImage root=/dev/hda3

title = New Gentoo
root (hd0,0)
kernel (hd0,0)/boot/bzImage-new root=/dev/hda3

_________________
Rationality is the recognition of the fact that nothing can alter the truth and nothing can take precedence over that act of perceiving it.
Back to top
View user's profile Send private message
Brother Dysk
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 131
Location: Hong Kong SAR PRC

PostPosted: Wed Dec 17, 2003 3:40 am    Post subject: Reply with quote

Well, I'll find out now: reboot time.
Back to top
View user's profile Send private message
Brother Dysk
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 131
Location: Hong Kong SAR PRC

PostPosted: Wed Dec 17, 2003 3:43 am    Post subject: Reply with quote

Success!! :D

Thanks ever so much.
Back to top
View user's profile Send private message
steel300
Veteran
Veteran


Joined: 10 Jul 2003
Posts: 1155

PostPosted: Wed Dec 17, 2003 3:45 am    Post subject: Reply with quote

Don't mention it. Just glad to help.
_________________
Rationality is the recognition of the fact that nothing can alter the truth and nothing can take precedence over that act of perceiving it.
Back to top
View user's profile Send private message
Brother Dysk
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 131
Location: Hong Kong SAR PRC

PostPosted: Wed Dec 17, 2003 10:42 am    Post subject: Reply with quote

Hrm. Say I wanted to try a 2.6 kernel, what would I do instead of copying my old kernel config file over?
Back to top
View user's profile Send private message
Brother Dysk
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 131
Location: Hong Kong SAR PRC

PostPosted: Wed Dec 17, 2003 11:33 am    Post subject: Reply with quote

Yep, that gives me a bunch of unresolved symbol issues. How'd I get around that?
Back to top
View user's profile Send private message
steel300
Veteran
Veteran


Joined: 10 Jul 2003
Posts: 1155

PostPosted: Wed Dec 17, 2003 2:41 pm    Post subject: Reply with quote

Did you remember to create the new symlink?
Code:

rm /usr/src/linux
ln -sf /usr/src/your_new_2.6_kernel /usr/src/linux

_________________
Rationality is the recognition of the fact that nothing can alter the truth and nothing can take precedence over that act of perceiving it.
Back to top
View user's profile Send private message
floffe
Guru
Guru


Joined: 24 Nov 2003
Posts: 414
Location: Linköping, Sweden

PostPosted: Wed Dec 17, 2003 4:21 pm    Post subject: Reply with quote

If you get a 2.6 kernel, it would probably be wise to
Code:
make menuconfig
before you
Code:
make
make modules_install

(Yes, it is that easy to compile 2.6 :))
Be sure to include devfs into the kernel though. There are many who forget that...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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