Hi, Leon
 
>Is weston-terminal included in the image? Do you have any error logs    at 
>journalctl?
 
   Yes, when I launch weston with root or genivi, weston-terminal is ok...
   With app user, I can not find any error logs at journalctl and 
coredumpctl...I think there maybe something wrong with my way to get logs.
 
>If this is the case then this seems as a specific issue with Wayland    and 
>Weston. I suggest you to have a look at newer versions of Weston    and 
>eventually to seek help through Wayland mailing list.
 
   I've posted mail about this already and trying to get some info from 
freescale community.
 
Keep in touch:)
 
BR,
Ray
 
Subject: Re: IVI System Black screen after boot up with weston
To: k870818...@outlook.com; ivi@lists.tizen.org; d...@lists.tizen.org
From: leon.an...@konsulko.com
Date: Mon, 19 Oct 2015 11:05:31 +0300


  
    
  
  
    Hi Ray,

    

    On 19.10.2015 06:29, RayBloodworth
      wrote:

    
    
      
      Hi, Leon

         

        >Honestly I am not sure what is the current status of
        tizen-ivi branch. Nowadays my work is focused on
        >Tizen:Common, the tizen branch. In my opinion instead of
        branches, the additional packages needed for IVI (or >other
        Tizen 3 profiles) should be provided by a separate meta layer.
        Anyway, this is another story :)

         

        tizen-ivi branch was final released at 2015/02/05. It's the last
        release.

         

         

        >Based on my experience you should apply i.MX6 specific
        patches in Weston 1.6 and after that you should >launch
        Weston with fbdev-backend. 

         

        These patches have been applied and weston is launched with
        fbdev-backend automaticly.

        

        >    You might be also experiencing incompatibility between
        the driver version for Vivante GPU in the kernel and >the
        firmware blobs in the user space. Which kernel version are you
        using? Is it 3.14?

        >Btw I see that weekeyboard is not available. You should
        either built it or just replace it with weston-keyboard >in
        weston configuration file.

        

        I have upgraded GPU libs and kernel both to
        3.14.28(freescale) version. Weston can be launched successful
        manually.

      
    
    

    OK, very good. If Weston is working when it is launched manually
    then it should be also working when it is launched by a systemd
    service. 

    

    
       

        I think the problem is about tlm/multi-seat with weston using
        fbdev-backend.

         

        Even though single seat mode enabled, there still are two seats,
        one is called genivi(UID:116), the other is app(UID:5000). And
        two westons be launched, the major is genivi weston, which using
        drm-backend. the app weston use wayland-backend and process
        buffer through genivi weston.

         

        In older versions, all apps were running with app user. So I
        want to launch the app weston in user session of 5000.

        First I changed the seat number from 2 to 1 in
        tlm-singleseat.conf, then changed the weston-user.ini
        to"shell=desktop-shell.so" and changed the app seat to [seat0].

         

        After booting, weston can be launched successfully, but
        weston-terminal can not be launched when I click the icon...

      
    
    

    Is weston-terminal included in the image? Do you have any error logs
    at journalctl?

    

    
       

        I checked the codes of weston, it seems like there is no
        multi-seat support with fbdev-backend. Even if we modify the
        configs by force, there should be problems with some functions.

         

        So, I think the root of this problem is fbdev-backend does not
        support multi-seat. I'm trying to use system with genivi user
        only.

      
    
    

    If this is the case then this seems as a specific issue with Wayland
    and Weston. I suggest you to have a look at newer versions of Weston
    and eventually to seek help through Wayland mailing list.

    

    Best regards,

    Leon

    

    
      

         

        BR,

        Ray

         

        
          Subject: Re: IVI System Black screen
          after boot up with weston

          To: k870818...@outlook.com; ivi@lists.tizen.org;
          d...@lists.tizen.org

          From: leon.an...@konsulko.com

          Date: Sat, 17 Oct 2015 11:55:29 +0300

          

          Hi Ray,

          

          On 16.10.2015 09:00,
            RayBloodworth wrote:

          
          
            
            Hi, Leon, everyone
              

              
                  I have built Tizen-IVI image(tizen-ivi-image-dev)
                with single seat using yocto and run it on MCIMX6Q-SDP:
              

              
                  tizen-distro : tizen-ivi branch
                  meta-fsl-arm/meta-fsl-arm-extra: dizzy (kernel is
                upgraded to 3.14.28, imx-gpu-viv is upgraded to 5.0.11)
              

              
            
          
          

          Honestly I am not sure what is the current status of tizen-ivi
          branch. Nowadays my work is focused on Tizen:Common, the tizen
          branch. In my opinion instead of branches, the additional
          packages needed for IVI (or other Tizen 3 profiles) should be
          provided by a separate meta layer. Anyway, this is another
          story :)

          

          
            
                  Then I configed boot params to lvds video(default
                is hdmi) output.
              

              
                  After booting the system, tty1 turn to black
                screen.
              

              
                  According to multi-user case, there should be a
                weston(A) running with genivi user and another one(B)
                with app user. A should use fbdev-backend and B should
                use wayland-backend.
              

              
                  Using pstree I got this:
              
                root@imx6qsabresd:~# pstree
                systemd-+-ambd---{gdbus}
                        |-amd
                        |-avahi-daemon---avahi-daemon
                        |-bluetoothd
                        |-connmand
                        |-dbus-daemon
                        |-ofonod
                        |-sshd---sh---pstree
                        |-system_server
                        |-systemd-journal
                        |-systemd-logind
                        |-systemd-udevd---systemd-udevd
                       
