I have a custom carrier board which is developed for Jetson TX-1. My requirement is two different VGA output on two monitors.
I have a free PCIe interfaces on our custom carrier board to connect PCIe to VGA converter. I am using VL-MPEe-V5 from Versalogic which is based on Silicon Motion SM750.
Jetpack version for my Jetson TX-1:
# R32 (release), REVISION: 3.1, GCID: 18186506, BOARD: t210ref, EABI: aarch64, DATE: Tue Dec 10 06:58:34 UTC 2019
I have got a DRM driver from Silicon Motion for SM750 chip.
I am trying to use the DRM driver but I am getting error during compilation of the DRM driver. I am compiling the driver naively on my ARM machine (Jetson TX-1).
I have also trying to cross compile the driver but I get similar errors.
Here I am attaching the compilation logs for native compilation:
make -C /lib/modules/4.9.140-tegra/build M=/home/spectross/Asif/SM/DRM220.127.116.11 modules make: Entering directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9' CC [M] /home/spectross/Asif/SM/DRM18.104.22.168/smi_drv.o In file included from /home/spectross/Asif/SM/DRM22.214.171.124/smi_drv.h:16:0, from /home/spectross/Asif/SM/DRM126.96.36.199/smi_drv.c:9: ./include/drm/drm_encoder.h: In function ‘drm_encoder_find’: ./include/drm/drm_encoder.h:220:37: error: ‘DRM_MODE_OBJECT_ENCODER’ undeclared (first use in this function); did you mean ‘DRM_ELD_PRODUCT_CODE0’? mo = drm_mode_object_find(dev, id, DRM_MODE_OBJECT_ENCODER); ^~~~~~~~~~~~~~~~~~~~~~~ DRM_ELD_PRODUCT_CODE0 ./include/drm/drm_encoder.h:220:37: note: each undeclared identifier is reported only once for each function it appears in In file included from /home/spectross/Asif/SM/DRM188.8.131.52/smi_drv.h:18:0, from /home/spectross/Asif/SM/DRM184.108.40.206/smi_drv.c:9: ./include/drm/drm_gem.h: At top level: ./include/drm/drm_gem.h:95:29: error: field ‘vma_node’ has incomplete type struct drm_vma_offset_node vma_node; ^~~~~~~~ In file included from /home/spectross/Asif/SM/DRM220.127.116.11/smi_drv.h:23:0, from /home/spectross/Asif/SM/DRM18.104.22.168/smi_drv.c:9: ./include/drm/ttm/ttm_bo_driver.h:33:10: fatal error: ttm/ttm_bo_api.h: No such file or directory #include <ttm/ttm_bo_api.h> ^~~~~~~~~~~~~~~~~~ compilation terminated. scripts/Makefile.build:335: recipe for target '/home/spectross/Asif/SM/DRM22.214.171.124/smi_drv.o' failed make: *** [/home/spectross/Asif/SM/DRM126.96.36.199/smi_drv.o] Error 1 Makefile:1629: recipe for target '_module_/home/spectross/Asif/SM/DRM188.8.131.52' failed make: *** [_module_/home/spectross/Asif/SM/DRM184.108.40.206] Error 2 make: Leaving directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9' Makefile:47: recipe for target 'default' failed make: *** [default] Error 2
I have also tried to compile the same DRM driver on the X86 machine and it is compiled successfully.
Please help me to solve this errors to successfully compile the driver for Jetson TX-1.
Looking forward for your support.