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.

Weston and Embedded Wizard on DRA726

Other Parts Discussed in Thread: DRA726

I need to know what backend  I should use to run my Embedded Wizard app.

Our board will be using a DRA726

Since I do not have any hardware yet I am using the TMDSEV572X evaluation board. I recreated the filesystem because the default one is for the automotive EVM which I do not have. Which backend should I use and what would be the correct command to load the application, I do not want any desktop, just to run my app.

I used the latest released automotive SDK and bitbaked for the correct EVM board. It was done after work last night, worked without a problem, it had a few warning but no errors. I set the machine to be am57xx-evm and ran "bitbake arago-core-tisdk-image"

Right now for the test I have a keyboard connected to a USB port and run "weston --backend=drm-backend.so" and thru ssh I run my app and it works as expected but on the EVM it loads some sort of empty desktop with an icon for a terminal. I can also run the terminal app and then load the app as I do in ssh.

Here are the libraries that I need to use.

AM_LDFLAGS = -lGLESv2 -lEGL -lOpenEGL_EmWiz -lm -ldl -lpthread -lwayland-server \
             -lwayland-client -lpvr_wlegl -lrt -lpthread -ltiipc \
              -ltiipcutils -ltitransportrpmsg

My CAN support runs on the Cortex M4 and Embedded wizard uses wayland to display the graphic.  libOpenEGL_EmWiz is the library I created to support Embedded Wizard applications.

My rootfs is on a 16G Samsung micro SD card.

I did have a mysterious problem with the new rootfs. At first it would not boot and timed out as if there was no rootfs. After the 4th try I got a screen with matrix stuff. After a reboot (I wanted to see the log)  I get a brief graphic screen with the terminal icon on top and then I get a Please Wait message. This eventually goes away and I end up on the command line.

I am curious as to what happened. I can shutdown completely and power again. The matrix screen never comes back. I had no such issue with rev 2. Is that weston crashing and hozing something?

When I try to run weston without an argument I get his.

root@am57xx-evm:~# weston
Date: 2016-09-08 UTC
[16:29:44.912] weston 1.9.0
               http://wayland.freedesktop.org
               Bug reports to: bugs.freedesktop.org/enter_bug.cgi
               Build: 1.8.93-2-gb05cdb8 configure.ac: bump to version 1.9.0 for the official release (2015-09-21 18:11:26 -0700)
[16:29:44.912] OS: Linux, 4.4.14-g2cbc3a70eb, #1 SMP PREEMPT Wed Sep 7 20:59:49 EDT 2016, armv7l
[16:29:44.913] Using config file '/etc//weston.ini'
[16:29:44.913] Loading module '/usr/lib/weston/wayland-backend.so'
[16:29:44.913] Failed to load module: /usr/lib/weston/wayland-backend.so: cannot open shared object file: No such file or directory

Content of  /etc/weston.ini

[shell]
locking=false
animation=zoom
panel-location=top
startup-animation=fade

[screensaver]
# Uncomment path to disable screensaver
#path=@libexecdir@/weston-screensaver

What would be the command to reload the matrix stuff?

Obviously the default one to load is wrong since the backend that it mentions doesn't exist.

I doesn't bother me that much that the matrix has issues since I have no intention of using it but what bothers me is that it seems to point out to some issues with weston.

Michel

  • Hi Michel,

    Your request is raised to SW experts.

    Best regards
    Lucy
  • Michel,

    It would be best if you use weston --tty=1 --backend=drm-backend.so

    Regards,
    Subhajit
  • It only starts the weston backend, what do I need to do to run for example WizApp with no user intervention. The app requires weston to be loaded first. If I load this in the background and then try to run my app it doesn't work. I can run it using ssh but that is not the way it is going to be for the customer.
  • Michel,

    Can you please clarify what wizApp is?

    I presume it is a weston client application. Am I correct?

    Normally, Any weston client can launch after weston is running in the background, and no ssh is required.

    Regards,

    Subhajit

  • It is a binary that makes calls to the wayland and EGL libraries.

    Here are the includes

    #include <wayland-client.h>
    #include <wayland-server.h>
    #include <wayland-client-protocol.h>
    #include <wayland-egl.h>
    #include <EGL/egl.h>

    The app gets the framebuffer for the Embedded wizard graphic library.

    Tara wrote the code to access the framebuffer. I add my code to it, they provide us with a tool to generated the screens.

    I could get it to work from the Matrix

    and from ssh but not at the command prompt (keyboard connected to USB)

    How do you run this with a script that would run from the command line or  loaded on power up?

    If I do this from ssh it works fine but when I issue the command on the command line at the EVM I am stuck with a desktop where I can open a terminal and it works but I do not want that.

    This command works on ssh but not on the command line, the background part is ignored

    weston --tty=1 --backend=drm-backend.so &

    There is only one application that runs, I do not want a desktop. I may run some other function from the Embedded wizard app like 3D. Basically the Embedded Wizard app is my desktop.



  • Michel,

    Sorry for  the delayed response, but I had to spend some time understanding what is embedded wizard before answering your question.

    I am not sure why you might not get weston to run in the background. Can you send me a console log after you start weston with a trailing "&"?

    Also, in case you have already solved the problem of how to run weston in the background, can you launch weston in the background and then weston-simple-egl in the foreground?

    Regards,

    Subhajit