|-tlm-+-tlm-sessiond-+-genivi-session----weston-launch---weston---{weston}
                        |     |              |-{gdbus}
                        |     |              `-{gmain}
                        |    
                  |-tlm-sessiond-+-user-session---weston-+-weston-desktop-
                        |     |              |                    
                    `-{weston}
                        |     |              |-{gdbus}
                        |     |              `-{gmain}
                        |     |-{gdbus}
                        |     `-{gmain}
                        `-wpa_supplicant
              
              

              
                  It's looks like OK.
              

              
                  And I checked the genivi-weston log:
              
                

                
                Date: 1970-01-01 UTC
                [00:06:14.141] weston 1.6.0
                               http://wayland.freedesktop.org/
                               Bug reports to:
                  
https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.6.0
                               Build: tizen_3.0_ivi_release-dirty
                  Fixed weston transfromation problem (2015-01-08
                  18:51:08 +0200)
                [00:06:14.142] OS: Linux,
                  3.14.28-1.0.0_ga+g91cf351, #1 SMP PREEMPT Sun Oct 11
                  02:05:20 CST 2015, armv7l
                [00:06:14.147] Using config file
                  '/etc/xdg/weston/weston-genivi.ini'
                [00:06:14.150] Loading module
                  '/usr/lib/weston/fbdev-backend.so'
                [00:06:14.267] initializing fbdev backend
                [00:06:14.281] compositor->use_gal2d=0
                [00:06:14.289] Loading module
                  '/usr/lib/weston/gl-renderer.so'
                [00:06:14.356] Creating fbdev output. /dev/fb0 x=0
                  y=0
                [00:06:14.356] Opening fbdev frame buffer.
                [00:06:14.356] Calculating pixman format from:
                                - type: 0 (aux: 0)
                                - visual: 2
                                - bpp: 16 (grayscale: 0)
                                - red: offset: 11, length: 5, MSB:
                  0
                                - green: offset: 5, length: 6, MSB:
                  0
                                - blue: offset: 0, length: 5, MSB:
                  0
                                - transp: offset: 0, length: 0,
                  MSB: 0
                [00:06:14.425] EGL version: 1.4
                [00:06:14.425] EGL vendor: Vivante Corporation
                [00:06:14.425] EGL client APIs: OpenGL_ES OpenVG
                [00:06:14.425] EGL extensions:
                  EGL_KHR_reusable_sync EGL_KHR_fence_sync
                               EGL_KHR_image EGL_KHR_image_base
                  EGL_KHR_image_pixmap
                               EGL_KHR_gl_texture_2D_image
                  EGL_KHR_gl_texture_cubemap_image
                               EGL_KHR_gl_renderbuffer_image
                  EGL_KHR_lock_surface
                               EGL_KHR_create_context
                  EGL_EXT_create_context_robustness
                               EGL_EXT_buffer_age
                  EGL_EXT_protected_surface
                               EGL_WL_bind_wayland_display
                [00:06:14.425] GL version: OpenGL ES 3.0
                  V5.0.11.p4.25762
                [00:06:14.425] GLSL version: OpenGL ES GLSL ES 3.00
                [00:06:14.425] GL vendor: Vivante Corporation
                [00:06:14.425] GL renderer: Vivante GC2000
                [00:06:14.425] GL extensions:
                  GL_OES_vertex_type_10_10_10_2
                               GL_OES_vertex_half_float
                  GL_OES_element_index_uint
                               GL_OES_mapbuffer
                  GL_OES_vertex_array_object
                               GL_OES_compressed_ETC1_RGB8_texture
                               GL_OES_compressed_paletted_texture
                  GL_OES_texture_npot
                               GL_OES_rgb8_rgba8
                  GL_OES_depth_texture
                               GL_OES_depth_texture_cube_map
                  GL_OES_depth24 GL_OES_depth32
                               GL_OES_packed_depth_stencil
                  GL_OES_fbo_render_mipmap
                               GL_OES_get_program_binary
                  GL_OES_fragment_precision_high
                               GL_OES_standard_derivatives
                  GL_OES_EGL_image GL_OES_EGL_sync
                               GL_EXT_texture_type_2_10_10_10_REV
                               GL_EXT_texture_filter_anisotropic
                               GL_EXT_texture_format_BGRA8888
                  GL_EXT_read_format_bgra
                               GL_EXT_multi_draw_arrays
                  GL_EXT_frag_depth
                               GL_EXT_discard_framebuffer
                  GL_EXT_blend_minmax
                             
                   GL_EXT_multisampled_render_to_texture
                  GL_EXT_robustness
                               GL_VIV_tex_direct
                [00:06:14.426] GL ES 2 renderer features:
                               read-back format: BGRA
                               wl_shm sub-image to texture: no
                               EGL Wayland extension: yes
                [00:06:14.426] Chosen EGL config details:
                               RGBA bits: 8 8 8 0
                               swap interval range: 0 - 10
                [00:06:14.426] fbdev output 1024×768 px
                               guessing 63 Hz and 96 dpi
                [00:06:14.428] input device 'gpio-keys.21',
                  /dev/input/event7 is a keyboard
                [00:06:14.429] input device 'DELL Dell USB Entry
                  Keyboard', /dev/input/event5 is a keyboard
                [00:06:14.430] not using input device
                  '/dev/input/event6'.
                [00:06:14.431] input device 'max11801_ts',
                  /dev/input/event1 is a touch device
                [00:06:14.432] input device 'EETI eGalax Touch
                  Screen', /dev/input/event0 is a touch device
                [00:06:14.433] not using input device
                  '/dev/input/event2'.
                [00:06:14.433] not using input device
                  '/dev/input/event3'.
                [00:06:14.434] not using input device
                  '/dev/input/event4'.
                [00:06:14.434] launching
                  '/usr/libexec/weston-keyboard'
                [00:06:14.438] seat created with name default
                [00:06:14.531] Compositor capabilities:
                               arbitrary surface rotation: yes
                               screen capture uses y-flip: yes
                [00:06:14.534] Loading module
                  '/usr/lib/weston/fullscreen-shell.so'
                [00:06:14.707] input_method died, respawning...
                [00:06:14.707] launching
                  '/usr/libexec/weston-keyboard'
                [00:06:14.792] input_method died, respawning...
                [00:06:14.792] launching
                  '/usr/libexec/weston-keyboard'
                [00:06:14.868] input_method died, respawning...
                [00:06:14.868] launching
                  '/usr/libexec/weston-keyboard'
                [00:06:14.938] input_method died, respawning...
                [00:06:14.938] launching
                  '/usr/libexec/weston-keyboard'
                [00:06:15.006] input_method died, respawning...
                [00:06:15.006] launching
                  '/usr/libexec/weston-keyboard'
                [00:06:15.074] input_method died, giving up.
              
              

              
              

              
               weston(PID:5000) log:
              
                [00:01:23.662] weston 1.6.0
                               http://wayland.freedesktop.org/
                               Bug reports to:
                  
https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.6.0
                               Build: tizen_3.0_ivi_release-dirty
                  Fixed weston transfromation problem (2015-01-08
                  18:51:08 +0200)
                [00:01:23.663] OS: Linux,
                  3.14.28-1.0.0_ga+g91cf351, #1 SMP PREEMPT Sun Oct 11
                  02:05:20 CST 2015, armv7l
                [00:01:23.663] Using config file
                  '/etc/xdg/weston/weston-user.ini'
                [00:01:23.663] Loading module
                  '/usr/lib/weston/wayland-backend.so'
                [00:01:23.676] Multiseat enabled 0
                [00:01:23.683] create input with id 10
                [00:01:23.684] initialise input with seat name
                  (null)
                [00:01:23.684] launching '/bin/weekeyboard'
                [00:01:23.685] compositor: executing
                  '/bin/weekeyboard' failed: No such file or directory
                [00:01:23.685] Loading module
                  '/usr/lib/weston/gl-renderer.so'
                [00:01:23.715] input_handle_capabilities input with
                  seatname  and caps 7
                [00:01:23.743] Creating 1024x768 wayland output at
                  (0, 0)
                [00:01:23.759] EGL version: 1.4
                [00:01:23.759] EGL vendor: Vivante Corporation
                [00:01:23.759] EGL client APIs: OpenGL_ES OpenVG
                [00:01:23.759] EGL extensions:
                  EGL_KHR_reusable_sync EGL_KHR_fence_sync
                               EGL_KHR_image EGL_KHR_image_base
                  EGL_KHR_image_pixmap
                               EGL_KHR_gl_texture_2D_image
                  EGL_KHR_gl_texture_cubemap_image
                               EGL_KHR_gl_renderbuffer_image
                  EGL_KHR_lock_surface
                               EGL_KHR_create_context
                  EGL_EXT_create_context_robustness
                               EGL_EXT_buffer_age
                  EGL_EXT_protected_surface
                               EGL_WL_bind_wayland_display
                [00:01:23.760] GL version: OpenGL ES 3.0
                  V5.0.11.p4.25762
                [00:01:23.760] GLSL version: OpenGL ES GLSL ES 3.00
                [00:01:23.760] GL vendor: Vivante Corporation
                [00:01:23.760] GL renderer: Vivante GC2000
                [00:01:23.760] GL extensions:
                  GL_OES_vertex_type_10_10_10_2
                               GL_OES_vertex_half_float
                  GL_OES_element_index_uint
                               GL_OES_mapbuffer
                  GL_OES_vertex_array_object
                               GL_OES_compressed_ETC1_RGB8_texture
                               GL_OES_compressed_paletted_texture
                  GL_OES_texture_npot
                               GL_OES_rgb8_rgba8
                  GL_OES_depth_texture
                               GL_OES_depth_texture_cube_map
                  GL_OES_depth24 GL_OES_depth32
                               GL_OES_packed_depth_stencil
                  GL_OES_fbo_render_mipmap
                               GL_OES_get_program_binary
                  GL_OES_fragment_precision_high
                               GL_OES_standard_derivatives
                  GL_OES_EGL_image GL_OES_EGL_sync
                               GL_EXT_texture_type_2_10_10_10_REV
                               GL_EXT_texture_filter_anisotropic
                               GL_EXT_texture_format_BGRA8888
                  GL_EXT_read_format_bgra
                               GL_EXT_multi_draw_arrays
                  GL_EXT_frag_depth
                               GL_EXT_discard_framebuffer
                  GL_EXT_blend_minmax
                             
                   GL_EXT_multisampled_render_to_texture
                  GL_EXT_robustness
                               GL_VIV_tex_direct
                [00:01:23.760] GL ES 2 renderer features:
                               read-back format: BGRA
                               wl_shm sub-image to texture: no
                               EGL Wayland extension: yes
                [00:01:23.760] Chosen EGL config details:
                               RGBA bits: 8 8 8 8
                               swap interval range: 0 - 10
                [00:01:23.760] Compositor capabilities:
                               arbitrary surface rotation: yes
                               screen capture uses y-flip: yes
                [00:01:23.770] Loading module
                  '/usr/lib/weston/desktop-shell.so'
                [00:01:23.784] launching
                  '/usr/libexec/weston-desktop-shell'
                [00:01:23.789] input_method died, respawning...
                [00:01:23.789] launching '/bin/weekeyboard'
                [00:01:23.796] compositor: executing
                  '/bin/weekeyboard' failed: No such file or directory
                [00:01:23.799] input_method died, respawning...
                [00:01:23.799] launching '/bin/weekeyboard'
                [00:01:23.815] compositor: executing
                  '/bin/weekeyboard' failed: No such file or directory
                [00:01:23.818] input_method died, respawning...
                [00:01:23.819] launching '/bin/weekeyboard'
                [00:01:23.823] compositor: executing
                  '/bin/weekeyboard' failed: No such file or directory
                [00:01:23.827] input_method died, respawning...
                [00:01:23.827] launching '/bin/weekeyboard'
                [00:01:23.831] compositor: executing
                  '/bin/weekeyboard' failed: No such file or directory
                [00:01:23.834] input_method died, respawning...
                [00:01:23.834] launching '/bin/weekeyboard'
                [00:01:23.838] compositor: executing
                  '/bin/weekeyboard' failed: No such file or directory
                [00:01:23.841] input_method died, giving up.
              
              

              
                 I couldn't find any error. Could anyone give me
                any advices?
              

              
            
          
          

          Based on my experience you should apply i.MX6 specific patches
          in Weston 1.6 and after that you should launch Weston with
          fbdev-backend. 

          

          You might be also experiencing incompatibility between the
          driver version for Vivante GPU in the kernel and the firmware
          blobs in the user space. Which kernel version are you using?
          Is it 3.14?

          

          Btw I see that weekeyboard is not available. You should either
          built it or just replace it with weston-keyboard in weston
          configuration file.

          

          Best regards,

          Leon

          

          

          
            
              Thanks !
              

              
              BR,
              Ray
              

              
              

              
              

              
            
          
          

          -- 
Leon Anavi
Software Engineer
konsulko.com

        
      
    
    

    -- 
Leon Anavi
Software Engineer
konsulko.com
                                          
_______________________________________________
IVI mailing list
IVI@lists.tizen.org
https://lists.tizen.org/listinfo/ivi

Reply via email to