Linux Kernel Development Environment
So, you want to learn how to become a Linux kernel developer? Or you have been told by your manager, “Go write a Linux driver for this device.” HOWTO do Linux kernel development

Linux Kernel Source Code

3 Linux Kernel Source Code Repositories

Workstation Setup

1
[email protected]:~# apt-get update
2
[email protected]:~# apt-get upgrade
3
[email protected]:~# apt-get install linux-headers-$(uname -r) kernel-package libncurses5 libncurses5-dev git libelf-dev
Copied!
1
[email protected]:~$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
2
Cloning into 'linux'...
3
remote: Counting objects: 5396825, done.
4
remote: Compressing objects: 100% (2538/2538), done.
5
remote: Total 5396825 (delta 2876), reused 3072 (delta 2127)
6
Receiving objects: 100% (5396825/5396825), 984.15 MiB | 6.28 MiB/s, done.
7
Resolving deltas: 100% (4522724/4522724), done.
8
Checking connectivity... done.
9
Checking out files: 100% (59844/59844), done.
Copied!
Copied!
1
[email protected]:~/linux$ ls
2
arch crypto init MAINTAINERS net System.map
3
block Documentation ipc Makefile README tools
4
built-in.o drivers Kbuild mm samples usr
5
certs firmware Kconfig modules.builtin scripts virt
6
COPYING fs kernel modules.order security vmlinux
7
CREDITS include lib Module.symvers sound vmlinux.o
Copied!