Wednesday, April 18, 2012

A quicker way to get vmlinuz

Sometimes, I just want a linux kernel (such as for debugging). "make" command can get it, but it waste a lot of time because it also compiles all the modules which I don't need.

So I did some google search and find out "make bzImage" is the right command to use. After that, the kernel file is in arch/x86/boot/bzImage. bzImage is the same as vmlinuz .

btw: all these vmlinuz, bzImage names are very confusing. :(

4.25.2012 update: just change vmlinux to vmlinuz. The former is uncompressed and with all the symbols; it normally used for debugging. The latter is actually used for boot.

No comments: