Monday 9 June 2014

Kick Start for Linux kernel Development

Following are the milestones for Linux kernel development. Use these as an overall guide or steps in kernel development.
  1.  Install any Linux OS such as Ubuntu , Read Hat.(I am using centOS for this article)
  2.  Understand how to install customized kernel.
  3.  Get familiar with some development tools. (Like ctags, cscope, vi editor, gcc compiler).
  4.  Understand Linux kernel basics, building blocks of Linux.
  5.  Understand part of Linux which you want to edit. (eg. FileSystem like ext4)
  6.  Then come series of kernel code modifications and debugging.



Tips:

These are some points I found useful while I was working on kernel.
  • Use as much printk as possible to avoid wastage of time while development. (printk is like printf in c. Major difference is printk prints string in Log file of kernel )
  • Try to avoid getting kernel panic. (I.e. kernel gets hang or misbehave) because it takes lots of time to understand reason why kernel getting panic.
  •  Linux kernel development is work of patience and takes time. Keep  your mind cool!
  •  Don’t go to complete your work in one shot. Divide work small small part and don’t proceed if u doesn’t have enough confidence about part you’re working on.
  •  Best way to understand Linux kernel is going through its code. You just have to copy past code and use most of the inbuilt functions by understanding there use and impact.




No comments:

Post a Comment