Hello,
In i.MX8 Yocto project source code the mxc-media-dev driver file config by macro CONFIG_IMX8_MEDIA_DEVICE=y
in defconfig,but after comment the macro on defconfig,the driver also build in kernel and probe?
Is there other driver related with it and load it?
Thanks
yes,I know this method to remove the module,but my question is not remove,my question is why comment the macro
on defconfig can not effect the module,it also load to kernel.
When comment CONFIG_GMSL_MAX9286=y this macro on defconfig,max9286 driver will not load in kernel,it is effect.
so why CONFIG_IMX8_MEDIA_DEVICE not effect and have some other driver related with mxc-media-dev driver?
yocto-4.14.98-2.3.2/build-wayland/tmp/work/imx8qmmek-poky-linux/linux-imx/4.14.98-r0/git$ find . -type f -exec grep -H IMX8_MEDIA_DEVICE {} \;
./drivers/media/platform/imx8/Makefile:obj-$(CONFIG_IMX8_MEDIA_DEVICE) += mxc-media-dev.o
./drivers/media/platform/imx8/Kconfig:config IMX8_MEDIA_DEVICE
I searched the whole source code. There is no other place to compile this IMX8_MEDIA_DEViCE.
only CONFIG_IMX8_MEDIA_DEVICE=n that can effect for the driver.
and when set the driver to module CONFIG_IMX8_MEDIA_DEVICE=m CONFIG_GMSL_MAX9286=m
why media_dev ko will auto install by system but max9286 driver ko not load?
Do you mean you can see the module media_dev loaded when you type "lsmod"?
If you build it as a module, I think there may have a command to load the .ko file.
You may search the module name in your filesystem.
Please tell me what is the image name you built. (e.g. bitbake "image-name") so I can try it on my side.
Hello,
Double check with the expert team.
Hello,
It seems your team only build kernel and only download kernel image,that will cause all kernel modules can not load
need download all image of the project then kernel module will auto load normal,so mxc-media-dev.ko will auto load.
Thanks
I searched and read the Makefile. There is only one Makefile to compile this imx8-media-dev.o. I am using L5.4.3. So, I will try to install and compile the L4.14.98_2.3.2 (support i.MX8QM) and then check it again.