View previous topic :: View next topic |
Author |
Message |
bobulus n00b
Joined: 15 Mar 2005 Posts: 21
|
Posted: Fri May 20, 2005 5:28 am Post subject: new gentoo-sources (r9) ? |
|
|
I recently did an emerge --sync and noticed that there was an update for gentoo-soruces 2.6.11-r9. I emerged it and noticed some text fly by at the end of the merge but wasn't able to catch it. Is there anything that needs to be done after emerging a new version of a kernel you already have? i thought I saw an env-update or something of the sort.. Thanks |
|
Back to top |
|
|
R!tman Veteran
Joined: 18 Dec 2003 Posts: 1303 Location: Zurich, Switzerland
|
Posted: Fri May 20, 2005 7:15 am Post subject: |
|
|
You only have to link /usr/src/linux to your new kernel sources. That's it. Of course you also have to copy the kernel image to you boot partition and so on. Else, you would not use that kernel . |
|
Back to top |
|
|
iverson0881 Apprentice
Joined: 08 Jan 2004 Posts: 285 Location: CA
|
Posted: Fri May 20, 2005 8:41 am Post subject: |
|
|
You need to rebuild your kernel. Try emerging gentoo-sources with the USE flag "symlink" and it'll automatically create the symlink for you. To build the kernel head on over to /usr/src/linux and run "make menuconfig". Alternatively you could copy over your .config from your previous kernel or even use genkernel.
If you choose to use make menuconfig to build your kernel then all you need to do to build your kernel after you hit save is to do
mount /boot
make && make modules_install install
and emerge any modules that require any module updates (ie. nvidia-kernel, ivtv)
and then finally edit or rerun your grub/lilo config.
You can also check out this section from the gentoo handbook:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?style=printable&full=1#book_part1_chap7 |
|
Back to top |
|
|
bobulus n00b
Joined: 15 Mar 2005 Posts: 21
|
Posted: Sun May 22, 2005 4:52 pm Post subject: |
|
|
Great, thanks guys. |
|
Back to top |
|
|
suck_ma_penguin Apprentice
Joined: 03 May 2004 Posts: 180
|
Posted: Sun May 22, 2005 5:44 pm Post subject: |
|
|
Also, something I find useful, if you it installs the kernel to boot as kernel-version, config-version, System.map-version and symlinks them to /boot/vmlinuz /boot/config. You can then set up grub to see the symlinks, and updates are even easier:
Code: | erasmus boot # ls -l
total 3274
lrwxrwxrwx 1 root root 1 Nov 14 2004 boot -> .
lrwxrwxrwx 1 root root 23 May 20 12:12 config -> config-2.6.11-gentoo-r9
-rw-r--r-- 1 root root 31694 May 20 12:12 config-2.6.11-gentoo-r9
drwxr-xr-x 3 root root 1024 May 18 17:54 grub
drwxr-xr-x 2 root root 12288 Nov 14 2004 lost+found
drwxr-xr-x 2 root root 1024 Nov 27 09:21 splash
lrwxrwxrwx 1 root root 27 May 20 12:12 System.map -> System.map-2.6.11-gentoo-r9
-rw-r--r-- 1 root root 1041339 May 20 12:12 System.map-2.6.11-gentoo-r9
lrwxrwxrwx 1 root root 24 May 20 12:12 vmlinuz -> vmlinuz-2.6.11-gentoo-r9
-rw-r--r-- 1 root root 2248337 May 20 12:12 vmlinuz-2.6.11-gentoo-r9 |
and my grub.conf:
Code: | # Boot automatically after 30 secs.
timeout 10
#Pretties!
splashimage=(hd0,0)/grub/splash/splash.xpm.gz
# By default, boot the first entry.
default 0
# Fallback to the second entry.
fallback 1
# For booting GNU/Linux
title Gentoo 2.6.11 1280x1024
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda3 video=vesafb:ywrap,mtrr,1280x1024-16@60 splash=silent,theme:lila
initrd /boot/splash/fbsplash-lila-1280x1024 |
|
|
Back to top |
|
|
iverson0881 Apprentice
Joined: 08 Jan 2004 Posts: 285 Location: CA
|
Posted: Thu May 26, 2005 8:34 pm Post subject: |
|
|
suck_ma_penguin wrote: | Also, something I find useful, if you it installs the kernel to boot as kernel-version, config-version, System.map-version and symlinks them to /boot/vmlinuz /boot/config. You can then set up grub to see the symlinks, and updates are even easier:
Code: | erasmus boot # ls -l
total 3274
lrwxrwxrwx 1 root root 1 Nov 14 2004 boot -> .
lrwxrwxrwx 1 root root 23 May 20 12:12 config -> config-2.6.11-gentoo-r9
-rw-r--r-- 1 root root 31694 May 20 12:12 config-2.6.11-gentoo-r9
drwxr-xr-x 3 root root 1024 May 18 17:54 grub
drwxr-xr-x 2 root root 12288 Nov 14 2004 lost+found
drwxr-xr-x 2 root root 1024 Nov 27 09:21 splash
lrwxrwxrwx 1 root root 27 May 20 12:12 System.map -> System.map-2.6.11-gentoo-r9
-rw-r--r-- 1 root root 1041339 May 20 12:12 System.map-2.6.11-gentoo-r9
lrwxrwxrwx 1 root root 24 May 20 12:12 vmlinuz -> vmlinuz-2.6.11-gentoo-r9
-rw-r--r-- 1 root root 2248337 May 20 12:12 vmlinuz-2.6.11-gentoo-r9 |
and my grub.conf:
Code: | # Boot automatically after 30 secs.
timeout 10
#Pretties!
splashimage=(hd0,0)/grub/splash/splash.xpm.gz
# By default, boot the first entry.
default 0
# Fallback to the second entry.
fallback 1
# For booting GNU/Linux
title Gentoo 2.6.11 1280x1024
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda3 video=vesafb:ywrap,mtrr,1280x1024-16@60 splash=silent,theme:lila
initrd /boot/splash/fbsplash-lila-1280x1024 |
|
Yup that's what the last install did on the line I said above.
make && make modules_install install <==
It works beautifully =) |
|
Back to top |
|
|
|