 |
|
| Linux Forum Index » Linux - Mandrake Forum » where is uncompressed kernel... |
|
Page 1 of 1 |
|
| Author |
Message |
| faeychild... |
Posted: Thu Jun 05, 2008 7:18 pm |
|
|
|
Guest
|
I have never considered this before. Obviously sitting around and thinking is
quite dangerous.
vmlinuz is the compressed kernel, but where is when it's expanded and what is
it called. An inspired search for "vmlinux" failed.
--
faeychild |
|
|
| Back to top |
|
|
|
| Jim Beard... |
Posted: Thu Jun 05, 2008 7:36 pm |
|
|
|
Guest
|
faeychild wrote:
Quote: I have never considered this before. Obviously sitting around and thinking is
quite dangerous.
vmlinuz is the compressed kernel, but where is when it's expanded and what is
it called. An inspired search for "vmlinux" failed.
It is buried in the lower reaches of your kernel
source code, or in the top directory of the source
code if you chose to disable the default and not
allow make to compress the kernel built.
Cheers!
jim b.
--
UNIX is not user-unfriendly; it merely
expects users to be computer-friendly. |
|
|
| Back to top |
|
|
|
| David W. Hodgins... |
Posted: Thu Jun 05, 2008 7:59 pm |
|
|
|
Guest
|
On Thu, 05 Jun 2008 20:18:37 -0400, faeychild <phobos at (no spam) deimos.invalid> wrote:
Quote: vmlinuz is the compressed kernel, but where is when it's expanded and what is
it called. An inspired search for "vmlinux" failed.
I'm not quite sure I understand the question. The compressed kernel is stored
in /boot/vmlinuz.$kernelversion
(note vmlinuz with a z on the end).
It's read by the bootloader, and uncompressed into ram, for execution. The
uncompressed version does not exist on disk, unless as Jim suggested you
choose not to compress it, when configuring/making the kernel.
Regards, Dave Hodgins
--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.) |
|
|
| Back to top |
|
|
|
| faeychild... |
Posted: Thu Jun 05, 2008 11:05 pm |
|
|
|
Guest
|
David W. Hodgins wrote:
Quote: On Thu, 05 Jun 2008 20:18:37 -0400, faeychild <phobos at (no spam) deimos.invalid> wrote:
vmlinuz is the compressed kernel, but where is when it's expanded and what
is it called. An inspired search for "vmlinux" failed.
I'm not quite sure I understand the question. The compressed kernel is
stored in /boot/vmlinuz.$kernelversion
(note vmlinuz with a z on the end).
It's read by the bootloader, and uncompressed into ram, for execution.
Of course it is. In RAM. I must be having a slow brain morning. More coffee may
help.
Thanks David
--
faeychild |
|
|
| Back to top |
|
|
|
| Aragorn... |
Posted: Thu Jun 05, 2008 11:09 pm |
|
|
|
Guest
|
David W. Hodgins wrote:
Quote: On Thu, 05 Jun 2008 20:18:37 -0400, faeychild <phobos at (no spam) deimos.invalid
wrote:
vmlinuz is the compressed kernel, but where is when it's expanded and
what is it called. An inspired search for "vmlinux" failed.
I'm not quite sure I understand the question. The compressed kernel is
stored in /boot/vmlinuz.$kernelversion
(note vmlinuz with a z on the end).
It's read by the bootloader, and uncompressed into ram, for execution.
The uncompressed version does not exist on disk, unless as Jim suggested
you choose not to compress it, when configuring/making the kernel.
If you build your own kernel, then it does very well exist on disk, Dave.
The name should then be /vmlinux./
The uncompressed kernel image must be created either way before it can be
compressed, and should - as Jim Beard put it - reside somewhere in
*./*KERNEL_VERSION/arch/$ARCHITECTURE.*
Also note that the /vmlinuz-$VERSION/ image is typically built as the
file /bzImage/ and only renamed to the /vmlinuz-$VERSION/ name when you
run...
make install
So basically, if you build your own kernel, then you end up with both
a /vmlinux/ and a /bzImage,/ but if you decide to copy the kernel image to
*/boot* yourself rather than to use the /install/ option to /make,/
then /bzImage/ is the file you need, and then you are free to name it
whatever you want.
You do of course then manually have to update the bootloader configuration
and point it to the correct kernel image yourself, a step which is normally
taken care of /automagically/ if you run...
make install
;-)
--
*Aragorn*
(registered GNU/Linux user #223157) |
|
|
| Back to top |
|
|
|
| Aragorn... |
Posted: Fri Jun 06, 2008 11:16 pm |
|
|
|
Guest
|
faeychild wrote:
Quote: Aragorn wrote:
/vmlinuz-$KERNELVERSION/ is the compressed kernel image. It gets loaded
into memory by the GRUB or LILO bootloader. At this stage, the boot
processor is still in real mode.
The compressed kernel image contains a realmode bootstrapper, which will
then set up the proper registers in the boot CPU, switch the boot CPU
into protected mode and subsequently decompress the actual kernel image.
The actual kernel will then bring other CPU cores online and start
initializing the hardware. In other words, in a normal GNU/Linux
distribution, the decompressed kernel image only exists in RAM, in
runtime.
Hi Aragorn
I've seen you posting again, Welcome back
Thank you very much, but just for the record, you've already welcomed me
back a while ago... :p
As a sidenote, even now still after all of these years of being here, as
well as after all my timeouts from this group - three so far, I believe - I
still appreciate "the human factor" of both Mandr* groups - something which
I have also seen in the Gentoo group, albeit that it's got less traffic
than the Mandr* groups - compared to the rather sterile nature of the
groups in the /comp.os.linux.*/ hierarchy.
Quote: I remember that I actually know this. I have no explanation for not
knowing it the other day though.
I think my brain must have fallen over. It's a pity that it can't be
fsck'd.
Oh well, there's no shame in that, since we all have such moments every once
in a while. The brain can only handle so much, you know, and sometimes
things around us get a little too much and we shortcircuit somehow. :-)
Quote: [...]
Hope this was helpful. ;-)
Always find your posts interesting
Thank you very much, again. It is always nice to know one is
appreciated.
Being who I am, I cannot ascertain such things if they're not explicitly
being worded, and I sure don't take anything for granted in that department
either. ;-)
--
*Aragorn*
(registered GNU/Linux user #223157) |
|
|
| Back to top |
|
|
|
| faeychild... |
Posted: Sat Jun 07, 2008 5:05 am |
|
|
|
Guest
|
Aragorn wrote:
Quote:
Hi Aragorn
I've seen you posting again, Welcome back
Thank you very much, but just for the record, you've already welcomed me
back a while ago... :p
Well that confirms that I'm definitely losing my grip.
And I'm drifting off topic
--
faeychild |
|
|
| Back to top |
|
|
|
| Aragorn... |
Posted: Sat Jun 07, 2008 6:21 am |
|
|
|
Guest
|
faeychild wrote:
Quote: Hi Aragorn
I've seen you posting again, Welcome back
Thank you very much, but just for the record, you've already welcomed me
back a while ago... :p
Well that confirms that I'm definitely losing my grip.
And I'm drifting off topic
Life would be very boring if we all strictly stuck to the topic... We'd all
be good little drones, but where's the fun in that? :-)
--
*Aragorn*
(registered GNU/Linux user #223157) |
|
|
| Back to top |
|
|
|
|
|
All times are GMT - 5 Hours
The time now is Mon Nov 30, 2009 11:59 am
|
|