Tool/software: Linux
Hello we are using AM5728 with processor sdk linux 5.02 base board to drive display using HDMI interface.
where we've used CONFIG_DRM_LOAD_EDID_FIRMWARE to load edid on boot without EEPROM and settings below environments to enable loading firmware.
setenv optargs drm_kms_helper.edid_firmware=edid/1280x800.bin setenv optargs ${optargs} video=HDMI-A-1:1280x800
We are using 1280x800 24bit TFT .
Here is my EDID which i've replaced in
${SDK_PATH}/board-support/linux-4.14.79+gitAUTOINC+bde58ab01e-gbde58ab01e/drivers/gpu/drm/drm_edid_load.c
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x34, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x1d, 0x01, 0x04, 0xa5, 0x19, 0x10, 0x78, 0x22, 0x64, 0x45, 0x90, 0x58, 0x5c, 0x8d, 0x29, 0x25, 0x50, 0x54, 0x00, 0x08, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xbc, 0x1b, 0x00, 0xa0, 0x50, 0x20, 0x17, 0x30, 0x14, 0x8b, 0x14, 0x00, 0x00, 0xa0, 0x10, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x00, 0xff, 0x00, 0x4c, 0x69, 0x6e, 0x75, 0x78, 0x20, 0x23, 0x30, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x3b, 0x3d, 0x30, 0x32, 0x08, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x4d, 0x41, 0x58, 0x2d, 0x58, 0x56, 0x47, 0x41, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x00, 0x4d,
Using EGLFS interface to draw gui app.
While running kmscube sample application it shows weird colors like this one.
Here is the launch log.
root@am57xx-evm:~# ./kmscube trying to load module omapdrm...success.[ 28.574362] [drm] Got built-in EDID base block and 0 extensions from "ed id/1280x800.bin" for connector "HDMI-A-1" ### Display [0]: CRTC = 39, Connector = 35, format = 0x34325258 Mode chosen [1280x800] : Clock => 71000, Vertical refresh => 60, Type => 72 Horizontal => 1280, 1300, 1439, 1440, 0 Vertical => 800, 801, 805, 823, 0 ### Primary display => ConnectorId = 35, Resolution = 1280x800 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 Using display 0x1 with EGL version 1.4 EGL Version "1.4 build 1.14@3699939 (MAIN)" EGL Vendor "Imagination Technologies" EGL Extensions "EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_text ure_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_sy nc EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import" ^CHandling signal number = 2 Cleanup of GL, GBM and DRM completed
While default login prompt screen looks ok .
Does it related to EDID or EGLFS?