Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new gentoo-sources (r9) ?
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
bobulus
n00b
n00b


Joined: 15 Mar 2005
Posts: 21

PostPosted: Fri May 20, 2005 5:28 am    Post subject: new gentoo-sources (r9) ? Reply with quote

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
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Fri May 20, 2005 7:15 am    Post subject: Reply with quote

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


Joined: 08 Jan 2004
Posts: 285
Location: CA

PostPosted: Fri May 20, 2005 8:41 am    Post subject: Reply with quote

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


Joined: 15 Mar 2005
Posts: 21

PostPosted: Sun May 22, 2005 4:52 pm    Post subject: Reply with quote

Great, thanks guys.
Back to top
View user's profile Send private message
suck_ma_penguin
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 180

PostPosted: Sun May 22, 2005 5:44 pm    Post subject: Reply with quote

Also, something I find useful, if you
Code:
make install
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
View user's profile Send private message
iverson0881
Apprentice
Apprentice


Joined: 08 Jan 2004
Posts: 285
Location: CA

PostPosted: Thu May 26, 2005 8:34 pm    Post subject: Reply with quote

suck_ma_penguin wrote:
Also, something I find useful, if you
Code:
make install
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
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