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/PROCESSOR-SDK-AM335X: Weston launch

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

I have a BeagleBone Black and I tried booting up SDK Linux,

After booting the SDK linux, just "please wait .." message appeared on HDMI monitor. 

also I tried to launch weston via this command in shell:

/etc/init.d/weston start

and then "please wait .." message appeared again and nothing happen.

I checked

http://processors.wiki.ti.com/index.php/Matrix_Users_Guide

and

http://processors.wiki.ti.com/index.php/Processor_Linux_SDK_Graphics_and_Display 

before,

Now my question is that: what should see on monitor after launching weston?

and what should to do to have it, instead of "please wait.."?

Thanks,

Roya.

  • Weston expects an USB pointing device to be connected at launch time. Connect an USB mouse and launch Weston afterwards.
  • Thanks for your response,

    but I connected a USB keyboard before powering up the board.

    and my question yet is:
    what should see on monitor after launching weston?

    and what should to do to have it, instead of "please wait.."?
  • Hello Roya,

    Can you attach the /var/log/weston.log?

    Best regards,
    Kemal

  • Hello Kemal,

    Thanks for your response,

    sure, but that command have many lines of results and I just can see The ending lines on monitor,
    how can I explore them to send you ?(mouse can not work in shell, just keyboard works)

    Thanks,
    Roya

  • Type this: cat /var/log/weston.log > /home/root/weston.log
    Then remove the SD card from BBB , put it to your computer and attach the log.
  • Dear kemal,
    Thanks for response,
    here is the weston log:

    #####

    Dtae: 2017-06-28 UTC
    [20:20:32.601] weston 1.11.0
    http://wayland.freedesktop.org
    Bug reports to : bugs.freedesktop.org/enter_bug.cgi
    Build 1.10.93-2-g2d825ed configure.ac: bump to version 1.11.0 for the official release (2016-05-31 17:10:40-0700)
    [20:20:32.601] OS: Linux, 4.9.28-geed43d1050#1 PREEMPT Wed Jun 28 17:20:01 EDT 2017, armv71
    [20:20:32.603] Using config file '/etc/weston.ini'
    [20:20:32.606] output repaint window is 7 ms maximum
    [20:20:32.610] Loading module '/usr/lib/weston/drm-backend.so'
    [20:20:32.642] initializing drm backend
    [20:20:32.682] using /dev/dri/card0
    [20:20:32.684] Loading module '/usr/lib/weston/gl-renderer.so'
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or diredtory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or diredtory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    [20:20:32.871] warning: either no EGL_EXT_platform_base support or specific platform support: falling back to eglGetDisplay.
    [20:20:32.927] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
    [20:20:32.928] Retrieving GEL client extension string failed.
    [20:20:33.021] input device 'USB optical Mouse' ,/dev/input/event0 not tagged as input device
    [20:20:33.049] failed to create input device '/dev/input/event0'.
    [20:20:33.053] input device 'SINO WEALTH USB KEYBOARD' ,/dev/input/event1 not tagged as input device
    [20:20:33.089] failed to create input device '/dev/input/event1'.
    [20:20:33.089] warning: no input devices on entering Weston. Possible causes:
    - no permission to read /dev/input/event*
    - seats misconfigured (Weston backend option 'Seat', udev device property ID_SEAT)
    [20:20:33.090] failed to create input devices
    [20:20:33.191] fatal: failed to create compositor backend

    #####

    I should say, my set up is a miniusb to usb cable to PC for power, a microHDMI to HDMI cable for connecting to monitor, a keyboard and a mouse that connected to BBB via usb hube (also I tested connecting keyboard directly).

    although I used keyboard for type in shell, it seems that keyboard and mouse didnot identify by BBB!

    what is the problem?


    Thanks a lot.
  • after that, I added

    [core]

    require-input=false

    to ' /etc/weston.ini'

    to weston start with out need to input to start.

    and then I restart the board and "please wait .." appeared on the monitor again, like before.

    I attached the log after that change.

    1385.weston.log
    Date: 2017-06-28 UTC
    [20:20:32.603] weston 1.11.0
                   http://wayland.freedesktop.org
                   Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.11.0
                   Build: 1.10.93-2-g2d825ed configure.ac: bump to version 1.11.0 for the official release (2016-05-31 17:10:40 -0700)
    [20:20:32.603] OS: Linux, 4.9.28-geed43d1050, #1 PREEMPT Wed Jun 28 17:20:01 EDT 2017, armv7l
    [20:20:32.605] Using config file '/etc//weston.ini'
    [20:20:32.608] Output repaint window is 7 ms maximum.
    [20:20:32.611] Loading module '/usr/lib/weston/drm-backend.so'
    [20:20:32.655] initializing drm backend
    [20:20:32.670] using /dev/dri/card0
    [20:20:32.672] Loading module '/usr/lib/weston/gl-renderer.so'
    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
    [20:20:32.859] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
    [20:20:32.889] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
    [20:20:32.904] Retrieving EGL client extension string failed.
    [20:20:32.910] input device 'SINO WEALTH USB KEYBOARD', /dev/input/event0 not tagged as input device
    [20:20:32.952] failed to create input device '/dev/input/event0'.
    [20:20:32.952] warning: no input devices found, but none required as per configuration.
    [20:20:33.161] EGL version: 1.4 build 1.14@3699939 (MAIN)
    [20:20:33.161] EGL vendor: Imagination Technologies
    [20:20:33.161] EGL client APIs: OpenGL_ES 
    [20:20:33.161] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image
                   EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
                   EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
                   EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync
                   EGL_IMG_context_priority EGL_IMG_hibernate_process
                   EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context
                   EGL_KHR_wait_sync EGL_KHR_create_context
                   EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    [20:20:33.170] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
    [20:20:33.170] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
    [20:20:33.170] GL vendor: Imagination Technologies
    [20:20:33.170] GL renderer: PowerVR SGX 530
    [20:20:33.170] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24
                   GL_OES_vertex_half_float GL_OES_texture_float
                   GL_OES_texture_half_float GL_OES_element_index_uint
                   GL_OES_mapbuffer GL_OES_fragment_precision_high
                   GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image
                   GL_OES_EGL_image_external GL_OES_required_internalformat
                   GL_OES_depth_texture GL_OES_get_program_binary
                   GL_OES_packed_depth_stencil GL_OES_standard_derivatives
                   GL_OES_vertex_array_object GL_OES_egl_sync
                   GL_OES_surfaceless_context GL_EXT_discard_framebuffer
                   GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
                   GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod
                   GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg
                   GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc
                   GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888
                   GL_IMG_read_format GL_IMG_program_binary
                   GL_IMG_uniform_buffer_object
                   GL_IMG_multisampled_render_to_texture GL_KHR_debug
    [20:20:33.171] GL ES 2 renderer features:
                   read-back format: RGBA
                   wl_shm sub-image to texture: no
                   EGL Wayland extension: yes
    [20:20:33.171] Chosen EGL config details:
                   RGBA bits: 8 8 8 8
                   swap interval range: 1 - 1
    [20:20:33.171] cursor buffers unavailable, using gl cursors
    [20:20:33.171] Failed to initialize backlight
    [20:20:33.171] EDID data 'GSM', 'LG IPS WSXGA', '608NTYT99682'
    [20:20:33.171] Output HDMI-A-1, (connector 26, crtc 24)
                   mode 1440x900@59.9, preferred, current
                   mode 1280x1024@60.0
                   mode 1280x800@59.9
                   mode 1152x864@75.0
                   mode 1280x720@60.0
                   mode 1280x720@59.9
                   mode 1024x768@75.0
                   mode 1024x768@60.0
                   mode 832x624@74.6
                   mode 800x600@75.0
                   mode 800x600@60.3
                   mode 800x600@56.2
                   mode 720x480@60.0
                   mode 720x480@59.9
                   mode 640x480@75.0
                   mode 640x480@60.0
                   mode 640x480@59.9
                   mode 720x400@70.1
    [20:20:33.186] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
                   presentation clock: CLOCK_MONOTONIC, id 1
    [20:20:33.195] Loading module '/usr/lib/weston/desktop-shell.so'
    [20:20:33.216] launching '/usr/libexec/weston-keyboard'
    [20:20:33.218] launching '/usr/libexec/weston-desktop-shell'
    [20:20:33.417] set mode failed: No such file or directory
    could not load cursor 'dnd-move'
    could not load cursor 'dnd-copy'
    could not load cursor 'dnd-none'
    could not load cursor 'dnd-move'
    could not load cursor 'dnd-copy'
    could not load cursor 'dnd-none'
    [20:20:34.757] set mode failed: No such file or directory
    [20:20:38.040] set mode failed: No such file or directory
    [20:20:38.041] unexpectedly large timestamp jump (from 25166 to 28456)
    [20:20:41.740] input device 'SINO WEALTH USB KEYBOARD', /dev/input/event0 is tagged by udev as: Keyboard
    [20:20:41.740] input device 'SINO WEALTH USB KEYBOARD', /dev/input/event0 is a keyboard
    [20:20:41.959] input device 'SINO WEALTH USB KEYBOARD', /dev/input/event1 is tagged by udev as: Keyboard
    [20:20:41.960] input device 'SINO WEALTH USB KEYBOARD', /dev/input/event1 is a keyboard
    

    *in this test, my setup was power cable, HDMI cable and keyboard.

    I hope your help please.

    Thanks.

  • The error you got is set mode failed. You don't have the gbm-format=rgb565 in /etc/weston.ini

  • Dear Kemal,

    Thanks for your support,

    yes, I had a mistake in editing  /etc/weston.ini,

    and weston launched successfully :)

    now I want launching matrix,

    so I tried

    sh-3.2# /etc/init.d/matrix-gui-2.0 start

    in weyland terminal, but matrix didn't launch and The HDMI screen just shows white.

    also I tried

    sh-3.2# matrix_browser -qws http://localhost:80

    and I had the same result.

    what is wrong?

    Thanks a lot

     

  • -qws is no longer required. Try sh-3.2# matrix_browser http://localhost:80

  • I tried this and the result didn't change.
    what I missed you think?
  • I think the lighttpd web server is not up.
    sh-3.2# /etc/init.d/lighttpd start

  • I tried to it in 'wayland Terminal':

    sh-3.2# /etc/init.d/lighttpd start

    starting Lighttpd  web server: /usr/sbin/lighttpd  is already running 1183

    lighttpd

    sh-3.2# matrix_browser http://localhost:80 

    and nothing changed.

    I should say I tried to this:

    sh-3.2# modetest

    and it's the result:

    so I think I should add

    => setenv optargs video=HDMI-A-1:1024x768
    => saveenv

    in command prompt.

    so, according to this toturial:

    "http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Init_Scripts#Changing_the_Default_Run_Level" 

    I used init 6 to reboot

    and then I expected : "it prompt to Hit any key to stop autoboot and then I press the SPACE key to go to u-boot"

    but  it didn't prompt and weston booted and then I have white..

    also I hit space key to stop auto boot, but it didn't stop.

    now, as regard testmode result, is necessary to add that two commands to prompt boot?

    if yes, what is wrong to go to prompt boot?

    Thanks a lot,

    Roya.

  • You should be able to start Matrix GUI without entering setenv optargs video=HDMI-A-1:1024x768. You are also in rescue mode. Please, enter init 5 and retry.

  • YES..it works now,
    Thanks for your support.

    but how you understand I'm in rescue mode? and what is rescue mode?


    Thanks a lot.
  • The rescue mode is single user mode. I saw that your login name is sh-3.2# and knowing that your weston was not lunching, I understand that you are stuck in first runlevel init 1 .

  • Dear Kemal,
    Thanks a lot for your good support.

    Excuse me for many questions,

    is there any document or guide that I know more about init1 and the sdk linux modes?

    and another question, how you understand that I don't need to entering setenv optargs video=HDMI-A-1:1024x768 ?

    Thanks a lot.
  • To easily understand the run levels, you can read the old systemV Init Scripts related articles in this training that I earlier point you for U-Boot. Keep in mind that the systemV is no longer supported, its successor is SystemD. This article looks good for a start point to get to know with systemD.

    See Documentation/fb/modedb.txt to understand when you have to pass the "video=" kernel parameter and when you have not to.

  • Dear Kemal,
    I will check these. Thanks a lot for your support.
    Roya