View previous topic :: View next topic |
Author |
Message |
Cowboy Feng n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 May 2004 Posts: 32 Location: Sweden
|
Posted: Sun Jun 13, 2004 5:23 am Post subject: bzImage<--Most inane question ever? |
|
|
Hi! I'm reading up to recompile my kernel, but I'm confused by all the references to bzImage, like
Code: |
mv /boot/bzImage /boot/bzImage.old
|
Code: |
kernel /boot/bzImage
|
, or in the sripts I wanted to use:
Code: |
cp -v /boot/bzImage "/boot/bzImage-$WHEN-$WHAT"
|
I have no bzImage in my boot directory or in the grub.conf file! In its place, I have kernel-2.4.25-gentoo or something similar.
Now, I wonder:
is the name bzImage just some sort of placeholder for "relevant kernel"?
should I replace "bzImage" with the name of my kernel in the scripts and commands I use when reinstalling my kernel?
There IS a bzImage in the /usr/src/arch/i386/boot/something directory. What does IT do? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Raistlin l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1784031407449a32cfd7c14.jpg)
Joined: 17 May 2004 Posts: 691 Location: Boston, MA
|
Posted: Sun Jun 13, 2004 5:43 am Post subject: Re: bzImage<--Most inane question ever? |
|
|
hi,
this one saves your _old_ kernel image:
Cowboy Feng wrote: |
Code: |
mv /boot/bzImage /boot/bzImage.old
|
|
that one is written n your /boot/grub/grub.conf file - it's the ref. to your kernel image:
Cowboy Feng wrote: |
Code: |
kernel /boot/bzImage
|
|
the following copies the file /boot/bzImage to /boot/bzImage-$WHEN-$WHAT, where $WHEN and $WHAT are environment variables (they might have been specified in the script, given as parameter to the script, or may be defined elsewhere in your bash env. )
Cowboy Feng wrote: |
Code: |
cp -v /boot/bzImage "/boot/bzImage-$WHEN-$WHAT"
|
|
Cowboy Feng wrote: |
I have no bzImage in my boot directory or in the grub.conf file! In its place, I have kernel-2.4.25-gentoo or something similar.
|
well, that _is_ your kernel. it just was renamed when it has been copied from
Code: |
/usr/src/linux/arch/i386/boot/bzImage
|
to your boot directory. that allows you to have multiple kernels ready to load, so one can choose (by an appropriate grub.conf - entry) which kernel to boot.
i hope that answered your last question as well
Cowboy Feng wrote: |
Now, I wonder:
is the name bzImage just some sort of placeholder for "relevant kernel"?
should I replace "bzImage" with the name of my kernel in the scripts and commands I use when reinstalling my kernel?
There IS a bzImage in the /usr/src/arch/i386/boot/something directory. What does IT do? |
kind regards,
raistlin. _________________ Zwei Was Eins Initially
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cowboy Feng n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 May 2004 Posts: 32 Location: Sweden
|
Posted: Sun Jun 13, 2004 7:21 am Post subject: |
|
|
Sorry, I still don't understand.
In the command and script examples above, should I replace bzImage with kernel-2.4.25-gentoo? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hermes_jr l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1218839918407d5742349af.gif)
Joined: 26 Feb 2004 Posts: 701 Location: Moscow, Russia
|
Posted: Sun Jun 13, 2004 7:44 am Post subject: |
|
|
No, bzImage is a file that appears in /usr/linux/..../boot/ after kernel compilation and it should be copyed to your /boot directory with any name you want, no matter kernel-2.4.25-gentoo or kernel-2004 or windows-xp . |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cowboy Feng n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 May 2004 Posts: 32 Location: Sweden
|
Posted: Sun Jun 13, 2004 7:48 am Post subject: |
|
|
Ah. That cleared it up for me. Thanks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Frodg l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/924793376438a729e35287.gif)
Joined: 11 Feb 2004 Posts: 761
|
Posted: Sun Jun 13, 2004 10:51 am Post subject: |
|
|
hermes_jr wrote: | No, bzImage is a file that appears in /usr/linux/..../boot/ after kernel compilation and it should be copyed to your /boot directory with any name you want, no matter kernel-2.4.25-gentoo or kernel-2004 or windows-xp . |
As long as you make sure your boot program (lilo or grub) refers to your name of choice ![Smile :)](images/smiles/icon_smile.gif) _________________ Aerosolo ergo sum - I spray therefore I am
Gentoo - Registered Linux User # 361400 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ypsilon Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 19 Jul 2002 Posts: 92 Location: Germany
|
Posted: Sun Jun 13, 2004 1:48 pm Post subject: |
|
|
You may rename "bzImage" to "vmlinuz" as that is the standard name for kernels in /boot.
But don't ask me why ![Wink :wink:](images/smiles/icon_wink.gif) _________________ gentoo ownz. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|