Re: [gentoo-user] Re: When did bzImage move?

2009-02-02 Thread Tom
maybe a pointer to the documentation?

Is there such a thing? I mean a comprehensive guide for doing such work
on (not only) gentoo systems?

Tom



Re: [gentoo-user] Re: When did bzImage move?

2009-02-02 Thread Dale
Harry Putnam wrote:
 Dale rdalek1...@gmail.com writes:

   
 The problem I ran into when I copied the old way, cp
 arch/i386/boot/bzImage /boot, that wasn't the kernel but was a link to
 the kernel in the x86 directory tree.  When I copied the link then the
 link got broke and then it appeared red on my screen.  I thought I was
 going nuts for a bit.  I hadn't heard anything about the kernel being
 moved and it had been a while.  I'm old and I do forget sometimes.
 

 Dale, from one old `f..t' to another.. here is a little tip I use
 dozens of ways to aid my sorry failing memory.

 In ~/.inputrc

 Something like (verbatim):

\M-f: ls -l `find ./ -iname 'bzimage'`

 after saving ~/.inputrc, type C-x C-r to make readline re-read
 it.

 Then anytime you press Atl-f readline will put that command on the
 cmdline for you.

 So inside /usr/src/linux, Alt-f enter will dig up bzimage and show
 any deceitful symlinks for what they are... hehe.

 May not be that useful .. at least until someone sneaks in and moves
 bzimage again, but I guess you can imagine the many ways putting
 things in .inputrc will free you from remembering stuff.



   

Well, what I did was go into Konqueror and look to see where the link
was pointing too.  It told me exactly where it was.  I could have done
the same in console but I was logged into KDE already so I just did it
the Nintendo way.  LOL 

Yep, I'm only 41 but I feel like a lot older most days.

Dale

:-)  :-) 



Re: [gentoo-user] Re: When did bzImage move?

2009-02-02 Thread Neil Bothwick
On Mon, 02 Feb 2009 09:22:29 -0600, Harry Putnam wrote:

 The idea from above is to end up with:
 
 localversion1
 localversion2 - .version
 .version
 
 Where:
localversion1 contains HOSTNAME
.version contains number `N' (current build)
localversion2 is symlinked to .version
 
 All under /usr/src/linux ?

That's right. The contents of any localversion* files are appended to the
kernel name. .version is automatically updated by the kernel make
scripts, so linking that to a localversion* file magically gives each
kernel build a new name.


-- 
Neil Bothwick

If Microsoft made cars:
The airbag system would ask are you sure? before deploying.


signature.asc
Description: PGP signature


[gentoo-user] Re: When did bzImage move?

2009-02-02 Thread Harry Putnam
Neil Bothwick n...@digimed.co.uk writes:

 cd /usr/src/linux
 echo $(hostname)- localversion1
 ln -s .version localversion2

 will give each kernel a name with the hostname and version
 added. .version is automatically incremented each time you run make.

I'm sorry for being so dense but that isn't clear to my pea brain
either.

The idea from above is to end up with:

localversion1
localversion2 - .version
.version

