I am following this guide
and I am trying to tweak the process so I can get V4L2 support on a webcam connected over the USB OTG in the HPS.
I would like to get the familiar /dev/video# device when I plug my camera into the USB port on my board. I believe I have a hardware design set up to do this. Now I am trying to figure out how to get the V4L2 drivers into the kernel.
My belief is that if I include the correct kernel configs, I should see a directory show up in linux-socfpga.a9/modules_install/lib/modules/5.4.23-03461-gb6dad2fd8d54/kernel/drivers/ that looks like media/v4l2-core like in the /lib/modules/$(uname -r)/kernel/drivers/ directory on my PC
Can someone clarify how to compile in V4L2 support using kconfig. Preferably, I would like to start with the provided socfpga_defconfig file and add only the configs required for V4L2 webcam support, since I have had success building the kernel and getting other features to work with that config.