Linux remoteproc: What It Is and How to Use It

Many embedded SoCs combine application processors that run Linux with smaller cores designed for real-time or dedicated work. remoteproc is the Linux framework for managing those other processor cores: loading their firmware, starting and stopping them, and handling platform-specific lifecycle details.

This pattern is available across vendors. For example, an NXP i.MX 8M Plus can pair Linux on Cortex-A53 cores with firmware on its Cortex-M7, while a TI AM62x can pair Linux on Cortex-A53 cores with firmware on its M4F. Linux can handle networking and user interfaces while the auxiliary core handles a dedicated workload.

What remoteproc does

The Linux remoteproc framework gives Linux a common way to manage a processor that is not running Linux. Depending on the SoC and its driver, it can:

  • Load firmware into the remote core’s memory.
  • Start and stop the core.
  • Read firmware resource information, such as memory regions and communication resources.
  • Report remote-core crashes and expose status for debugging.

The platform still needs hardware support and correct configuration: a remoteproc driver, device-tree description, memory and peripheral assignments, and firmware built for that processor. remoteproc does not make arbitrary firmware compatible with a board.

remoteproc, RPMsg, and OpenAMP are different

These terms are related, but they solve different parts of the system:

ComponentRole
remoteprocManages the remote core’s firmware and lifecycle from Linux.
RPMsgProvides message-based communication between Linux and the remote firmware.
OpenAMPA common firmware-side framework for RPMsg and related services.

You can use remoteproc to start firmware that communicates through shared memory, a mailbox, another driver, or no ongoing IPC at all. RPMsg is one option when the two processors need a structured message channel. See the practical RPMsg guide for message patterns and Linux/MCU examples.

Why use it?

Separate processors let each part of a product do work suited to it:

  • Linux application cores: run processes, networking, filesystems, update services, and user interfaces.
  • MCU or DSP cores: handle tight control loops, precise sampling, audio processing, or peripheral work that should not depend on Linux scheduling.

remoteproc avoids reinventing firmware loading and processor startup separately in every Linux application. Where the platform supports it, Linux can start the auxiliary core and then expose its communication channel to drivers or applications.

Use it when your SoC has a supported remote core and your design benefits from assigning it a distinct workload. It is not needed just because a chip has multiple Linux CPU cores; those normally run under Linux’s SMP scheduler. Nor is it a replacement for a normal Linux device driver when Linux should directly own and control a peripheral.

Where it is used

remoteproc is mainly used in heterogeneous multicore SoCs (often called AMP systems): a Linux-capable application processor plus one or more processors running separate firmware. Examples include Linux paired with a Cortex-M core, DSP, or other auxiliary processor.

The two sides typically need agreed ownership of hardware resources. If they exchange data, the board and firmware may also need shared memory and an interrupt or mailbox for notifications. These are platform-specific requirements, not automatic features of the framework.

Examples from different vendors

The same remoteproc model appears on several Linux-capable SoC families. The exact cores, firmware controls, and Linux support vary by part and software release.

SoC familyExample processor splitIllustrative workload
NXP i.MX 8M PlusLinux on Cortex-A53; firmware on Cortex-M7Keep a control or sensor task on the M7 while Linux handles the application.
TI AM62xLinux on Cortex-A53; remote firmware on the M4F coreIsolate a dedicated real-time or device-control task from Linux application work.

These are examples of publicly documented platform capabilities, not drop-in interchangeable configurations. Check the SoC’s Linux and board documentation to confirm which core is managed by Linux remoteproc and whether that core is available in the chosen boot and security configuration.

Example: NXP i.MX 8M Plus with Linux and Cortex-M7 firmware

A common i.MX 8M Plus arrangement is Linux on the Cortex-A53 application cores and an RTOS or bare-metal application on the Cortex-M7. For instance:

  1. The M7 samples a sensor at a fixed rate and runs a short control loop.
  2. Linux sends configuration updates and receives measurements or status.
  3. Linux handles the user interface, logging, connectivity, and software updates.

When the board’s remoteproc driver and firmware configuration support it, Linux can load and start the M7 firmware. OpenAMP/RPMsg can provide the messaging channel between Linux and the M7; the exact memory layout, mailbox, device-tree setup, firmware format, and startup sequence depend on the board and software release.

Inspect the remote processors

On a Linux system with remoteproc support, first see which remoteproc devices are registered:

ls /sys/class/remoteproc/

for r in /sys/class/remoteproc/remoteproc*; do
    [ -e "$r" ] || continue
    echo "$r: $(cat "$r/name") ($(cat "$r/state"))"
done

Do not assume the M7 is always remoteproc0; identify it by its reported name. If the directory is absent, check the kernel configuration, device tree, and platform remoteproc driver.

Load and start firmware

The following is a generic sysfs example. It assumes the firmware is installed where the platform’s Linux firmware loader can find it, and that this remoteproc device supports choosing firmware through its firmware attribute:

RPROC=/sys/class/remoteproc/remoteproc0

# Set the firmware while the processor is stopped.
echo m7-control.elf | sudo tee "$RPROC/firmware"

# Start it, then check the state and kernel log.
echo start | sudo tee "$RPROC/state"
cat "$RPROC/state"
dmesg | tail -n 40

The ELF file must be built for the correct core and match the platform’s memory and resource configuration. On platforms using remoteproc resource tables, the firmware must describe the resources it needs. Firmware names, sysfs behavior, and whether firmware is loaded by Linux at all can vary; follow the board vendor’s instructions rather than copying this sequence blindly.

To stop the firmware:

echo stop | sudo tee "$RPROC/state"

Do not stop or replace a core while another service depends on it. Check the platform’s recovery and shutdown behavior before using these commands in a production product.

Example workload split

For a small motorized device, keep the fast control loop on the M7 and let Linux manage higher-level policy:

Linux application:
  set target speed -------> M7 control firmware
  display current status <- M7 control firmware

M7 firmware:
  sample encoder and current
  update control output on schedule
  report measurements and faults

The M7 should continue its time-sensitive loop without waiting for Linux messages. Linux can request a new target or read status over RPMsg, while the firmware validates the request and reports whether it was accepted or applied. A message transport does not itself guarantee timing or successful execution; define timeouts, acknowledgements, and safe behavior for communication loss.

Practical checklist

  • Confirm the exact SoC, board, kernel, device tree, and vendor software release support the remote core.
  • Build firmware for the right processor and verify its memory map and resource table requirements.
  • Assign peripherals and shared memory deliberately; avoid letting Linux and the remote firmware control the same resource unexpectedly.
  • Start with a simple firmware that boots and reports status before adding a complex IPC protocol.
  • Keep hard real-time work on the MCU. Linux-to-MCU messaging is for coordination, not a hard real-time guarantee.
  • Define what happens when firmware crashes, does not start, or stops responding.

In short

remoteproc manages a remote processor; RPMsg carries messages to or from it. Across platforms such as NXP i.MX 8M Plus and TI AM62x, it can let Linux manage a supported auxiliary core while Linux applications handle system-level tasks. It is most useful when the hardware, firmware, and Linux configuration are designed together—and when each processor has a clear job.

References