Where:
   localversion1 contains HOSTNAME
   .version contains number `N' (current build)
   localversion2 is symlinked to .version

All under /usr/src/linux ?

If you're sick of trying to explain it to me... maybe a pointer to the
documentation? 




Re: [gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Geralt
Nobody here using the genkernel package to build his kernel? I'm using
it all the time, makes initramfs creation so much easier :-)



Re: [gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Volker Armin Hemmann
On Sonntag 01 Februar 2009, Geralt wrote:
 Nobody here using the genkernel package to build his kernel? I'm using
 it all the time, makes initramfs creation so much easier :-)

who needs an initramfs?




Re: [gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Norberto Bensa
On Sun, Feb 1, 2009 at 2:26 PM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 On Sonntag 01 Februar 2009, Geralt wrote:
 Nobody here using the genkernel package to build his kernel? I'm using
 it all the time, makes initramfs creation so much easier :-)

 who needs an initramfs?


Me of course! I have root on lvm, so I need one.

To Geralt, yes. I use genkernel.



Re: [gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Dirk Heinrichs
Am Sonntag, 1. Februar 2009 17:26:23 schrieb Volker Armin Hemmann:

 who needs an initramfs?

Those with an encrypted root fs?

Bye...

Dirk


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Geralt
On Sun, Feb 1, 2009 at 5:26 PM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 On Sonntag 01 Februar 2009, Geralt wrote:
 Nobody here using the genkernel package to build his kernel? I'm using
 it all the time, makes initramfs creation so much easier :-)

 who needs an initramfs?



Me of course ;-)

I have root on lvm and I'm using uvesafb (+splash)



Re: [gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Volker Armin Hemmann
On Sonntag 01 Februar 2009, Norberto Bensa wrote:
 On Sun, Feb 1, 2009 at 2:26 PM, Volker Armin Hemmann

 volkerar...@googlemail.com wrote:
  On Sonntag 01 Februar 2009, Geralt wrote:
  Nobody here using the genkernel package to build his kernel? I'm using
  it all the time, makes initramfs creation so much easier :-)
 
  who needs an initramfs?

 Me of course! I have root on lvm, so I need one.

I have root on raid5 - and so I don't need lvm. Yay!



Re: [gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Volker Armin Hemmann
On Sonntag 01 Februar 2009, Tom wrote:
 who needs an initramfs?

 Not me ;)

 But seeing this discussion, I've finally realised that I'm a dumbass.
 For ages now I've been manually copying the kernel, the system.map and
 the config around my filesystem. I've always wondered how on earth
 people manage who do a lot of kernel testing  without exploding due to
 frustration. Now I know... :)

 But out of curiosity, and to recap:

 I can set the version, either in the kernel config with
 CONFIG_LOCALVERSION
 or by using a file
 localversion
 containing a version string?

I am using the first way, don't know the second.


 Does this then create a bzImage-versionstring file, and make install
 copies this to /boot/kernel-versionstring (and system.map and .config
 respectably)?

vmlinuz-versionstring. 


 Also how exactly do you then need to build the kernel.
 Does a simple 'make' suffice?

I use:
make all modules_install install.




Re: [gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Neil Bothwick
On Sun, 1 Feb 2009 18:34:10 +0100, Volker Armin Hemmann wrote:

  I can set the version, either in the kernel config with
  CONFIG_LOCALVERSION
  or by using a file
  localversion
  containing a version string?  
 
 I am using the first way, don't know the second.

It works just the same, but keeps it put of the config file (and lets you
use the contents of .version without needing git). The
CONFIG_LOCALVERSION help describes it.


-- 
Neil Bothwick

Criminal Lawyer is a redundancy.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Jesús Guerrero

El Dom, 1 de Febrero de 2009, 18:27, Tom escribió:
 Does this then create a bzImage-versionstring file, and make install
 copies this to /boot/kernel-versionstring (and system.map and .config
 respectably)?

Yes.

 Also how exactly do you then need to build the kernel.
 Does a simple 'make' suffice?

Yes.

make  make install modules_install is all you need. Then
either edit grub.conf or if you don't like tinkering with it
just set it to boot vmlinuz and forget about it.


-- 
Jesús Guerrero




[gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Harry Putnam
Neil Bothwick n...@digimed.co.uk writes:

 On Sat, 31 Jan 2009 23:38:48 -0500, ABCD wrote:

 To be precise, the config option CONFIG_LOCALVERSION appends a string to
 the end of the kernel version, which installkernel uses to place the
 kernel image.

 You can get the same effect by creating a file called localversion
 containing the string to add, which saves altering the kernel config. If
 you make this a symlink to .version, you even get it incremented
 automatically.

 If /boot/vmlinuz exists, then it is moved to /boot/vmlinuz.old, and a
 *symlink* from /boot/vmlinuz is created to vmlinuz-${VERSION}.  If
 /boot/vmlinuz did *not* exist before installation, then no symlink is
 created.

 Instead, vmlinuz-${VERSION} is copied to vmlinuz.

I'm a little confused here... what exactly is in .version?  Say if I
wanted to identify the kernel as belonging to a specific machine.
HOST is vm23.  Now if I wanted to have an incrementing version string
that included that host name what would I need in .version and how
does the incrementing work?

Do you mean 1 is added to string each time you call make?  Can you
show an example of this?

Does .version need to reside in same level as .config?  Will a 
`make clean' or `make mrproper'... destroy it? 




