4.2. Porting KernelΒΆ

Porting Linux kernel to custom boards 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, so that the board can boot into Linux prompt with least interference from peripherals. Then enable peripheral support one at a time. The effort of enabling peripherals is in two areas, kernel configuration options and devicetree bindings.

The following sections explain the two porting steps in details.