Hello Everyone!
I am trying to migrate Linux kernel version 4.4.113 (ti-lsk branch) to 4.19.59 (processor-sdk-linux) including OpenGL graphics. Our machine is based on AM5728 CPU.
I have migrated quite a lot, but there are some leftovers, which are not fully cleared to me.
DTS:
Previously we have been using "dra7.dtsi" include file, but it was completely changed in this kernel version. How to migrate these entries?
&oppdm_core { vdd-supply = <&smps6_reg>; }; &oppdm_mpu { vdd-supply = <&smps12_reg>; }; &oppdm_dspeve { vdd-supply = <&smps45_reg>; }; &oppdm_gpu { vdd-supply = <&smps45_reg>; }; &oppdm_ivahd { vdd-supply = <&smps45_reg>; };
These lines have been removed from mentioned file. I have replaced all mentioned lines like this. Please correct, what needs to explicitly set to make graphic stuff fully working.
&opp_supply_mpu { vdd-supply = <&smps12_reg>; }; &gpu { status = "okay"; };
kernel_config:
First kernel tryout:
pvrsrvkm: Unknown symbol drm_legacy_mmap (err -2)
- Does it mean, that I need to enable “CONFIG_DRM_LEGACY” explicitly ? It wasn’t enabled in previous kernels and was working without problems.
- Anyway I have enabled the config later on
kernel_bootlog:
4.4.113:
[ 1.397697] [drm] Initialized drm 1.1.0 20060810
...
[ 2.298209] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 2.304848] [drm] No driver support for vblank timestamp query. [ 2.313148] [drm] Enabling DMM ywrap scrolling [ 2.374269] Console: switching to colour frame buffer device 128x37 [ 2.382565] omapdrm omapdrm.0: fb0: omapdrm frame buffer device [ 2.425907] [drm] Initialized omapdrm 1.0.0 20110917 on minor 0
...
[ 4.759170] [drm] Initialized pvr 1.14.3699939 20110701 on minor 1
[ 4.777805] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
4.19.59:
[ 9.686247] [drm] Initialized pvr 1.17.4948957 20110701 for 56000000.gpu on minor 0
Kernel configs...
4.4.113:
CONFIG_DRM_OMAP=y CONFIG_DRM_OMAP_NUM_CRTCS=2 CONFIG_OMAP2_DSS_INIT=y CONFIG_OMAP_DSS_BASE=y CONFIG_OMAP2_DSS=y CONFIG_OMAP2_DSS_DPI=y CONFIG_OMAP2_DSS_VENC=y CONFIG_OMAP2_DSS_HDMI_COMMON=y CONFIG_OMAP4_DSS_HDMI=y CONFIG_OMAP5_DSS_HDMI=y # CONFIG_OMAP2_DSS_SDI is not set # CONFIG_OMAP2_DSS_DSI is not set CONFIG_DISPLAY_PANEL_DPI=y # CONFIG_DISPLAY_PANEL_DSI_CM is not set # CONFIG_DISPLAY_PANEL_SHARP_LS037V7DW01 is not set CONFIG_DRM_TILCDC=y CONFIG_DRM_TILCDC_SLAVE_COMPAT=y # CONFIG_DRM_QXL is not set # CONFIG_DRM_BOCHS is not set # CONFIG_DRM_VIRTIO_GPU is not set # CONFIG_DRM_FSL_DCU is not set CONFIG_DRM_PANEL=y # Frame buffer Devices # CONFIG_FB=y # CONFIG_FIRMWARE_EDID is not set CONFIG_FB_CMDLINE=y CONFIG_FB_NOTIFY=y # CONFIG_FB_DDC is not set # CONFIG_FB_BOOT_VESA_SUPPORT is not set CONFIG_FB_CFB_FILLRECT=y CONFIG_FB_CFB_COPYAREA=y CONFIG_FB_CFB_IMAGEBLIT=y # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set CONFIG_FB_SYS_FILLRECT=y CONFIG_FB_SYS_COPYAREA=y CONFIG_FB_SYS_IMAGEBLIT=y # CONFIG_FB_FOREIGN_ENDIAN is not set CONFIG_FB_SYS_FOPS=y # CONFIG_FB_SVGALIB is not set # CONFIG_FB_MACMODES is not set # CONFIG_FB_BACKLIGHT is not set CONFIG_FB_MODE_HELPERS=y # CONFIG_FB_TILEBLITTING is not set
4.19.59
CONFIG_DRM_OMAP=y CONFIG_OMAP2_DSS_INIT=y CONFIG_OMAP_DSS_BASE=y CONFIG_OMAP2_DSS=y # CONFIG_OMAP2_DSS_DEBUG is not set # CONFIG_OMAP2_DSS_DEBUGFS is not set CONFIG_OMAP2_DSS_DPI=y CONFIG_OMAP2_DSS_VENC=y CONFIG_OMAP2_DSS_HDMI_COMMON=y CONFIG_OMAP4_DSS_HDMI=y CONFIG_OMAP4_DSS_HDMI_CEC=y CONFIG_OMAP5_DSS_HDMI=y # CONFIG_OMAP2_DSS_SDI is not set # CONFIG_OMAP2_DSS_DSI is not set CONFIG_DRM_TILCDC=y # CONFIG_DRM_QXL is not set # CONFIG_DRM_BOCHS is not set # CONFIG_DRM_FSL_DCU is not set # CONFIG_DRM_STM is not set CONFIG_DRM_PANEL=y # # Display Panels # # CONFIG_DRM_PANEL_ARM_VERSATILE is not set # CONFIG_DRM_PANEL_LVDS is not set CONFIG_DRM_PANEL_SIMPLE=y # # Frame buffer Devices # CONFIG_FB=y # CONFIG_FIRMWARE_EDID is not set CONFIG_FB_CMDLINE=y CONFIG_FB_NOTIFY=y CONFIG_FB_CFB_FILLRECT=y CONFIG_FB_CFB_COPYAREA=y CONFIG_FB_CFB_IMAGEBLIT=y CONFIG_FB_SYS_FILLRECT=y CONFIG_FB_SYS_COPYAREA=y CONFIG_FB_SYS_IMAGEBLIT=y # CONFIG_FB_FOREIGN_ENDIAN is not set CONFIG_FB_SYS_FOPS=y CONFIG_FB_DEFERRED_IO=y # CONFIG_FB_MODE_HELPERS is not set # CONFIG_FB_TILEBLITTING is not set
There is only one line in bootlog about drm. I would like to enable the logo during kernel booting. Seems to be, that fb0 device hasn't been detected. Is there a problem in kernel_config or DTB. On the other hand there is an option CONFIG_FB_OMAP2. But I am not sure, if this is the right way, how to enable it.
Rest of migration looks fine for now.
Thank you for your advice!