LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   bzImage or vmlinuz? Some doubts related to kernel (https://www.linuxquestions.org/questions/linux-kernel-70/bzimage-or-vmlinuz-some-doubts-related-to-kernel-732604/)

saivin 06-12-2009 09:30 PM

bzImage or vmlinuz? Some doubts related to kernel
 
Hi,
I have some doubts regarding kernel compilation. I read all the 10 posts for 'compiling kernel' search. None really helped in clearing this doubt.

As I understand,
a) bzImage is the output of 'make',
b) entries in /lib/modules are the output of 'make modules_install' and
c) vmlinuz, config and System.map are outputs of 'make install'.

I understand initrd.img and config. One is minimal set of drivers or such to boot system and then pass the control to actual kernel and the second is the configuration file for kernel compilation (Correct me if I'm wrong).

I however did not understand bzImage vs vmlinuz. Most distros use vmlinuz, but Gentoo is happy running from bzImage.

Is the difference between bzImage and vmlinuz, something like the difference between 'useradd' and 'adduser' where 'adduser' is essentially 'useradd' but does little more configuration like creating home directory and group by the same name, allocating default shell etc. :?

Also, I did not understand what exactly is System.map. Wikipedia and article by Peter at dirac.org says, its like symbol table for the kernel. I'm not clear about it. :scratch:

Why does Slackware use System.map instead of initrd.img. Totally confused. :confused:

Can any of you explain it in more newbie-friendly way?

syg00 06-12-2009 10:07 PM

There is no difference - vmlinuz is merely a (renamed) copy of bzImage. Have a read of this.
There is no way System.map could be used as an initrd image - and I don't think Pat would misname it; but I don't have a Slack system to check

colorpurple21859 06-13-2009 08:00 AM

slack uses initrd.gz which is made when you run the mkinitrd command. Look at /boot/README.initrd


All times are GMT -5. The time now is 09:13 AM.