Introduction

This application note provides steps to run heterogeneous asymmetric multiprocessing(AMP) system (Linux + RT-Thread) on StarFive new generation SoC platform - JH-7110. The code has been released to StarFive Linux 6.6 SDK.

JH-7110 includes 4 main CPUs. The heterogeneous AMP to be implemented in this application note is to use one CPU run RT-Thread RTOS, 3 CPUs run Linux OS, thus build a dual system AMP architecture with 3 CPUs run Linux OS and 1 CPU runs RT-Thread RTOS. Among them, real-time processes are run on the CPU of RTOS, and some real-time drivers can run for data collection. At the same time, data can be sent back to Linux through shared memory, and various non real-time applications can be run on the Linux side. This allows the system to ensure real-time performance and run powerful applications using the Linux universal OS, which becomes an important architecture in industrial systems.

This approach can solve the tricky problem of RT-Linux cannot achieve a maximum schedule delay of less than 15us. Because in JH-7110, the CPU core (running RTOS) can run at 1.5GHz and its' maximum schedule delay can run within 15us. If users need to run Linux+other RTOS or Linux+Baremetal on JH-7110, this article can help them easily port the RT-Thread repository driver to the required RTOS or Baremetal.