contribution in kernel community & testing kernel
Hi, I a novice & want to contribute to linux community. I have basic knowledge of kernel. Problem statement: I want to work on x86 architecture. I am not sure how to go about unit testing. I can use qemu for testing but i find kernel on x86 architecture too big to compile. How i can get the smaller size kernel on x86 architecture? Please help me setting up testing environment so that i can test my changes properly & quickly. thanks, Shubham
On Wed, Mar 23, 2016 at 5:36 PM, shubham k <skaushal.lk@gmail.com> wrote:
Hi,
I a novice & want to contribute to linux community. I have basic knowledge of kernel.
Problem statement: I want to work on x86 architecture. I am not sure how to go about unit testing. I can use qemu for testing but i find kernel on x86 architecture too big to compile. How i can get the smaller size kernel on x86 architecture? Please help me setting up testing environment so that i can test my changes properly & quickly.
thanks, Shubham
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
If you want smaller kernel size, just avoid compiling modules or kernel component that you don't need. Things like unneccessary device support, protocol support are something you can begin with. Also, once you do: make then if later you did modification on certain .c files, then next invocation of "make" will only recompile the changed .c files. if you need further speed, use ccache. -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com This email has been sent from a virus-free computer protected by Avast. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaig...> <#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, Mar 23, 2016 at 6:36 PM, shubham k <skaushal.lk@gmail.com> wrote:
Hi,
I a novice & want to contribute to linux community. I have basic knowledge of kernel.
Problem statement: I want to work on x86 architecture. I am not sure how to go about unit testing. I can use qemu for testing but i find kernel on x86 architecture too big to compile. How i can get the smaller size kernel on x86 architecture? Please help me setting up testing environment so that i can test my changes properly & quickly.
Hi, I once turn off all of the unnecessary options in .config and the kernel can be compiled within three minutes. But I also remove USB,Networking,video, and mouse drivers, so the newer kernel is very tiny and it's useless except debugging. Besides, I use bochs and gdb to debug kernel source and it's very convenient. Recently, I find DDD is an awesome debugger, so I highly recommend it. Good Luck. Hao Lee
On Wed, 23 Mar 2016 16:06:37 +0530, shubham k said:
I want to work on x86 architecture. I am not sure how to go about unit testing. I can use qemu for testing but i find kernel on x86 architecture too big to compile. How i can get the smaller size kernel on x86 architecture?
'make localmodconfig' is your friend. Just make sure you plug in all your USB devices at least once after rebooting, but before running it, so their modules will be probed - localmodconfig parses (among other things) the output of lsmod.
participants (4)
-
Hao Lee -
Mulyadi Santosa -
shubham k -
Valdis.Kletnieks@vt.edu