remoteproc
More info
- Creator
- Ohad Ben-Cohen
- Released
- 2012
- Type
- Kernel framework
- Spec
- docs.kernel.org
The Linux kernel framework for loading, starting and stopping firmware on another processor in the same chip.
Plenty of SoCs carry a Cortex-M, a DSP or a Cortex-R next to the application cores, and something has to give them a program. remoteproc arrived in Linux 3.4 in 2012, written for Texas Instruments' OMAP parts. Firmware is a plain ELF file in /lib/firmware with a resource table describing the shared memory and virtio channels it expects. The kernel carves out the memory, loads the segments and lets the coprocessor out of reset.
From userspace, writing start or stop to /sys/class/remoteproc/remoteproc0/state is all it takes. The framework also deals with crashes: if the coprocessor dies it can be restarted and a core dump captured. RPMsg then handles the conversation between the processors, which is why the two are almost always mentioned together.