Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bzImage<--Most inane question ever?
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
Cowboy Feng
n00b
n00b


Joined: 23 May 2004
Posts: 32
Location: Sweden

PostPosted: Sun Jun 13, 2004 5:23 am    Post subject: bzImage<--Most inane question ever? Reply with quote

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


Joined: 17 May 2004
Posts: 691
Location: Boston, MA

PostPosted: Sun Jun 13, 2004 5:43 am    Post subject: Re: bzImage<--Most inane question ever? Reply with quote

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 :wink:

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


Joined: 23 May 2004
Posts: 32
Location: Sweden

PostPosted: Sun Jun 13, 2004 7:21 am    Post subject: Reply with quote

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


Joined: 26 Feb 2004
Posts: 701
Location: Moscow, Russia

PostPosted: Sun Jun 13, 2004 7:44 am    Post subject: Reply with quote

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 :lol:.
Back to top
View user's profile Send private message
Cowboy Feng
n00b
n00b


Joined: 23 May 2004
Posts: 32
Location: Sweden

PostPosted: Sun Jun 13, 2004 7:48 am    Post subject: Reply with quote

Ah. That cleared it up for me. Thanks.
Back to top
View user's profile Send private message
Frodg
l33t
l33t


Joined: 11 Feb 2004
Posts: 761

PostPosted: Sun Jun 13, 2004 10:51 am    Post subject: Reply with quote

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 :lol:.


As long as you make sure your boot program (lilo or grub) refers to your name of choice :)
_________________
Aerosolo ergo sum - I spray therefore I am

Gentoo - Registered Linux User # 361400
Back to top
View user's profile Send private message
Ypsilon
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2002
Posts: 92
Location: Germany

PostPosted: Sun Jun 13, 2004 1:48 pm    Post subject: Reply with quote

You may rename "bzImage" to "vmlinuz" as that is the standard name for kernels in /boot.

But don't ask me why :wink:
_________________
gentoo ownz.
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