Re: [gentoo-user] Kernel updates

2005-10-28 Thread Neil Bothwick
On Thu, 27 Oct 2005 21:42:25 +0100, Digby Tarvin wrote:

 Thats what wasn't clear to me. I assume this is a special case in that
 an 'update world' won't install new kernel sources by default?

It will, provided the existing kernel sources were emerged. Portage only
tracks software installed by itself. If you set the symlink USE flag, it
even creates a new /usr/src/linux symlink for you.


-- 
Neil Bothwick

Are you sure this isn't the time for a colorful metaphor?


signature.asc
Description: PGP signature


Re: [gentoo-user] Kernel updates

2005-10-28 Thread Holly Bostick
Digby Tarvin schreef:
 On Thu, Oct 27, 2005 at 08:25:52PM -0400, James Hiscock wrote:
 
 I gather one cannot just copy the .config file for this much of a
 jump, so I guess the best thing to do is a simultaneous 'make
 menuconfig' in both old and new kernel using two different
 windows so that I can be sure to copy each of the current
 settings across.
 
 Easier solution: copy the .config, and then run make oldconfig --
  it'll prompt you for any changes made in the new kernel, and dump
 any invalid options...
 
 Thanks James and Qian,
 
 But doesn't this conflict with the advice given in
 kernel-upgrade.xml, which says:
 
 The only situation where this is appropriate is when upgrading from
 one Gentoo kernel revision to another. For example, the changes made
 between gentoo-sources-2.6.9-r1 and gentoo-sources-2.6.9-r2 will be
 very small, so it is usually OK to use the following method. However,
 it is not appropriate to use it in the example used throughout this
 document: upgrading from 2.6.8 to 2.6.9. Too many changes between the
 official releases, and the method described below does not display
 enough context to the user, often resulting in the user running into
 problems because they disabled options that they really didn't want
 to.
 
 As I am going from 2.6.10-gentoo-r6 to 2.6.12-gentoo-r10, which is
 more than just a revision change, it would seen that 'make oldconfig'
 is not recomended.
 

(top posting fixed)

Maybe not, but it does make it easier-- there's no reason you can't do a
make oldconfig to get the basic settings that you want/need (for
example, my kernel is set up for the ATI fglrx driver install and
fbsplash, and I want those settings copied over), and then do a make
menuconfig and go through the kernel settings manually to see what's
new. For the most part, the kernel help is extremely informative, and I
recommend that one do a make menuconfig every so often anyway, just to
*look* at the kernel, and read the Help for any options you don't
understand.

For a major kernel revision jump (and often even a minor one) I usually
do that, for the reasons mentioned in the docs, but having done a make
oldconfig first (or copied over my config to the new kernel) at least
ensures that certain basics will be set up without me having to remember
the labyrinthine collection of dependencies that results in the Enable
framebuffer splash setting to even appear in the config, leaving me
free to focus on the new options and decide how I want to handle them.

Holly.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-28 Thread James Hiscock
 As I am going from 2.6.10-gentoo-r6 to 2.6.12-gentoo-r10, which is more
 than just a revision change, it would seen that 'make oldconfig' is not
 recomended.

Recommendations are just that: recommendations. You can take them or
leave them. :)

And I have to agree with Holly on this one: it's a good starting
point, and it does make it easier. If you're at all worried about it,
though, follow the guide's recommendation.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Qian Qiao
On 10/27/05, Digby Tarvin [EMAIL PROTECTED] wrote:
 The portage system seems pretty effective in keeping the user level
 code up to date on a gentoo system - but now that I have had my
 system installed for 6-7 months it has occured to me that my
 kernel is no longer current, and I havn't found anything in the
 handbook suggesting how this should be approached.

 Is there a recommended procedure that someone can point me to?

Updating the kernel? it's just like compiling a new one.

# cd /usr/src
# ln -sfn linux-new_version linux
# cd linux
# mount /boot
# make menuconfig
# make  make modules_install
# make install