Re: [gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Saphirus Sage



On Feb 1, 2009, at 11:26 AM, Volker Armin Hemmann volkerar...@googlemail.com 
 wrote:



On Sonntag 01 Februar 2009, Geralt wrote:
Nobody here using the genkernel package to build his kernel? I'm  
using

it all the time, makes initramfs creation so much easier :-)


who needs an initramfs?


My laptop won't boot without initramfs. Took me a weekend installing  
gentoo to figure that one out. And yeah, I actually to use genkernel.  
It allows me to configure how I want it, and just stop worrying from  
that point forward. 



Re: [gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Neil Bothwick
On Sun, 01 Feb 2009 12:31:27 -0600, Harry Putnam wrote:

 I'm a little confused here... what exactly is in .version?  Say if I
 wanted to identify the kernel as belonging to a specific machine.
 HOST is vm23.  Now if I wanted to have an incrementing version string
 that included that host name what would I need in .version and how
 does the incrementing work?
 
 Do you mean 1 is added to string each time you call make?  Can you
 show an example of this?
 
 Does .version need to reside in same level as .config?  Will a 
 `make clean' or `make mrproper'... destroy it? 

cd /usr/src/linux
echo $(hostname)- localversion1
ln -s .version localversion2

will give each kernel a name with the hostname and version
added. .version is automatically incremented each time you run make.

Make mrproper will most likely remove it, but I've not used that since
2.4.


-- 
Neil Bothwick

Work is the curse of the partying class!


signature.asc
Description: PGP signature


[gentoo-user] Re: When did bzImage move?

2009-02-01 Thread »Q«
On Mon, 2 Feb 2009 03:23:56 +
Stroller strol...@stellar.eclipse.co.uk wrote:

 On 2 Feb 2009, at 01:17, Tom wrote:
  Basically I build the kernel using make  make modules_install and
  then copy the kernel by hand
 
  Good god. So I'm not alone in being a dumbass :)
 
 What they said.

I'm another one.

I guess if I were building a lot of kernels, I'd look into these other
methods of moving files around and dealing with grub.conf, but I only
do it once every few months.

-- 
»Q«
 Kleeneness is next to Gödelness.




[gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Grant Edwards
On 2009-02-01, Geralt usr.gen...@googlemail.com wrote:

 Nobody here using the genkernel package to build his kernel?

Not me.  I do use the debian install utilities.

 Ib'm using it all the time, makes initramfs creation so much
 easier :-)

Why would one need an initramfs?

-- 
Grant




Re: [gentoo-user] Re: When did bzImage move?

2009-02-01 Thread Dirk Heinrichs
Am Montag, 2. Februar 2009 05:53:34 schrieb Grant Edwards:

 Why would one need an initramfs?

That question has already been answered in this thread.

Bye...

Dirk


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: When did bzImage move?

2009-02-01 Thread ABCD
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dale wrote:
 Stroller wrote:
 On 2 Feb 2009, at 03:46, Dale wrote:
 ...
 I think I tried this /or genkernel  when I looked at /boot I found
 they'd littered the place with clutter.

 I hope you won't be offended, but the amount of junk files this added
 made me want to barf.

 I have avoided any such complications since, considering I don't
 consider copying a file  editing grub.conf to be anything of a
 complication myself.
 ...
 I think I read somewhere that system.map file is no longer needed,
 unless you want to set up things in a odd way.  Is that correct?
 I've certainly never needed it, in several years since 2.4 kernels.
 But IIRC it is/was copied over when using these automated kernel
 installation methods.

 Stroller.
  
 
 I think that is how mine got there to.  I may rename mine and reboot and
 see what blows up. 
 
 Dale
 
 :-)  :-) 
 
 

If I remember correctly, it is only used by depmod, and only if you pass
the file name on the command line. update-modules, which calls depmod,
and tends to be the main way that depmod is called (besides in the
kernel Makefile), searches the following directories for the System.map
file:
  /lib/modules/${KV}/build
  /usr/src/linux-${KV}
  /lib/modules/${KV}
  /boot
  /usr/src/linux

In each directory, it looks for the file in this order:
  System.map-genkernel-${arch}-${KV}
  System.map-genkernel-*-${KV}
  System.map-${KV}
  System.map

What this effectively means is that the copy in /boot is a backup copy,
just in case you clean the current build of your kernel
(/lib/modules/${KV}/build is a symlink to the build directory of your
kernel build, which can differ from the source directory)

