How to find device driver in ADB shell?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to find device driver in ADB shell?

2,247 Views
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.

 

Labels (1)
0 Kudos
Reply
4 Replies

2,141 Views
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 Kudos
Reply

2,203 Views
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 Kudos
Reply

2,168 Views
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 Kudos
Reply

2,224 Views
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 Kudos
Reply