This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3354: Matrix issue in LIDD mode

Part Number: AM3354

Tool/software: Linux

Hi team,

I use the AM3354's lidd mode with the ra8875 lcd controller, which can already generate fb0 in the /dev/ folder and display the rootfs screen, but in order to distinguish my ra8875 driver, in the device tree, I changed the LCD name from "tilcdc" to "ra8875lcd".

I want to further display the graphics made by QT creator on the LCD, so I chose SDK-04.01.00.06, but there are some problems.

I posted some messages executed in SDK-04.01.00.06 below. Can you please assist in the analysis?

By the way, I can display the Matrix screen on the host side.

 

root@smarct335x:~# /etc/init.d/matrix-gui-2.0 start

/home/root

Removing stale PID file /var/run/matrix-gui-2.0.pid.

Starting Matrix GUI application.

 

root@smarct335x:~# matrix_browser -qws http://localhost:80

failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory

failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory

loaded module : gbm_pvr.so

found valid GBM backend : gbm_pvr.so

PVR:(Error): [  854->  854] <              gbm_pvr_create_device():585|ERROR> Failed to create DBM device: No such device [0, ]

Could not create GBM device (No such device)

Could not open device /dev/dri/card0 - aborting!

Aborted (core dumped)

 

root@smarct335x:~# modetest

trying to open device 'i915'...failed

trying to open device 'radeon'...failed

trying to open device 'nouveau'...failed

trying to open device 'vmwgfx'...failed

trying to open device 'omapdrm'...failed

trying to open device 'exynos'...failed

trying to open device 'tilcdc'...failed

trying to open device 'msm'...failed

trying to open device 'sti'...failed

trying to open device 'tegra'...failed

trying to open device 'imx-drm'...failed

trying to open device 'rockchip'...failed

trying to open device 'atmel-hlcdc'...failed

trying to open device 'fsl-dcu-drm'...failed

trying to open device 'vc4'...failed

trying to open device 'virtio_gpu'...failed

no device found

 

root@smarct335x:~# kmscube

trying to load module omapdrm...failed.

trying to load module tilcdc...failed.

trying to load module i915...failed.

trying to load module radeon...failed.

trying to load module nouveau...failed.

trying to load module vmwgfx...failed.

trying to load module exynos...failed.

could not open drm device

failed to initialize DRM

 

  • Hi Eason,

    This sounds related to another question on the forum with the same SDK version and LCD chipset.

    It looks like there drivers missing in your filesystem.

    Can you try running the script below, and check if anything looks irregular?  If you have a TI EVM with an LCD, you may want to run the same script on that, with a clean version of the SDK so you can compare against a known good reference.

    #!/bin/sh
    echo "WSEGL settings"
    cat /etc/powervr.ini
    echo "------"
    echo "ARM CPU information"
    cat /proc/cpuinfo
    echo "------"
    echo "SGX driver information"
    cat /proc/pvr/version
    echo "------"
    echo "Framebuffer settings"
    fbset -i
    echo "------"
    echo "Rotation settings"
    cat /sys/class/graphics/fb0/rotate
    echo "------"
    echo "Kernel Module information"
    lsmod
    echo "------"
    echo "Boot settings"
    cat /proc/cmdline
    echo "------"
    echo "Linux Kernel version"
    uname -a

    Regards,
    Mike

  • The information I got is as follows:

    WSEGL settings
    [default]
    #WindowSystem=libpvrws_WAYLAND.so
    ------
    ARM CPU information
    processor       : 0
    model name      : ARMv7 Processor rev 2 (v7l)
    BogoMIPS        : 298.80
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x3
    CPU part        : 0xc08
    CPU revision    : 2

    Hardware        : Generic AM33XX (Flattened Device Tree)
    Revision        : 0000
    Serial          : 0000000000000000
    ------
    SGX driver information
    cat: can't open '/proc/pvr/version': No such file or directory
    ------
    Framebuffer settings

    mode "800x480"
        geometry 800 480 800 480 16
        timings 0 0 0 0 0 0 0
        rgba 5/11,6/5,5/0,0/0
    endmode

    Frame buffer device information:
        Name        : AM335x FB
        Address     : 0x9d100000
        Size        : 819200
        Type        : PACKED PIXELS
        Visual      : TRUECOLOR
        XPanStep    : 0
        YPanStep    : 1
        YWrapStep   : 0
        LineLength  : 1600
        Accelerator : No
    ------
    Rotation settings
    0
    ------
    Kernel Module information
    Module                  Size  Used by
    sha512_generic          9967  0
    sha512_arm             12252  0
    sha256_generic         10178  0
    sha1_generic            2864  0
    sha1_arm_neon           6261  0
    sha1_arm                3862  1 sha1_arm_neon
    md5                     2219  0
    des_generic            17608  0
    cbc                     2388  0
    xfrm_user              22370  2
    xfrm4_tunnel            2040  0
    ipcomp                  2257  0
    xfrm_ipcomp             4311  1 ipcomp
    esp4                    6402  0
    ah4                     5627  0
    af_key                 26776  0
    xfrm_algo               6989  5 xfrm_user,esp4,ah4,af_key,xfrm_ipcomp
    hid_generic             1125  0
    usbhid                 21209  0
    omap_aes_driver        19334  0
    crypto_engine           7098  1 omap_aes_driver
    omap_sham              21950  0
    edt_ft5x06             11588  0
    omap_rng                4759  0
    c_can_platform          6654  0
    rng_core                7584  1 omap_rng
    c_can                   9642  1 c_can_platform
    can_dev                12359  1 c_can
    phy_am335x              2372  2
    phy_generic             5372  1 phy_am335x
    phy_am335x_control      3001  1 phy_am335x
    sch_fq_codel            9115  1
    uio_module_drv          7251  0
    cryptodev              38083  1
    ------
    Boot settings
    console=ttyS3,115200n8 consoleblank=0 mem=512M root=/dev/nfs nfsroot=192.168.0.1:/home/fwteam-ubuntu/rootfs/sdk-smarct-805,acdirmin=60,proto=tcp,nfsvers=3,nolock rw ip=192.168.0.11:192.168.0.1:192.168.0.0:255.255.255.0::eth0:off
    ------
    Linux Kernel version
    Linux smarct335x 4.9.41-g98d1c43705 #1 PREEMPT Mon Aug 5 12:47:59 CST 2019 armv7l GNU/Linux

  • Hi Eason,

    LIDD mode is not supported by the tilcdc driver. You will need to add proper support for it in the driver, which is causing the issues you are seeing. We do not have experience with it and hence unfortunately we cannot help you with any suggestions here.

    Regards,

    Manisha

  • Ok, I understand, thank you for your reply.