Porting Kernel#

This module talks about Porting Linux kernel to custom boards.

This could be outlined as two steps:

  • Port the kernel with minimal DTS

  • Enable peripheral support

Start with a minimal devicetree which only includes the fundamental components, such as memory, core regulators, and console uart pinmux. A minimal devicetree allows the board to boot into the Linux prompt with the least interference from peripherals. Next, enable peripheral support one peripheral at a time. The peripherals are enabled in two different places: the kernel configuration options, and the devicetree bindings.

The following sections explain the two porting steps in detail.