Then make sure you re-emerge any kernel modues, e.g. alsa-driver or
your graphic card driver.

Finally, edit your boot loader's config files accordingly and reboot
your system.

One last thing tho, if there isn't any kernel bug that bothers you,
and there isn't any new feature you are after in the new version, you
don't have to upgrade your kernel.

HTH.

-- Joe

--
There are 3 kinds of people in the world:
Those who can count, and those who can't.

Money can't buy everything.
Sometimes money can't even buy a gun...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Digby Tarvin
Thanks, but I am ok on configuring the kernels and then installing
them in /boot.

The thing which isn't clear to me is how I should get the 'linux-new_version'
directory installed on my system without downloading a whole new install
image and copying it across manually?

Is there a kernel release tarball downloadable somewhere? Or is there
some way to ask emerge to do this?

Regards,
DigbyT

On Thu, Oct 27, 2005 at 08:06:35PM +0100, Qian Qiao wrote:
 On 10/27/05, Digby Tarvin [EMAIL PROTECTED] wrote:
  The portage system seems pretty effective in keeping the user level
  code up to date on a gentoo system - but now that I have had my
  system installed for 6-7 months it has occured to me that my
  kernel is no longer current, and I havn't found anything in the
  handbook suggesting how this should be approached.
 
  Is there a recommended procedure that someone can point me to?
 
 Updating the kernel? it's just like compiling a new one.
 
 # cd /usr/src
 # ln -sfn linux-new_version linux
 # cd linux
 # mount /boot
 # make menuconfig
 # make  make modules_install
 # make install
 
 Then make sure you re-emerge any kernel modues, e.g. alsa-driver or
 your graphic card driver.
 
 Finally, edit your boot loader's config files accordingly and reboot
 your system.
 
 One last thing tho, if there isn't any kernel bug that bothers you,
 and there isn't any new feature you are after in the new version, you
 don't have to upgrade your kernel.
 
 HTH.
 
 -- Joe
 
 --
 There are 3 kinds of people in the world:
 Those who can count, and those who can't.
 
 Money can't buy everything.
 Sometimes money can't even buy a gun...
 
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread John Jolet
On Thursday 27 October 2005 14:25, Digby Tarvin wrote:
 Thanks, but I am ok on configuring the kernels and then installing
 them in /boot.

 The thing which isn't clear to me is how I should get the
 'linux-new_version' directory installed on my system without downloading a
 whole new install image and copying it across manually?

 Is there a kernel release tarball downloadable somewhere? Or is there
 some way to ask emerge to do this?
for example, i installed with emerge vanilla-sources.  when a new version is 
available, emerge vanilla-sources creates a new directory under /usr/src and 
puts it there.


 Regards,
 DigbyT

 On Thu, Oct 27, 2005 at 08:06:35PM +0100, Qian Qiao wrote:
  On 10/27/05, Digby Tarvin [EMAIL PROTECTED] wrote:
   The portage system seems pretty effective in keeping the user level
   code up to date on a gentoo system - but now that I have had my
   system installed for 6-7 months it has occured to me that my
   kernel is no longer current, and I havn't found anything in the
   handbook suggesting how this should be approached.
  
   Is there a recommended procedure that someone can point me to?
 
  Updating the kernel? it's just like compiling a new one.
 
  # cd /usr/src
  # ln -sfn linux-new_version linux
  # cd linux
  # mount /boot
  # make menuconfig
  # make  make modules_install
  # make install
 
  Then make sure you re-emerge any kernel modues, e.g. alsa-driver or
  your graphic card driver.
 
  Finally, edit your boot loader's config files accordingly and reboot
  your system.
 
  One last thing tho, if there isn't any kernel bug that bothers you,
  and there isn't any new feature you are after in the new version, you
  don't have to upgrade your kernel.
 
  HTH.
 
  -- Joe
 
  --
  There are 3 kinds of people in the world:
  Those who can count, and those who can't.
 
  Money can't buy everything.
  Sometimes money can't even buy a gun...
 
  --
  gentoo-user@gentoo.org mailing list

 --
 Digby R. S. Tarvin
 [EMAIL PROTECTED] http://www.digbyt.com

