Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I was trying to build my own kernel (just for learning) from source so I downloaded v3.0.4 from kernel.org as I saw in Ubuntu site that ubuntu 11.10 (my running version of linux)is based on it. uname -a shows my running kernel as 3.0.0-12-generic-pae so I copied config-3.0.0-12-generic-pae to my kernel sources folder and renamed it as .config and typed in make oldconfig and then make. It took nearly 2 hours to compile and finally generated a vmlinux image of 168 MB. So I did make clean and did make bzImage. This time also it took 2 hrs and again generated a vmlinux image of 168 MB. So basically my doubt was:
1. Why is the kernel size so huge, my running kernel has a size of only 4.5 MB, even though both of them uses the same .config
2. Why did make bzImage generate the same vmlinux image isn't it supposed to generate a much smaller vmlinuz image.
3. Why is taking so long, the configuration of my PC is pretty decent with i5 2nd gen and 4GB RAM
4. Is there any difference between making a bzImage and stripping a vmlinux image?
Do you have /proc/config.gz ? (it is your running kernel config)
if yes, cd into your kernel source dir and do: zcat /proc/config.gz > .config
then make oldconfig etc...
Personnaly, I would make xconfig (or menuconfig) after oldconfig
then I would remove many stuff that I will never use
Thanks Cedrik and timetraveler for your answers. I dont have /proc/config.gz. I just wanted to build the kernel in the simplest possible way before I started changing any .config option that is why I just copied from /boot. Probably there is something wrong with it. Even if it is a generic kernel I dont think it should take 2 hours to compile. I will try to generate kernel by configuring according to my hardware.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.