Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
i've struggled with kernel compile for the first time yesterday
i'd like to summerize what i 've learned
when u apply patch to kernel source,
make sure that patch works with your system..
i've wasted tons hours with wrong patch.
and don't forget to do #make mrproper after patching
when u do #make xconfig
chances are u can load /boot/config file so that u can start from there.
after copying bzImage and apply change in lilo.conf
u can do #make modules / #make modules_install
after rebooting and make sure your new kernel boots up(u will see modules unresolved dependencies.. )
if the new kernel boots up, do #make modules /modules_install
(u don't want to waste time with kernel image that's not gonna boot)
config options significantly changes your compile time..
go with as minimal options as u can..
oh i forgot this..
since each step takes considerably long time..
i thought if i can make a shell script which will execute each step after previous step is done, it will be awesome..
MasterC u gave me confidence to deal with the whole thing
i think it's most important to realize that kernel compile is not more than compiling any other software..
as long as you keep old kernel by setting up lilo.conf correct,
there's not much to lose other than time..
if u install tar.gz file ,, files are spread all over the system
with kernel, it's all under /usr/src/linux and /boot (ones u copied to)
so nothing is gonna messed up
//Eugene Kim
//after make xconfig, just run this for make dep/clean/bzImage
//little bit of modification would generalize this program so that it can
//be used for any source compilation...
#include <stdio.h>
main(int argc, char *argv[])
{
int depid, cleanid, bzimageid, waitret;
/* well i tried to make it more general with shell script
..next time maybe
i let my friend borrow my c book and shell book .. lol
=)
*/
/* if(argc>1){ */
/* if((childid=fork()) == 0){ */
/* execv(argv[0], ++argv); */
/* exit(127); */
/* } */
/* } */
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.