Module build failed while installing v4l2loopback on Drive PX2

Hi,

I am trying to install v4l2loopback modules for Drive PX2 running 4.9.38-rt25-tegra.

My command for the installation:

sudo apt-get install v4l2loopback-source v4l2loopback-dkms v4l2loopback-utils

I get the following error in my terminal:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apt-clone archdetect-deb dmeventd dmraid dpkg-repack gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 kpartx kpartx-boot libappstream3 libdebian-installer4 libdevmapper-event1.02.1 libdmraid1.0.0.rc16
  liblockfile-bin liblockfile1 liblvm2app2.2 liblvm2cmd2.02 libparted-fs-resize0 libreadline5 lockfile-progs lvm2 os-prober pmount python3-icu python3-pam rdate ubiquity-casper ubiquity-ubuntu-artwork
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 561 not upgraded.
Need to get 0 B/68.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 159993 files and directories currently installed.)
Preparing to unpack .../v4l2loopback-dkms_0.9.1-4_all.deb ...

------------------------------
Deleting module version: 0.9.1
completely from the DKMS tree.
------------------------------
Done.
Unpacking v4l2loopback-dkms (0.9.1-4) over (0.9.1-4) ...
Preparing to unpack .../v4l2loopback-source_0.9.1-4_all.deb ...
Unpacking v4l2loopback-source (0.9.1-4) over (0.9.1-4) ...
Preparing to unpack .../v4l2loopback-utils_0.9.1-4_arm64.deb ...
Unpacking v4l2loopback-utils (0.9.1-4) over (0.9.1-4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up v4l2loopback-dkms (0.9.1-4) ...
Loading new v4l2loopback-0.9.1 DKMS files...
dpkg: warning: version '*-*' has bad syntax: version number does not start with digit
It is likely that 4.9.38-rt25-tegra belongs to a chroot's host
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
Setting up v4l2loopback-source (0.9.1-4) ...
Setting up v4l2loopback-utils (0.9.1-4) ...

I tried to add the module using modprobe. But it is not able to find the directory for v4l2loopback.

sudo modprobe v4l2loopback
modprobe: FATAL: Module v4l2loopback not found in directory /lib/modules/4.9.38-rt25-tegra

Any help would be appreciated.
Thanks!

Dear neli,

Could you please help to refer to below link? Thanks.