1 [2] MLD-5.x / Systems / Raspberry PI / [MLD-5.5 testing] RPI4 OpenGL
 

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
[MLD-5.5 testing] RPI4 OpenGL
« Reply #15 on: February 22, 2022, 12:01:33 »
We do not use the vtuner patch, since it is not funktional. But we build the vtuner as a separate package (dvb-vtuner) by external module build.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD-5.5 testing] RPI4 OpenGL
« Reply #16 on: February 22, 2022, 16:18:22 »


Hi Claus,

The kernel panic problem is solved, i can't believe i was using a wrong config file  :o
Please delete that config from dev container.
I took config file from 092021 and it worked.
I will delete all the unnecessary comments i made related to that issue
 
Yes. we discussed qemu ARM emulation in docker before. i hope MLD kernel cross-compile will also work in the future.

Best Regards.

« Last Edit: February 22, 2022, 16:20:08 by gr4vity »

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD-5.5 testing] RPI4 OpenGL
« Reply #17 on: February 23, 2022, 20:09:40 »


Hi Claus,

BCM2835 thermal driver is enabled in 092021 config instead of BCM2711
Therefore CPU temp for RPI4 is always 00

Best Regards.
« Last Edit: February 23, 2022, 23:18:12 by gr4vity »

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD-5.5 testing] RPI4 OpenGL
« Reply #18 on: February 26, 2022, 20:07:40 »
Hi,

Code: [Select]
MLD> vkcube
vulkan: No DRI3 support detected - required for presentation
Note: you can probably enable DRI3 in your Xorg config
Could not find both graphics and present queues

Maybe solving the above error can help?

I have looked for a solution but there is only config for Nvidia and Intel,something like that

Code: [Select]
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "DRI"    "3"
EndSection

Code: [Select]
Section "Device"
   Identifier  "nvidia Graphics"
   Driver      "nvidia"
   Option      "DRI"    "3"
EndSection

I haven't found any config for RPI4

I created a config file in /etc/X11/xorg.conf.d/20-broadcom.conf but it doesn't do anything.

Code: [Select]
Section "Device"
   Identifier  "Broadcom"
   Driver      "V3D"
   Option      "DRI"    "3"
EndSection

Any idea?



« Last Edit: February 26, 2022, 20:10:07 by gr4vity »

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
[MLD-5.5 testing] RPI4 OpenGL
« Reply #19 on: February 27, 2022, 13:27:28 »
On MLD you can create a file with the name 30_broadcomDevice.add and this content:
Code: [Select]
   Driver      "V3D"
   Option      "DRI"    "3"
That will merge into the right config file on xorg startup.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD-5.5 testing] RPI4 OpenGL
« Reply #20 on: February 27, 2022, 18:21:49 »
Hi,
after creating that file xorg failed to start.
I found that in log
Code: [Select]
[    60.992] (II) LoadModule: "v3d"
[    60.993] (WW) Warning, couldn't open module v3d
[    60.993] (EE) Failed to load module "v3d" (module does not exist, 0)
[    60.993] (EE) No drivers available.
Although v3d module is already loaded.
What's wrong?

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
[MLD-5.5 testing] RPI4 OpenGL
« Reply #21 on: February 27, 2022, 20:09:15 »
I think the problem is not the kernel module but the xorg module at /usr/lib/xorg/modules/...
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD-5.5 testing] RPI4 OpenGL
« Reply #22 on: February 27, 2022, 22:05:30 »
There is v3d driver also in /usr/lib/arm-linux-gnueabihf/dri/v3d_dri.so

Anyway, according to the following page

https://monkstone.github.io/jruby_art/update/2020/03/21/V3D_Drivers_RaspberryPI.html

Code: [Select]
OpenGL renderer string: llvmpipeis a Legacy renderer

Code: [Select]
OpenGL renderer string: V3D 4.2is FakeKMS renderer
Since there is no raspi-config in MLD i tried to edit config.txt manually

