Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:edge-2l:applications:rkrga

This is an old revision of the document!


Edge-2L RGA (Raster Graphics Accelerator)

The Edge-2L includes an onboard RGA (Raster Graphics Accelerator) hardware unit for accelerating 2D graphics operations such as cropping, scaling, rotation, and format conversion.

This accelerator can be utilized for efficient image processing tasks.

Refer to the following table for supported runtime platforms:

board Linux Kernel (BSP) OS
Edge-2L 6.1 Ubuntu 24.04

Check RGA Driver Version

Verify the installed RGA driver version:

$ sudo cat /sys/kernel/debug/rkrga/driver_version

Get Example Source Code

Clone the demonstration repository from GitHub: sravansenthiln1/rga-demos

$ git clone https://github.com/sravansenthiln1/rga-demos
$ cd rga-demos

Run the Examples

The following steps use the rga-crop example to demonstrate the workflow.

Enter the Example Directory

Navigate to the crop example source directory:

$ cd src/rga-crop

Compile the Application

Build the example using the provided Makefile:

$ make

Run the Application

1. Copy the sample input image for this example:

$ cp ../../samples/input_rgba.bmp .

2. Execute the compiled program:

$ ./main

Upon successful execution, the processed output image will be saved as output.bmp in the current directory.

Last modified: 2026/02/04 22:35 by gray