Hi i have made a custom board based on ADV7282-M to take PAL / NTSL Input stream from a analog camera and convert it to YCbCr output
My schematic is quite simple the single lane CSI from ADV is interfaced directly to the camera connector pins
i wish to develop a linux driver now to take the data from the ADV device to the v4l2 architecture , so that i can stream the feed over IP using Gstreamer
which speaks on Custom Camera development, but i being begineer in writing v4l2 drivers, kindly provide necessary steps to go ahead for writing kernel drivers
main things i may need help on is
Re building the jetson image with my driver
device tree modification for adding adv7282-m hardware
The process seems quite time consuming and long, if the driver doesnt work it might be repetetive also
is there a way to evaluate adv7282 driver (in-tree kernel module) as out of the tree kernel module where i can simply load a module and verify the driver functionality ? with out modifying the module code ?
Frankly , before going further i was going through many post where people tried to write LKM modules for camera drivers which are mainly part of soc_camera tree
The end result seemed unsucessfull
the driver adv7280 which is present in main stream kernel under soc_camera of i2c drivers, involves i2c device detection and making the v4l2 video device node appear for access to gstreamer
is this really possible through out-of the tree kernel modules, kindly confirm
i just wish to go in a right path, before wasting time.
the author tired to tweak the driver as it did not work for him, will it apply to me also ? or can i simply make the necessary device tree entry and can expect it work ?
can you please let me know any way to fast up things
everytime i need to build kernel image, create final sd card image, insert sd card, configure ubuntu and then check for dmesg to see logs of device are called, is there any quick way while driver development
You don’t need to create sd card image. Just replace the /boot/Image to apply your kernel. And add FDT to /boot/extlinux/extlinux.conf to apply your dtb.
can you please elaborate
currently i am coding new driver file in /media/i2c/adv7282.c
compiling the L4T source
copying sample rootfs to it
then creating the sd image on host machine, then using balena to flash to sd card and then boot the board
are you trying to say replace the /boot/Image in dev kit file system ? and reboot ?