You can download the latest Linux/RK releases from the following pages.
- 2017-04-15 - Linux/RK v1.6 (vLLC, vColoring, Virt/RK)
- 2015-04-23 - Linux/RK for x86_64
- 2013-07-05 - Linux/RK for ARM Cortex-A9 (ODROID dev board - Samsung Exynos 4412)
Linux/RK API Documentation¶
You can download Linux/RK API documentation.
- 2013-07-07 version: Download
- Added new APIs to the documentation
- Fixed minor errors
Loading Linux/RK kernel module¶
Linux/RK is implemented as a kernel module
rk.ko that must be loaded before executing any application that requires the RK APIs. If the module is not loaded, all the RK APIs will return -1 as an error condition.
The RK module is in
LinuxRK/mcrkmod/. Please note that in order to load it, you need a modified version of the Linux kernel (distributed together with the RK) that exports some hooks used by the module.
To use Linux/RK:
- Configure and compile the kernel image
- go to the Linux/RK directory (e.g.,
'make config/menuconfig', ensuring that the Linux/RK kernel option is set. You can also use preconfigured files in the Linux/RK directory.
-joption to speed up compilation on multi-core platforms)
- Install the kernel image and boot it
- copy the kernel image to the boot directory (e.g.,
- update your boot loader if necessary (e.g.,
- Configure the RK module (optional)
- go to the
rk_common.hand read the description
- Compile the RK module
- go to the
- Load the module
'sudo insmod rk.ko'
- use a 'mem_size' option for the physical page pool of RK memory reservation (e.g., for 4GB memory pool, sudo insmod rk.ko mem_size=4096)
When you are done with using Linux/RK, the RK kernel module can be unloaded by
'sudo rmmod rk'.
How to build applications with Linux/RK?¶
In order to build an application with Linux/RK APIs, the source code must be written in C and the source file must include
Several example applications can be found in the
Makefile in that directory tells you how to compile RK applications.
Papers on Linux/RK¶
Papers describing various aspects of the design and implementation of the resource kernel can be found at "Publications".