How to find device driver in ADB shell?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to find device driver in ADB shell?

2,248 次查看
KyleChang
Contributor I

On i.MX8MQ platform, how to find device driver in ADB shell?

For example, I compile a device driver "ti-sn65dsi86.c"(PATH: vendor/nxp-opensource/kernel_imx/drivers/gpu/drm/bridge/ti-sn65dsi86.c),
and build the following OBJ files successfully.
/out/target/product/chimera/obj/KERNEL_OBJ/drivers/gpu/drm/bridge/ti-sn65dsi86.o
/out/target/product/chimera/obj/KERNEL_OBJ/drivers/gpu/drm/bridge/ti-sn65dsi86.ko

Where is the OBJ files of the device driver I can find after enter ADB shell?
For example, after enter ADB shell, and type command "ls vendor/lib",
the result only show *.so and there is no ti-sn65dsi86.so ?

Would you please tell me the location of drm driver in ADB shell, thanks.

 

标签 (1)
0 项奖励
回复
4 回复数

2,142 次查看
KyleChang
Contributor I

Thank you, I thought it is helpful.

I will study Android-13 document shared by you and do hands-on experiments on our i.MX8MQ EVB(Android-11).

0 项奖励
回复

2,204 次查看
KyleChang
Contributor I

I download reference design of Android Codebase version is imx-android-11.0.0_2.2.0.tar.gz, and i.MX8MQ reference design includes DRM_TI_SN65DSI86 driver.

The commands you provide can not find drm driver of TI SN65DSI86, and there is no /lib/modules directory.

Do you find ti-sn65dsi86 after using the below commands?
# adb shell ls /sys/module
# adb shell ls /lib/modules/
If Yes, could you please show the result of using the above commands, thank you.

0 项奖励
回复

2,169 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @KyleChang,

I hope you are doing well.

Please make sure that you have added drivers to SharedBoardConfig.mk file.

Please refer to 9.2 Changes after GKI enabled (Driver modules - bullet) and 9.3 How to add new drivers in Android User's Guide.

Thanks & Regards,
Dhruvit Vasavada

0 项奖励
回复

2,225 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @KyleChang,

I hope you are doing well.

One can use the below commands

# adb shell ls /sys/module
# adb shell ls /lib/modules/ => for loadable module

 
Thanks & Regards,
Dhruvit Vasavada
0 项奖励
回复