msm8916-mainline / linux-mdss-dsi-panel-driver-generator

Generate Linux DRM panel kernel driver based on QCOM MDSS DSI device tree
GNU General Public License v2.0
53 stars 33 forks source link

Help wanted about porting #34

Closed Saikatsaha1996 closed 10 months ago

Saikatsaha1996 commented 11 months ago

@stephan-gh i have issue.. i am on a13.. stock boot.img.. unable to extract dtb from boot img.. IMG_20230717_033742

Then i used DumprX https://github.com/DumprX/DumprX for my unpack my device Firmware.. and i received too many my_devices.dtb but when i am trying to take display panel data , i am unable to get error is my_devices.dtb does not contain any usable panel specifications

IMG_20230717_203117

But I have fdt & i compiled it with dtc this is my fdt output https://raw.githubusercontent.com/Saikatsaha1996/realme-porsche/main/realme-porsche.dts.txt

My display panel kernel cmmdline msm_drm.dsi_display0=qcom,mdss_dsi_oplus21617samsung_ams662zs01_1080_2400_cmd_dvt: oplus_bsp_tp_custom.dsi_display0=qcom,mdss_dsi_oplus21617samsung_ams662zs01_1080_2400_cmd_dvt:focaltech,ft3658u

I also have my separate display panel dtsi in downstream.. 1) https://github.com/pjgowtham/android_kernel_oneplus_sm8350/blob/54f795570db73477754b92a0af9db149732ca46b/arch/arm64/boot/dts/vendor/oplus/porsche/dsi-panel-oplus21617-samsung-ams662zs01-1080-2400-dvt-dsc-cmd.dtsi

2) https://github.com/pjgowtham/android_kernel_oneplus_sm8350/blob/54f795570db73477754b92a0af9db149732ca46b/arch/arm64/boot/dts/vendor/oplus/porsche/dsi-panel-oplus21617-samsung-ams662zs01-1080-2400-rev-dsc-cmd.dtsi

3) https://github.com/pjgowtham/android_kernel_oneplus_sm8350/blob/54f795570db73477754b92a0af9db149732ca46b/arch/arm64/boot/dts/vendor/oplus/porsche/dsi-panel-porsche21617-samsung-1080-2400-dsc-cmd-120hz.dtsi

4) https://github.com/pjgowtham/android_kernel_oneplus_sm8350/blob/54f795570db73477754b92a0af9db149732ca46b/arch/arm64/boot/dts/vendor/oplus/porsche/dsi-panel-porsche21617-samsung-1080-2400-dsc-cmd-dvt-120hz.dtsi

5) https://github.com/pjgowtham/android_kernel_oneplus_sm8350/blob/54f795570db73477754b92a0af9db149732ca46b/arch/arm64/boot/dts/vendor/oplus/porsche/dsi-panel-porsche21617-samsung-1080-2400-dsc-cmd.dtsi

And now update i used my fdt .. i compiled fdt and take output dtb

And used like this..

./lmdpdg.py my_fdt_output.dtb

Got to many errors & output also.. inside headers file & c file available like this.. IMG_20230717_052107

I checked.. my error is.. ERROR: failed to get property : qcom-mdss-dsi-on-commnd-state

Screenshot_2023-07-17-04-55-07-59_84d3000e3f4017145260f7618db1d683

My kernel cmmdline was msm_drm.dsi_display0=qcom,mdss_dsi_oplus21617samsung_ams662zs01_1080_2400_cmd_dvt: oplus_bsp_tp_custom.dsi_display0=qcom,mdss_dsi_oplus21617samsung_ams662zs01_1080_2400_cmd_dvt:focaltech,ft3658u

So i should take this one ? dsi_oplus21617samsung_ams662zs01_1080_2400_cmd_dvt

for testing i took mdss_dsi_oplus21617samsung_ams662zs01_1080_2400_cmd_dvt.c to drivers/gpu/drm/panel and edited kconfig & makefile like this.. i am not sure if it currect or not.. Can you check which is wrong? Which depends i should add more in kconfig

IMG_20230717_201117 IMG_20230717_201103

And now what should I do?

One more thing I am noob please help.. 🤗 Thank you advanced..