Jump to content
Electronics-Lab.com Community

Forlinx AM62x Development Board Display Program: RGB Display and Modification Methods


Recommended Posts

Display is one of the most crucial functions of embedded development board, and being able to support a greater variety and higher specifications display interface, means it can cater to a wider range of usage scenarios. Before leaving the factory, each embedded development board undergoes screen debugging. However, during the customer’s project development process, they may encounter compatibility issues when adapting to non-original screens.

Taking the Folinx Embedded AM62x series OK6254-C development board as an example, it features two display interfaces: LVDS and RGB. It can support up to 2 display controllers and simultaneously output two different screens. This article describes in detail the display scheme of the OK6254-C development board - how RGB is displayed and modified.

AM62x series development board

1. RGB Interface Specification

The embedded OK6254-C development board provides one 24-bit RGB parallel display interface and supports a maximum resolution of WUXGA (1920x1200 @60fps, 165MHz pixels). The 16 bit data interface is led out from the carrier board through the FPC seat, which is suitable for the embedded 7-inch resistance and capacitance touch screen of Forlinx by default, with a resolution of 1024 x600 @ 60 FPS.

If high color detail and realism are required, RGB888 is a better choice. If storage space is limited and there is no high requirement for color representation, then using RGB565 can be considered to save storage resources. At this point, the selection of RGB888 and RGB 565 is involved.

2. Selection and Modification of RGB888 and RGB 565

The modification of OK6254-C device tree is very convenient. We divide the device tree into three parts: kernel device tree, LVDS display device tree and RGB display device tree. To make RGB888 and RGB565 selections and modifications, we need to open the OK6254-C-rgb.dts file as shown below:

AM62x Development Board Display Program: RGB Display and Modification Methods

In the first red box in the image above, we can modify the RGB display to RGB888 or RGB565, the default is rgb565. The default resolution of the red box at the bottom is 1024*600, which can be modified manually by following the screen manual. The maximum resolution supported is 1920x1200. In addition, the OK6254-C development board also supports 800 * 480 screen resolution, the next step is to introduce the screen selection operation.

Open OK6254-C-rgb-800_480.dts

You can modify the resolution and the screen parameters suitable for the screen in the red box section of the picture below:

Open OK6254-C-rgb-800_480

(1) Compile:

Because we only modify the device tree, we don't need to compile it all, which is not only time-consuming but also laborious. After compiling the kernel, a new Image and multiple device tree files will be generated in the images directory. Here we only need to compile the kernel separately.

  • Switch directory: cd OK6254-linux-sdk/
  • Execute the environment variable:. build.sh
  • Execute instructions to compile the kernel separately: sudo ./build.sh kernel
  • Package all the device tree files and replace them in the /boot/ directory of the board, then sync to save and reboot. scp images/OK6254-C*  [email protected]:/boot/

Modification is finished here.

(2) Screen Selection Stage:

We have modified the corresponding file. How should we select the screen after replacing it? At present, there are three kinds of screen-switching control methods: kernel device tree designation, Uboot menu dynamic control, Forlinx Desktop interface and Uboot menu application. Today, I will briefly introduce the dynamic control of Uboot menu.

During Uboot, pressing the space bar will take you to the Uboot menu. There are three options in the menu:

Enter 0 to enter uboot Command the line;

Enter 1 to restart Uboot;

Enter 2 to enter the Display Configuration menu.

Forlinx AM62x Development Board Display Program: RGB Display and Modification Methods

There are three options in the menu:

Enter 0 to return to the previous menu;

Enter 1 will toggle what option 1 displays to configure Screen 1 LVDS; Note: Screen 1 supports single LVDS, dual LVDS, and off (i.e., LVDS off)

Enter 2 to toggle the display of option 2 to configure the Screen 2 LCD. Note: Screen 2 supports 1024 * 600 resolution LCD screen, 800 * 480 resolution LCD screen and off (i.e. RGB off)

When selecting the LCD screen, we enter 2 and it's OK.

Forlinx AM62x Development Board Display Program: RGB Display and Modification Methods

After selecting the desired configuration, enter 0 to return to the previous menu level. Restart Uboot or enter the command line to start the system, which can make the screen settings take effect. For other resolution screens, please modify the kernel device tree screen parameters according to the screen parameter requirements.

So far, we have finished the introduction of RGB display scheme. Of course, other display interfaces are similar. You can pay attention to the follow-up Application Notes.

Originally published at www.forlinx.net.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...