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: How to configure the arago-base-tisdk-image-am335x file system to support GPU in ti-pro-sdk-335x-evm-02.00.01.07

Part Number: AM3354

Tool/software: Linux

hi ,I would like to use arago-base-tisdk-image-am335x this file system, support GPU, because it is smaller!

I installed the GPU driver from SDK 2.0.00.07 /board-support/extar-drivers/omapdrm-pvr-1.9.2253347
I copied some of the libraries needed from tisdk-rootfs-image-am335x-evm.
I installed the compiled QT5.5.0 library

Insmod omapdrm_pvr.ko   then ./usr/bin/pvrsrvinit

But when I run QT app, it will appear
  ./qtapp:/lib/libstdc++.so.6: no version information available (required by /usr/lib/libPVRTrace.so).

what should I do?

  • Hello user731153,

    Can you try, whether the ldconfig command will take any affect?

    Best regards,
    Kemal

  • hi :

    ldconfig: /lib/libstdc++.so.6.0.20-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

    ldconfig: /lib/libstdc++.so.6 is not a symbolic link

    ldconfig: /usr/lib/libGLES_CM.so is not a symbolic link

    ldconfig: /usr/lib/libGLESv2.so is not a symbolic link

    ldconfig: /usr/lib/libGLESv1_CM.so is not a symbolic link

    ldconfig: /usr/lib/libGLESv2.so.1 is not a symbolic link

    ldconfig: /usr/lib/libGLESv1_CM.so.1 is not a symbolic link

    Then I configured their soft links

    ln -s libstdc++.so.6.0.20 libstdc++.so.6

    ln -s libGLES_CM.so.1 libGLES_CM.so

    ln -s libGLESv1_CM.so.1 libGLESv1_CM.so

    ln -s libGLESv2.so.1 libGLESv2.so

    ln -s libGLESv2.so.1.9.6.0 libGLESv2.so.1

    ln -s libGLESv1_CM.so.1.9.6.0 libGLESv1_CM.so.1

    APP can run, but it breaks down!

    root@am335x-evm:/usr/qt# ./qtapp
    QML debugging is enabled. Only use this in a safe environment.
    PVR: Hint: Setting WindowSystem to libpvrDRMWSEGL_FRONT.so


    WARNING: Config file not found. Tried: pvrtraceconfig.json

    WARNING: Recording Aborted. Exiting.

    [ 29.291901] ------------[ cut here ]------------
    [ 29.296603] WARNING: CPU: 0 PID: 6 at mm/page_alloc.c:6523 free_contig_range+0xa0/0xb8()
    [ 29.305336] 375 pages are still in use!
    [ 29.309198] Modules linked in: ipv6 cryptodev(O) musb_dsps musb_hdrc udc_core usbcore evdev pm33xx omapdrm_pvr(O) omap_rng rng_core musb_am335x rtc_omap omap_wdt leds_gpio gpio_keys
    [ 29.325943] CPU: 0 PID: 6 Comm: kworker/u2:0 Tainted: G O 4.1.13-g8dc6617 #2
    [ 29.334386] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 29.340533] Workqueue: tilcdc flip_worker
    [ 29.344710] Backtrace:
    [ 29.347200] [<c0012b18>] (dump_backtrace) from [<c0012d38>] (show_stack+0x18/0x1c)
    [ 29.355018] r7:c07c2240 r6:0000197b r5:00000009 r4:00000000
    [ 29.360734] [<c0012d20>] (show_stack) from [<c06428ac>] (dump_stack+0x20/0x28)
    [ 29.368196] [<c064288c>] (dump_stack) from [<c0037dc0>] (warn_slowpath_common+0x7c/0xb4)
    [ 29.376349] [<c0037d44>] (warn_slowpath_common) from [<c0037e30>] (warn_slowpath_fmt+0x38/0x40)
    [ 29.385251] r8:c08b2580 r7:00000177 r6:c090d5c4 r5:0009eb77 r4:c07c292c
    [ 29.392042] [<c0037dfc>] (warn_slowpath_fmt) from [<c00c5be8>] (free_contig_range+0xa0/0xb8)
    [ 29.400513] r3:00000177 r2:c07c292c
    [ 29.404274] r4:00000000
    [ 29.406834] [<c00c5b48>] (free_contig_range) from [<c0106224>] (cma_release+0x94/0xbc)
    [ 29.415000] r9:de36d000 r8:dea00000 r7:dd8ee810 r6:00000001 r5:c090e3fc r4:0009ea00
    [ 29.422849] [<c0106190>] (cma_release) from [<c0406940>] (dma_release_from_contiguous+0x34/0x3c)
    [ 29.431832] r5:0044e800 r4:00177000
    [ 29.435450] [<c040690c>] (dma_release_from_contiguous) from [<c001af14>] (__arm_dma_free+0x14c/0x1f8)
    [ 29.444884] [<c001adc8>] (__arm_dma_free) from [<c001b010>] (arm_dma_free+0x24/0x2c)
    [ 29.452679] r10:ddf26394 r9:ddf26300 r8:dd9ee834 r7:ddf26388 r6:00000001 r5:c001afec
    [ 29.460573] r4:dc893180
    [ 29.463302] [<c001afec>] (arm_dma_free) from [<c03e7628>] (drm_gem_cma_free_object+0x5c/0x98)
    [ 29.472033] [<c03e75cc>] (drm_gem_cma_free_object) from [<c03cb430>] (drm_gem_object_free+0x30/0x38)
    [ 29.481209] r5:ffffffff r4:dc893180
    [ 29.484946] [<c03cb400>] (drm_gem_object_free) from [<c03c6b24>] (drm_fb_cma_destroy+0xa8/0xb4)
    [ 29.493862] [<c03c6a7c>] (drm_fb_cma_destroy) from [<c03d48cc>] (drm_framebuffer_free+0x54/0x58)
    [ 29.502709] r10:dd9ef358 r9:dd9ef370 r8:dd876000 r7:dd9ee800 r6:ddf26300 r5:dd9ee95c
    [ 29.510598] r4:ddf26304 r3:c03c6a7c
    [ 29.514789] [<c03d4878>] (drm_framebuffer_free) from [<c03d4b94>] (drm_framebuffer_unreference+0x4c/0x80)
    [ 29.524822] r7:dd9ef350 r6:dd877eb8 r5:ddf26300 r4:ddf26300
    [ 29.530735] [<c03d4b48>] (drm_framebuffer_unreference) from [<c03f5848>] (unref_worker+0x28/0x34)
    [ 29.540062] r4:dd9ee8f8
    [ 29.542759] [<c03f5820>] (unref_worker) from [<c03e4c80>] (flip_worker+0xbc/0xe0)
    [ 29.550274] r5:dabb4400 r4:dd877eb8
    [ 29.554136] [<c03e4bc4>] (flip_worker) from [<c004c46c>] (process_one_work+0x12c/0x374)
    [ 29.562404] r10:dd829a00 r9:00000000 r8:dd803a00 r7:dd948f00 r6:00000000 r5:dd9ef358
    [ 29.570312] r4:dd829a00
    [ 29.573016] [<c004c340>] (process_one_work) from [<c004c714>] (worker_thread+0x60/0x5cc)
    [ 29.581139] r10:dd829a00 r9:dd803b60 r8:dd803a00 r7:dd803a10 r6:00000088 r5:dd829a18
    [ 29.589237] r4:dd803a00
    [ 29.591979] [<c004c6b4>] (worker_thread) from [<c0051ae4>] (kthread+0xd4/0xf0)
    [ 29.599234] r10:00000000 r9:00000000 r8:00000000 r7:c004c6b4 r6:dd829a00 r5:dd82d100
    [ 29.607279] r4:00000000
    [ 29.609835] [<c0051a10>] (kthread) from [<c000f928>] (ret_from_fork+0x14/0x2c)
    [ 29.617340] r7:00000000 r6:00000000 r5:c0051a10 r4:dd82d100
    [ 29.623078] ---[ end trace 6b7ac21edd2030d3 ]---

    So I went to configure GPU  create_default_cfg.sh 

    root@am335x-evm:/opt/img-powervr-sdk/PVRHub# ./Scripts/create_default_cfg.sh
    TO_PROFILE has not been defined, assuming TO_PROFILE = 0
    cp: can't stat '/PVRTrace/Recorder/_SKELETON_CONFIG.json': No such file or directory

    OpenGL ES libraries found on the system!
    Changing the base configuration file...
    sed: /PVRTrace/Recorder/pvrtraceconfig.json: No such file or directory
    sed: /PVRTrace/Recorder/pvrtraceconfig.json: No such file or directory
    sed: /PVRTrace/Recorder/pvrtraceconfig.json: No such file or directory
    sed: /PVRTrace/Recorder/pvrtraceconfig.json: No such file or directory
    sed: /PVRTrace/Recorder/pvrtraceconfig.json: No such file or directory
    sed: /PVRTrace/Recorder/pvrtraceconfig.json: No such file or directory
    PVRTrace config file has been updated:
    ./Scripts/create_default_cfg.sh: line 33: /PVRTrace/Recorder/pvrtraceconfig.json: No such file or directory
    ./Scripts/create_default_cfg.sh: line 34: /PVRTrace/Recorder/pvrtraceconfig.json: No such file or directory
    ./Scripts/create_default_cfg.sh: line 35: /PVRTrace/Recorder/pvrtraceconfig.json: No such file or directory

    NOTE: To edit the pvrtraceconfig.json just use a text editor of your choice

    How do I do it? Thank you!

  • it's OK ,the app work well!
    I made a mistake with the ln -s xxx !
    tks!