Building the RPMsg kernel space example#

This page provides steps to build the sample RPMsg kernel driver.

The kernel space example is in the Linux Processor SDK under samples/rpmsg/rpmsg_client_sample.c

Build the kernel module rpmsg_client_sample:

  • Set up the compiler, clean the kernel sources, and configure the kernel with the default kernel configurations, as documented in the Linux SDK Kernel User’s Guide.

  • Open menuconfig to customize the configuration, as documented in the Linux SDK Kernel User’s Guide.

  • Verify that the kernel configuration is set like this: Kernel hacking > Sample kernel code > Build rpmsg client sample is M

  • Make both the kernel and kernel modules, as documented in the Linux SDK Kernel User’s Guide.

    • We suggest multithreading the “make” command with N different threads (-jN) to speed up the make process.