View previous topic :: View next topic |
Author |
Message |
Brother Dysk Tux's lil' helper
Joined: 29 Sep 2003 Posts: 131 Location: Hong Kong SAR PRC
|
Posted: Wed Dec 17, 2003 2:42 am Post subject: Help a n00b (kernels) |
|
|
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 |
|
|
steel300 Veteran
Joined: 10 Jul 2003 Posts: 1155
|
Posted: Wed Dec 17, 2003 2:57 am Post subject: |
|
|
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 |
|
|
triad Apprentice
Joined: 10 Jul 2003 Posts: 234 Location: Dark Side of the Moon
|
|
Back to top |
|
|
Brother Dysk Tux's lil' helper
Joined: 29 Sep 2003 Posts: 131 Location: Hong Kong SAR PRC
|
Posted: Wed Dec 17, 2003 3:19 am Post subject: |
|
|
Thankyou, doing that now |
|
Back to top |
|
|
steel300 Veteran
Joined: 10 Jul 2003 Posts: 1155
|
Posted: Wed Dec 17, 2003 3:20 am Post subject: |
|
|
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 |
|
|
Brother Dysk Tux's lil' helper
Joined: 29 Sep 2003 Posts: 131 Location: Hong Kong SAR PRC
|
Posted: Wed Dec 17, 2003 3:25 am Post subject: |
|
|
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 |
|
|
steel300 Veteran
Joined: 10 Jul 2003 Posts: 1155
|
Posted: Wed Dec 17, 2003 3:36 am Post subject: |
|
|
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 |
|
|
Brother Dysk Tux's lil' helper
Joined: 29 Sep 2003 Posts: 131 Location: Hong Kong SAR PRC
|
Posted: Wed Dec 17, 2003 3:40 am Post subject: |
|
|
Well, I'll find out now: reboot time. |
|
Back to top |
|
|
Brother Dysk Tux's lil' helper
Joined: 29 Sep 2003 Posts: 131 Location: Hong Kong SAR PRC
|
Posted: Wed Dec 17, 2003 3:43 am Post subject: |
|
|
Success!!
Thanks ever so much. |
|
Back to top |
|
|
steel300 Veteran
Joined: 10 Jul 2003 Posts: 1155
|
Posted: Wed Dec 17, 2003 3:45 am Post subject: |
|
|
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 |
|
|
Brother Dysk Tux's lil' helper
Joined: 29 Sep 2003 Posts: 131 Location: Hong Kong SAR PRC
|
Posted: Wed Dec 17, 2003 10:42 am Post subject: |
|
|
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 |
|
|
Brother Dysk Tux's lil' helper
Joined: 29 Sep 2003 Posts: 131 Location: Hong Kong SAR PRC
|
Posted: Wed Dec 17, 2003 11:33 am Post subject: |
|
|
Yep, that gives me a bunch of unresolved symbol issues. How'd I get around that? |
|
Back to top |
|
|
steel300 Veteran
Joined: 10 Jul 2003 Posts: 1155
|
Posted: Wed Dec 17, 2003 2:41 pm Post subject: |
|
|
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 |
|
|
floffe Guru
Joined: 24 Nov 2003 Posts: 414 Location: Linköping, Sweden
|
Posted: Wed Dec 17, 2003 4:21 pm Post subject: |
|
|
If you get a 2.6 kernel, it would probably be wise to 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 |
|
|
|