* contribution in kernel community & testing kernel
@ 2016-03-23 10:36 shubham k
2016-03-23 10:58 ` Mulyadi Santosa
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: shubham k @ 2016-03-23 10:36 UTC (permalink / raw)
To: kernelnewbies
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160323/2f318fa6/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* contribution in kernel community & testing kernel
2016-03-23 10:36 contribution in kernel community & testing kernel shubham k
@ 2016-03-23 10:58 ` Mulyadi Santosa
2016-03-23 13:22 ` Hao Lee
2016-03-24 0:15 ` Valdis.Kletnieks at vt.edu
2 siblings, 0 replies; 4+ messages in thread
From: Mulyadi Santosa @ 2016-03-23 10:58 UTC (permalink / raw)
To: kernelnewbies
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 at 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_campaign=sig-email&utm_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160323/880e1b5b/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* contribution in kernel community & testing kernel
2016-03-23 10:36 contribution in kernel community & testing kernel shubham k
2016-03-23 10:58 ` Mulyadi Santosa
@ 2016-03-23 13:22 ` Hao Lee
2016-03-24 0:15 ` Valdis.Kletnieks at vt.edu
2 siblings, 0 replies; 4+ messages in thread
From: Hao Lee @ 2016-03-23 13:22 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* contribution in kernel community & testing kernel
2016-03-23 10:36 contribution in kernel community & testing kernel shubham k
2016-03-23 10:58 ` Mulyadi Santosa
2016-03-23 13:22 ` Hao Lee
@ 2016-03-24 0:15 ` Valdis.Kletnieks at vt.edu
2 siblings, 0 replies; 4+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2016-03-24 0:15 UTC (permalink / raw)
To: kernelnewbies
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160323/65794378/attachment.bin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-24 0:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23 10:36 contribution in kernel community & testing kernel shubham k
2016-03-23 10:58 ` Mulyadi Santosa
2016-03-23 13:22 ` Hao Lee
2016-03-24 0:15 ` Valdis.Kletnieks at vt.edu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).