Realsense D435i on Jetson AGX Xavier could not show camera feeds for a sample ISAAC application

connected devices:

  1. Name: Intel RealSense D435I, serial number: 045322074531, update serial number: 041323050015, firmware version: 05.12.14.50, USB type: 2.1

I tried the solution here and got the following errors

LD drivers/media/built-in.o
CC drivers/video/tegra/camera/tegra_camera_platform.o
CC drivers/usb/gadget/function/f_uvc.o
CC drivers/video/tegra/dc/hdcp/hdmihdcp.o
/usr/src/kernel/nvidia/drivers/video/tegra/dc/hdcp/hdmihdcp.c: In function ‘link_integrity_check’:
/usr/src/kernel/nvidia/drivers/video/tegra/dc/hdcp/hdmihdcp.c:1940:16: error: unused variable ‘nonce’ [-Werror=unused-variable]
unsigned char nonce[HDCP_NONCE_SIZE];
^~~~~
CC drivers/usb/gadget/function/uvc_queue.o
LD drivers/video/tegra/camera/built-in.o
CC drivers/video/tegra/dc/hdcp/nvhdcp_hdcp22_methods.o
CC drivers/usb/gadget/function/uvc_v4l2.o
CC drivers/video/tegra/host/nvcsi/nvcsi.o
cc1: all warnings being treated as errors
scripts/Makefile.build:335: recipe for target ‘drivers/video/tegra/dc/hdcp/hdmihdcp.o’ failed
make[4]: *** [drivers/video/tegra/dc/hdcp/hdmihdcp.o] Error 1
scripts/Makefile.build:649: recipe for target ‘drivers/video/tegra/dc’ failed
make[3]: *** [drivers/video/tegra/dc] Error 2
make[3]: *** Waiting for unfinished jobs…
CC drivers/video/tegra/host/nvcsi/deskew.o
CC drivers/usb/gadget/function/uvc_video.o
LD drivers/usb/gadget/function/usb_f_uvc.o
LD drivers/usb/gadget/function/built-in.o
CC drivers/video/tegra/host/nvcsi/nvcsi-t194.o
LD drivers/usb/gadget/built-in.o
LD drivers/video/tegra/host/nvcsi/nvhost-nvcsi.o
LD drivers/usb/built-in.o
CC drivers/video/tegra/host/t124/t124.o
CC drivers/video/tegra/host/t186/t186.o
LD drivers/video/tegra/host/nvcsi/nvhost-nvcsi-t194.o
LD drivers/video/tegra/host/nvcsi/built-in.o
CC drivers/video/tegra/host/t194/t194.o
LD drivers/video/tegra/host/t124/nvhost-t124.o
LD drivers/video/tegra/host/t124/built-in.o
CC drivers/video/tegra/host/t210/t210.o
LD drivers/video/tegra/host/t186/nvhost-t186.o
LD drivers/video/tegra/host/t186/built-in.o
CC drivers/video/tegra/host/vi/host_vi_notify.o
LD drivers/video/tegra/host/t194/nvhost-t194.o
LD drivers/video/tegra/host/t194/built-in.o
CC drivers/video/tegra/host/vi/vi4.o
CC drivers/video/tegra/host/vi/vi_notify.o
CC drivers/video/tegra/host/vi/vi5.o
LD drivers/video/tegra/host/t210/nvhost-t210.o
LD drivers/video/tegra/host/t210/built-in.o
LD drivers/video/tegra/host/vi/nvhost-vi5.o
LD drivers/video/tegra/host/vi/built-in.o
LD drivers/video/tegra/host/built-in.o
scripts/Makefile.build:649: recipe for target ‘drivers/video/tegra’ failed
make[2]: *** [drivers/video/tegra] Error 2
scripts/Makefile.build:649: recipe for target ‘drivers/video’ failed
make[1]: *** [drivers/video] Error 2
Makefile:1104: recipe for target ‘drivers’ failed
make: *** [drivers] Error 2

real 1m7.629s
user 2m27.900s
sys 0m20.864s
Make did not build
Retrying …
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/video/tegra/dc/hdcp/hdmihdcp.o
/usr/src/kernel/nvidia/drivers/video/tegra/dc/hdcp/hdmihdcp.c: In function ‘link_integrity_check’:
/usr/src/kernel/nvidia/drivers/video/tegra/dc/hdcp/hdmihdcp.c:1940:16: error: unused variable ‘nonce’ [-Werror=unused-variable]
unsigned char nonce[HDCP_NONCE_SIZE];
^~~~~
cc1: all warnings being treated as errors
scripts/Makefile.build:335: recipe for target ‘drivers/video/tegra/dc/hdcp/hdmihdcp.o’ failed
make[4]: *** [drivers/video/tegra/dc/hdcp/hdmihdcp.o] Error 1
scripts/Makefile.build:649: recipe for target ‘drivers/video/tegra/dc’ failed
make[3]: *** [drivers/video/tegra/dc] Error 2
scripts/Makefile.build:649: recipe for target ‘drivers/video/tegra’ failed
make[2]: *** [drivers/video/tegra] Error 2
scripts/Makefile.build:649: recipe for target ‘drivers/video’ failed
make[1]: *** [drivers/video] Error 2
Makefile:1104: recipe for target ‘drivers’ failed
make: *** [drivers] Error 2
Make did not successfully build
Please fix issues and retry build

expert-bot@expertbot-desktop:~/buildLibrealsense2Xavier$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 008: ID 8086:0b3a Intel Corp.
Bus 001 Device 007: ID 32e4:9230
Bus 001 Device 005: ID 1a2c:4c5e China Resource Semico Co., Ltd
Bus 001 Device 004: ID 046d:c03d Logitech, Inc. M-BT96a Pilot Optical Mouse
Bus 001 Device 003: ID 174c:2074 ASMedia Technology Inc. ASM1074 High-Speed hub
Bus 001 Device 002: ID 174c:2074 ASMedia Technology Inc. ASM1074 High-Speed hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Which version of Jetpack are you running on your AGX Xavier? The Realsense D435i is not supported by Isaac SDK 2021.1, but you seem to have failures before you even get there.