Linux Kernel Development
  • Introduction
  • Linux Kernel Development Environment
    • Git Source Code Management
    • Docker
  • Linux Kernel Development Process
    • A Guide To The Linux Kernel Development Process
  • Linux Kernel Compilation
  • Linux Kernel Modules
  • Linux Kernel Build System
    • Compilation Kernel Object
    • Compilation Built-In
  • Linux Kernel Patch
    • Patchset
  • Linux Kernel Developer
Powered by GitBook
On this page
  • Linux Kernel Source Code
  • Workstation Setup

Linux Kernel Development Environment

PreviousIntroductionNextGit Source Code Management

Last updated 7 years ago

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.”

Linux Kernel Source Code

3 Linux Kernel Source Code Repositories

    • git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

    • git@github.com:torvalds/linux.git

    • Tar.Gz

Workstation Setup

root@workstation:~# apt-get update
root@workstation:~# apt-get upgrade
root@workstation:~# apt-get install linux-headers-$(uname -r) kernel-package libncurses5 libncurses5-dev git libelf-dev
user@workstation:~$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Cloning into 'linux'...
remote: Counting objects: 5396825, done.
remote: Compressing objects: 100% (2538/2538), done.
remote: Total 5396825 (delta 2876), reused 3072 (delta 2127)
Receiving objects: 100% (5396825/5396825), 984.15 MiB | 6.28 MiB/s, done.
Resolving deltas: 100% (4522724/4522724), done.
Checking connectivity... done.
Checking out files: 100% (59844/59844), done.
user@workstation:~$
user@workstation:~$ cd linux
user@workstation:~/linux$
user@workstation:~/linux$ ls
arch        crypto       init     MAINTAINERS      net       System.map
block        Documentation  ipc        Makefile         README    tools
built-in.o  drivers       Kbuild   mm             samples   usr
certs        firmware       Kconfig  modules.builtin  scripts   virt
COPYING     fs           kernel   modules.order    security  vmlinux
CREDITS     include       lib        Module.symvers   sound     vmlinux.o
user@workstation:~/linux$
HOWTO do Linux kernel development
Flex & Bison Are Now Needed To Build The Linux Kernel; Linux 4.16 Can Also Be Snap'ed
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
https://github.com/torvalds/linux
https://www.kernel.org/