-- 
John Jolet
Your On-Demand IT Department
512-762-0729
www.jolet.net
[EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Qian Qiao
On 10/27/05, Digby Tarvin [EMAIL PROTECTED] wrote:
 Thanks, but I am ok on configuring the kernels and then installing
 them in /boot.

 The thing which isn't clear to me is how I should get the 'linux-new_version'
 directory installed on my system without downloading a whole new install
 image and copying it across manually?

 Is there a kernel release tarball downloadable somewhere? Or is there
 some way to ask emerge to do this?


emerge --update you_kernel_source_tree will grab the new version and
unpack it in /usr/src.

For example, I use gentoo-sources, so emerge --update gentoo-sources
will grab whatever the new version is, apply all the necessary
patches, and unpack it in /usr/src.

HTH.

-- Joe

--
There are 3 kinds of people in the world:
Those who can count, and those who can't.

Money can't buy everything.
Sometimes money can't even buy a gun...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Digby Tarvin
P.S. See my other posts regarding trying to get USB to work for
my mobile for the inspiration behind wanting to update the kernel. 

I think if you get to the stage of having to debug kernel code, it
is always worth at least trying the latest kernel first.

Regards,
DigbyT

On Thu, Oct 27, 2005 at 08:06:35PM +0100, Qian Qiao wrote:
 
 One last thing tho, if there isn't any kernel bug that bothers you,
 and there isn't any new feature you are after in the new version, you
 don't have to upgrade your kernel.
 
 HTH.
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Digby Tarvin
Thanks,

Thats what wasn't clear to me. I assume this is a special case in that
an 'update world' won't install new kernel sources by default?

I assume that the separate kernel source trees means that a new
kernel can be build in parallel to an older one, and the active
kernel chosen at boot time.

Thanks,
DigbyT

P.S. is there an easy way to confirm which kernel source (gentoo/vanilla)
was originally installed?

On Thu, Oct 27, 2005 at 02:31:30PM -0500, John Jolet wrote:
 On Thursday 27 October 2005 14:25, Digby Tarvin wrote:
  Thanks, but I am ok on configuring the kernels and then installing
  them in /boot.
 
  The thing which isn't clear to me is how I should get the
  'linux-new_version' directory installed on my system without downloading a
  whole new install image and copying it across manually?
 
  Is there a kernel release tarball downloadable somewhere? Or is there
  some way to ask emerge to do this?
 for example, i installed with emerge vanilla-sources.  when a new version is 
 available, emerge vanilla-sources creates a new directory under /usr/src and 
 puts it there.
 
 
  Regards,
  DigbyT
 
  On Thu, Oct 27, 2005 at 08:06:35PM +0100, Qian Qiao wrote:
   On 10/27/05, Digby Tarvin [EMAIL PROTECTED] wrote:
The portage system seems pretty effective in keeping the user level
code up to date on a gentoo system - but now that I have had my
system installed for 6-7 months it has occured to me that my
kernel is no longer current, and I havn't found anything in the
handbook suggesting how this should be approached.
   
Is there a recommended procedure that someone can point me to?
  
   Updating the kernel? it's just like compiling a new one.
  
   # cd /usr/src
   # ln -sfn linux-new_version linux
   # cd linux
   # mount /boot
   # make menuconfig
   # make  make modules_install
   # make install
  
   Then make sure you re-emerge any kernel modues, e.g. alsa-driver or
   your graphic card driver.
  
   Finally, edit your boot loader's config files accordingly and reboot
   your system.
  
   One last thing tho, if there isn't any kernel bug that bothers you,
   and there isn't any new feature you are after in the new version, you
   don't have to upgrade your kernel.
  
   HTH.
  
   -- Joe
  
   --
   There are 3 kinds of people in the world:
   Those who can count, and those who can't.
  
   Money can't buy everything.
   Sometimes money can't even buy a gun...
  
   --
   gentoo-user@gentoo.org mailing list
 
  --
  Digby R. S. Tarvin
  [EMAIL PROTECTED] http://www.digbyt.com
 
 -- 
 John Jolet
 Your On-Demand IT Department
 512-762-0729
 www.jolet.net
 [EMAIL PROTECTED]
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Qian Qiao
On 10/27/05, Digby Tarvin [EMAIL PROTECTED] wrote:
 Thanks,

 Thats what wasn't clear to me. I assume this is a special case in that
 an 'update world' won't install new kernel sources by default?

emerge --update world should install the new kernel sources for you.
Did you do a emerge --sync? If so, try emerge --deep --newuse --update
world, that'll definitely get the new kernel.


 I assume that the separate kernel source trees means that a new
 kernel can be build in parallel to an older one, and the active
 kernel chosen at boot time.

That's right, you can have as many compiled kernel images in your
/boot as you wish, provided you have enough disk space. You can choose
between them if you set up your boot loader correctly.


 Thanks,
 DigbyT

 P.S. is there an easy way to confirm which kernel source (gentoo/vanilla)
 was originally installed?

# cat /var/lib/portage/world | grep sys-kernel
The above command should give you the kernel(s) you've emerged.

HTH.

-- Joe

--
There are 3 kinds of people in the world:
Those who can count, and those who can't.

Money can't buy everything.
Sometimes money can't even buy a gun...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Renat Golubchyk
On Thu, 27 Oct 2005 19:43:07 +0100 Digby Tarvin [EMAIL PROTECTED] wrote:
 The portage system seems pretty effective in keeping the user level
 code up to date on a gentoo system - but now that I have had my
 system installed for 6-7 months it has occured to me that my
 kernel is no longer current, and I havn't found anything in the
 handbook suggesting how this should be approached.
 
 Is there a recommended procedure that someone can point me to?

http://www.gentoo.org/doc/en/kernel-upgrade.xml


Cheers,
Renat

-- 
Probleme kann man niemals mit derselben Denkweise loesen,
durch die sie entstanden sind.
  (Einstein)


pgpamHbiYMYMs.pgp
Description: PGP signature


Re: [gentoo-user] Kernel updates

2005-10-27 Thread Digby Tarvin
On Fri, Oct 28, 2005 at 12:45:49AM +0200, Renat Golubchyk wrote:
 On Thu, 27 Oct 2005 19:43:07 +0100 Digby Tarvin [EMAIL PROTECTED] wrote:
  The portage system seems pretty effective in keeping the user level
  code up to date on a gentoo system - but now that I have had my
  system installed for 6-7 months it has occured to me that my
  kernel is no longer current, and I havn't found anything in the
  handbook suggesting how this should be approached.
  
  Is there a recommended procedure that someone can point me to?
 
 http://www.gentoo.org/doc/en/kernel-upgrade.xml

Thanks. Not sure why I didn't stumble across then when searching
the documentation on the web site, but once I eventually got
emerge to install the new kernel, the messages left by emerge
led did lead me to that file:
 * If you are upgrading from a previous kernel, you may be interested
 * in the following documents:
 *   - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml
 *   - 2.4 to 2.6 migration guide: 
http://www.gentoo.org/doc/en/migration-to-2.6.xml

but of course I already had to have an idea on how to upgrade before seeing
that :-/. Thanks to all that offered advice...

Also, my initial
  emerge --update gentoo-sources
came back doing nothing - it just indicated that there were no packages
to update.

I tried again with just
  emerge gentoo-sources
and that went ahead and installed a new kernel source tree in /usr/src.

So now I just need to reproduce my kernel config and then I am
ready to try going from  linux-2.6.10-gentoo-r6 to linux-2.6.12-gentoo-r10.

I gather one cannot just copy the .config file for this much of a jump,
so I guess the best thing to do is a simultaneous 'make menuconfig' in both
old and new kernel using two different windows so that I can be sure
to copy each of the current settings across.

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread James Hiscock
 I gather one cannot just copy the .config file for this much of a jump,
 so I guess the best thing to do is a simultaneous 'make menuconfig' in both
 old and new kernel using two different windows so that I can be sure
 to copy each of the current settings across.

Easier solution: copy the .config, and then run make oldconfig --
it'll prompt you for any changes made in the new kernel, and dump any
invalid options...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Qian Qiao
On 10/28/05, Digby Tarvin [EMAIL PROTECTED] wrote:
 On Fri, Oct 28, 2005 at 12:45:49AM +0200, Renat Golubchyk wrote:
  On Thu, 27 Oct 2005 19:43:07 +0100 Digby Tarvin [EMAIL PROTECTED] wrote:
   The portage system seems pretty effective in keeping the user level
   code up to date on a gentoo system - but now that I have had my
   system installed for 6-7 months it has occured to me that my
   kernel is no longer current, and I havn't found anything in the
   handbook suggesting how this should be approached.
  
   Is there a recommended procedure that someone can point me to?
 
  http://www.gentoo.org/doc/en/kernel-upgrade.xml

 Thanks. Not sure why I didn't stumble across then when searching
 the documentation on the web site, but once I eventually got
 emerge to install the new kernel, the messages left by emerge
 led did lead me to that file:
  * If you are upgrading from a previous kernel, you may be interested
  * in the following documents:
  *   - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml
  *   - 2.4 to 2.6 migration guide: 
 http://www.gentoo.org/doc/en/migration-to-2.6.xml

 but of course I already had to have an idea on how to upgrade before seeing
 that :-/. Thanks to all that offered advice...

 Also, my initial
  emerge --update gentoo-sources
 came back doing nothing - it just indicated that there were no packages
 to update.

 I tried again with just
  emerge gentoo-sources
 and that went ahead and installed a new kernel source tree in /usr/src.

 So now I just need to reproduce my kernel config and then I am
 ready to try going from  linux-2.6.10-gentoo-r6 to linux-2.6.12-gentoo-r10.

 I gather one cannot just copy the .config file for this much of a jump,
 so I guess the best thing to do is a simultaneous 'make menuconfig' in both
 old and new kernel using two different windows so that I can be sure
 to copy each of the current settings across.

make oldconfig will copy all the old configurations, and prompt you
for the configurations that don't exist in the old config file.

--
There are 3 kinds of people in the world:
Those who can count, and those who can't.

Money can't buy everything.
Sometimes money can't even buy a gun...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Digby Tarvin
Thanks James and Qian,

But doesn't this conflict with the advice given in kernel-upgrade.xml, which
says:

The only situation where this is appropriate is when upgrading from one Gentoo 
kernel revision to another. For example, the changes made between 
gentoo-sources-2.6.9-r1 and gentoo-sources-2.6.9-r2 will be very small, so it 
is usually OK to use the following method. However, it is not appropriate to 
use it in the example used throughout this document: upgrading from 2.6.8 to 
2.6.9. Too many changes between the official releases, and the method described 
below does not display enough context to the user, often resulting in the user 
running into problems because they disabled options that they really didn't 
want to.

As I am going from 2.6.10-gentoo-r6 to 2.6.12-gentoo-r10, which is more
than just a revision change, it would seen that 'make oldconfig' is not
recomended.

Regards,
DigbyT

On Thu, Oct 27, 2005 at 08:25:52PM -0400, James Hiscock wrote:
  I gather one cannot just copy the .config file for this much of a jump,
  so I guess the best thing to do is a simultaneous 'make menuconfig' in both
  old and new kernel using two different windows so that I can be sure
  to copy each of the current settings across.
 
 Easier solution: copy the .config, and then run make oldconfig --
 it'll prompt you for any changes made in the new kernel, and dump any
 invalid options...
 
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list