tl;dr version: It won't blow up immediately, but you might run into
problems later if you `make clean` or `make mrproper` in the build tree
- - or build a different kernel in the same tree.

- --
ABCD
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmGn8YACgkQOypDUo0oQOqZFgCffggirZ6KATIY/WcMwRxFz9O5
4BMAniHaPafRfEb6dhE1YXsfVUKJKLo2
=MqG6
-END PGP SIGNATURE-




[gentoo-user] Re: When did bzImage move?

2009-01-31 Thread ABCD
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Volker Armin Hemmann wrote:
 Dale wrote:
 Volker Armin Hemmann wrote:
 Dale wrote:
 I like to copy mine manually.  I dunno, I just do.  I'm weird that way.
 I also have a unique way of naming my kernels so I can keep up with
 which is which.
 well, you can always put the name in the config - and let make install do
 the copy. That way you get a nice vmlinuz symlink to the latest kernel
 and vmlinuz.old to the older one - and you never have to touch grub.conf
 again.
 But that would only allow you to have two kernels laying around.  Right
 now I have these:

 
 no, you can have as many kernels as you want. But there is a vmlinuz symlink 
 to the latest and vmlinuz.old symlink to the previous installed one.
 

To be precise, the config option CONFIG_LOCALVERSION appends a string to
the end of the kernel version, which installkernel uses to place the
kernel image.

If /boot/vmlinuz exists, then it is moved to /boot/vmlinuz.old, and a
*symlink* from /boot/vmlinuz is created to vmlinuz-${VERSION}.  If
/boot/vmlinuz did *not* exist before installation, then no symlink is
created.  installkernel also copies your .config to
/boot/config-${VERSION}, performing the same move and symlink operation.
 In addition, if you *do* install the same kernel version twice, it will
move your old version out of the way (to vmlinuz-${VERSION}.old) first,
so even if you do forget to update your .config, you will still have
both kernels.

To see exactly what make install does, read /sbin/installkernel (a
/bin/sh script), as that's all `make install` calls (well, it first
checks for ~/bin/${CROSS_COMPILE}installkernel, and calls it, if it
exists, which allows you to customize the installation process).

Personally, I will set CONFIG_LOCALVERSION to .# or -r0.# on a
second+ compilation of the same kernel version. (My current kernel is
2.6.28-gentoo-r1.2).

- --
ABCD
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmFJ1cACgkQOypDUo0oQOouMACcC6abA3gFvOZQbDB5dMnMBAMo
D8MAnjr4MSrTG9KiC6cB6fodijrSWjK/
=6Bgu
-END PGP SIGNATURE-




[gentoo-user] Re: When did bzImage move?

2009-01-31 Thread Nikos Chantziaras

Dale wrote:

[...]
But that would only allow you to have two kernels laying around.  Right
now I have these:

r...@smoker / # ls /boot/bzImage-2*
-rw-r--r-- 1 root root 2355440 Jan 31 18:52 /boot/bzImage-2-28-r8-1
-rw-r--r-- 1 root root 2460088 Jan  2 20:13 /boot/bzImage-2.6.23-r8-7
-rw-r--r-- 1 root root 2288336 Dec 30 07:49 /boot/bzImage-2.6.27-r7-1
r...@smoker / #


I only use make install and my /boot looks like this:

  config - config-2.6.28-gentoo-r1
  config-2.6.24-gentoo-r8
  config-2.6.27-gentoo-r7
  config-2.6.28-gentoo
  config-2.6.28-gentoo-r1
  config.old - config-2.6.28-gentoo
  System.map - System.map-2.6.28-gentoo-r1
  System.map-2.6.24-gentoo-r8
  System.map-2.6.27-gentoo-r7
  System.map-2.6.28-gentoo
  System.map-2.6.28-gentoo-r1
  System.map.old - System.map-2.6.28-gentoo
  vmlinuz - vmlinuz-2.6.28-gentoo-r1
  vmlinuz-2.6.24-gentoo-r8
  vmlinuz-2.6.27-gentoo-r7
  vmlinuz-2.6.28-gentoo
  vmlinuz-2.6.28-gentoo-r1
  vmlinuz.old - vmlinuz-2.6.28-gentoo

I never changed any filename in there manualy.