Skip to main content
Ara.1
Associate III
Jul 21, 2020 12:27 PM UTC
Question

stm32mp1 simple frame buffer

i have following yocto build configuration

Build Configuration:

BB_VERSION          = "1.42.0"

BUILD_SYS           = "x86_64-linux"

NATIVELSBSTRING     = "universal"

TARGET_SYS          = "arm-openstlinux_weston-linux-gnueabi"

DISTRO              = "openstlinux-weston"

DISTRO_VERSION      = "2.7-snapshot-20200721"

TUNE_FEATURES       = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"

TARGET_FPU          = "hard"

DISTRO_CODENAME     = "warrior"

GCCVERSION          = "8.%"

need to what are the simple way to populate /dev/fb0, and draw a simple image RGB888 image , as i have parallel lcd RGB 24 bit display,

dont know what to add in kernel configuration, uboot level

any reference dtsi and more input

would be helpful

This topic has been closed for replies.

6 replies

Olivier GALLIEN
ST Technical Moderator
Jul 24, 2020 6:55 AM UTC

Hi @Ara.1​ 

First I notice you are using DISTRO_CODENAME     = "warrior" which is not a supported distro by ST ( thud or dunfell)

For question about display did you already browse our wiki documentation ?

Guess some page may help you :

https://wiki.st.com/stm32mpu/wiki/DRM_KMS_overview

 LTDC device tree configuration and DSI device tree configuration

Hope it help

Olivier

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Ara.1
Ara.1Author
Associate III
Jul 30, 2020 3:52 AM UTC

Hi Oliver

attached is modtest and necessary log

following is the dts configuration

   panel-rgb@0 {

      compatible = "okaya,rs800480t-7x0gp", "simple-panel";

   pinctrl-names = "default", "sleep";

   pinctrl-0 = <&ltdc_mp1som_pins_a>;

   pinctrl-1 = <&ltdc_mp1som_sleep_pins_a>;

      status = "okay";

      port {

         panel_in_rgb: endpoint {

            remote-endpoint = <&ltdc_out_rgb>;

         };

      };

   };

/* disable DSI panel */

&dsi {

   status = "disabled";

};

&ltdc {

   status = "okay";

   port {

      ltdc_out_rgb: endpoint@0 {

      reg = <0>;

         remote-endpoint = <&panel_in_rgb>;

      };

   };

};

i can able to a white blank screen,

a. simple panel is getting probed successfully

anything else driver or configuration is missing , please let me know

Ara.1
Ara.1Author
Associate III
Aug 3, 2020 11:48 AM UTC

attached is the drm log,

please let me know whats happening, still display is not up

Qin.Bo
Visitor II
Sep 17, 2020 9:50 AM UTC

hi, Olivier GALLIEN

I can display ok by drm with rgb888 lcd on stm32mp153, and "/dev/dri/card0" is ok.

but you know, stm32mp153 don't have gpu

I want running QT on stm32mp153 with "/dev/fb0"

so, how to create the "/dev/fb0"?

I try to modify de devicetree, but it still can't work well

Have you test "/dev/fb0" ok ,before? and how to modify?

thanks

​

VRoma.2
Associate II
Jan 12, 2022 3:43 PM UTC

There is really no way to use simple framebuffer on mp151/153 devices?

​

DRM is the only ​method?

AndreyK
Associate
May 30, 2022 5:55 AM UTC

Look at CONFIG_DRM_FBDEV_EMULATION kernel build config param