Skip to main content

Kernel Development

Prerequisites

You need to have Visual Studio Code and Docker environment set up in advance, then use Dev Container to run the Kernel compilation environment.

Reference Tutorial

You can follow the tutorial below to complete the environment setup for Kernel development.

Download Kernel Source Code

Use the git clone command to clone the Kernel source code.

Linux@host$
git clone --recurse-submodules <git_repo_url>

Replace <git_repo_url> with: https://github.com/radxa-pkg/linux-a733.git

Start Development Environment

Open the Kernel source code directory with Visual Studio Code: The Dev Container extension will usually automatically detect the configuration file in the folder and prompt you to reopen in the container development environment.

tip

When starting the development environment for the first time, Dev Containers will automatically download and install dependencies. Please be patient as this may take some time.

  1. Click the Remote option in the bottom-left corner
  2. Select the Reopen in Container option

Compile Kernel

After starting the development environment, use the make deb command to compile the Kernel.

PC@host$
make deb