I tried dtoverlay=vc4-fkms-v3d but my RPI4 still using the Legacy renderer.

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD-5.5 testing] RPI4 OpenGL
« Reply #23 on: March 06, 2022, 18:09:15 »
Hi,

I think solving kmscube issue will also solve OpenGL mystery  :)

Raspberry Pi OS:

Code: [Select]
root@raspberrypi:/home/pi# kmscube
Using display 0x1268400 with EGL version 1.4
===================================
EGL information:
  version: "1.4"
  vendor: "Mesa Project"
  client extensions: "EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless"
  display extensions: "EGL_ANDROID_blob_cache EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display "
===================================
OpenGL ES 2.x information:
  version: "OpenGL ES 3.1 Mesa 21.3.6 - kisak-mesa PPA"
  shading language version: "OpenGL ES GLSL ES 3.10"
  vendor: "Broadcom"
  renderer: "V3D 4.2"
  extensions: "GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_draw_instanced GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_AMD_performance_monitor GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_ANGLE_pack_reverse_row_order GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_NV_pixel_buffer_object GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_draw_elements_base_vertex GL_EXT_primitive_bounding_box GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_KHR_context_flush_control GL_NV_image_formats GL_OES_draw_elements_base_vertex GL_OES_primitive_bounding_box GL_OES_shader_io_blocks GL_OES_texture_border_clamp GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_EXT_buffer_storage GL_EXT_float_blend GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_OES_EGL_image_external_essl3 GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_shader_image_atomic GL_EXT_texture_compression_s3tc_srgb GL_MESA_shader_integer_functions GL_EXT_texture_mirror_clamp_to_edge GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_MESA_framebuffer_flip_y GL_EXT_texture_query_lod GL_MESA_bgra "
===================================
Rendered 120 frames in 2.000402 sec (59.987929 fps)
Rendered 240 frames in 4.000810 sec (59.987850 fps)
Rendered 360 frames in 6.001200 sec (59.988003 fps)
Rendered 480 frames in 8.001547 sec (59.988402 fps)
Rendered 600 frames in 10.001902 sec (59.988592 fps)
Rendered 720 frames in 12.002220 sec (59.988902 fps)
Rendered 840 frames in 14.002610 sec (59.988816 fps)
Rendered 960 frames in 16.002812 sec (59.989456 fps)
Rendered 1080 frames in 18.003119 sec (59.989604 fps)

MLD:

Code: [Select]
MLD> kmscube
drmModeGetResources failed: Operation not supported
failed to initialize legacy DRM

Code: [Select]
MLD> kmscube -D /dev/dri/card1
failed to initialize
failed to initialize EGL

Any idea??  ???
« Last Edit: March 06, 2022, 18:22:26 by gr4vity »

Offline rfehr

  • MLD-Developer
  • Expert Member
  • ******
  • Posts: 1507
    • View Profile
[MLD-5.5 testing] RPI4 OpenGL
« Reply #24 on: March 07, 2022, 09:33:02 »
Hi,

you could compare the config.txt of RaspiOS and MLD.

kind regrads,
  Roland
1x OctopusNet 4x DVB-C
1x Zotac ITX-A Atom 330
1x RPI2 als Client
1x BananaPi
1x Wetekplay
1x MCC 100
2x RPI3
2x RPi4
1x https://www.zotac.com/at/product/mini_pcs/pi335

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
[MLD-5.5 testing] RPI4 OpenGL
« Reply #25 on: March 07, 2022, 16:43:33 »
Hi Roland,

i did that already,

Since there is no raspi-config in MLD i tried to edit config.txt manually

I tried dtoverlay=vc4-fkms-v3d but my RPI4 still using the Legacy renderer.

Best Regards.

1 [2] MLD-5.x / Systems / Raspberry PI / [MLD-5.5 testing] RPI4 OpenGL
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.