Skip to content

imx477 driver installation fails on jetpack 5.1.2 (xavier nx) #211

@dixitm624

Description

@dixitm624

Hello ,
I am using jetson xavier nx with custom carrier(same as devkit but not devkit) with jetpack 5.1.2.

After i did modify the tegra194-p3668-0001-p3509-0000.dtb to use arducam imx477 camera.

Now, when i try to open the camera using nvgstcapture-1.0 i get:

  nvidia@ubuntu:~$ nvgstcapture-1.0 
 
 Encoder null, cannot set bitrate!
 Encoder Profile = High
 Supported resolutions in case of ARGUS Camera
   (2) : 640x480
   (3) : 1280x720
   (4) : 1920x1080
   (5) : 2104x1560
   (6) : 2592x1944
   (7) : 2616x1472
   (8) : 3840x2160
   (9) : 3896x2192
   (10): 4208x3120
   (11): 5632x3168
   (12): 5632x4224
 
 Runtime ARGUS Camera Commands:
 
   Help : 'h'
   Quit : 'q'
   Set Capture Mode:
       mo:<val>
           (1): image
           (2): video
   Get Capture Mode:
       gmo
   Set sensor orientation:
       so:<val>
           (0): none
           (1): Rotate counter-clockwise 90 degrees
           (2): Rotate 180 degrees
           (3): Rotate clockwise 90 degrees
   Get sensor orientation:
       gso
   Set sensor mode:
       smo:<val> e.g., smo:1
   Get sensor mode:
       gsmo
   Set Whitebalance Mode:
       wb:<val>
           (0): off
           (1): auto
           (2): incandescent
           (3): fluorescent
           (4): warm-fluorescent
           (5): daylight
           (6): cloudy-daylight
           (7): twilight
           (8): shade
           (9): manual
   Get Whitebalance Mode:
       gwb
   Set Saturation (0 to 2):
       st:<val> e.g., st:1.25
   Get Saturation:
       gst
   Set Exposure Compensation (-2 to 2):
       ec:<val> e.g., ec:-2
   Get Exposure Compensation:
       gec
   Set Auto Whitebalance Lock:
       awbl:<val> e.g., awbl:0
   Get Auto Whitebalance Lock:
       awbl
   Set Auto Exposure Lock:
       ael:<val> e.g., ael:0
   Get Auto Exposure Lock:
       gael
   Set TNR Mode:
       tnrm:<val> e.g., tnrm:1
           (0): OFF
           (1): FAST
           (2): HIGH QUALITY
   Get TNR Mode:
       gtnrm
   Set TNR Strength (-1 to 1):
       tnrs:<val> e.g., tnrs:0.5
   Get TNR Strength:
       gtnrs
   Set EE Mode:
       eem:<val> e.g., eem:1
           (0): OFF
           (1): FAST
           (2): HIGH QUALITY
   Get EE Mode:
       geem
   Set EE Strength (-1 to 1):
       ees:<val> e.g., ees:0.5
   Get EE Strength:
       gees
   Set Auto Exposure Anti-Banding (0 to 3):
       aeab:<val> e.g., aeab:2
           (0): OFF
           (1): MODE AUTO
           (2): MODE 50HZ
           (3): MODE 60HZ
   Get Auto Exposure Anti-Banding:
       gaeab
   Set Gain Range:
       gr:<val><space><val> e.g., gr:1 16
   Get Gain Range:
       ggr
   Set Exposure Time Range:
       etr:<val><space><val> e.g., etr:34000 35000
   Get Exposure Time Range:
       getr
   Set ISP Digital Gain Range:
       dgr:<val><space><val> e.g., dgr:2 152
   Get ISP Digital Gain Range:
       gdgr
   Capture: enter 'j' OR
            followed by a timer (e.g., jx5000, capture after 5 seconds) OR
            followed by multishot count (e.g., j:6, capture 6 images)
            timer/multihot values are optional, capture defaults to single shot with timer=0s
   Start Recording : enter '1'
   Stop Recording  : enter '0'
   Video snapshot  : enter '2' (While recording video)
   Get Preview Resolution:
       gpcr
   Get Image Capture Resolution:
       gicr
   Get Video Capture Resolution:
       gvcr
 
 
 Runtime encoder configuration options:
 
   Set Encoding Bit-rate(in bytes):
       br:<val> e.g., br:4000000
   Get Encoding Bit-rate(in bytes):
       gbr
   Set Encoding Profile(only for H.264):
       ep:<val> e.g., ep:1
           (0): Baseline
           (1): Main
           (2): High
   Get Encoding Profile(only for H.264):
       gep
   Force IDR Frame on video Encoder(only for H.264):
       Enter 'f' 
 
 
 bitrate = 4000000
 Encoder Profile = High
 Encoder control-rate = 1
 
 Using winsys: x11 
 Opening in BLOCKING MODE 
 ** Message: 21:04:17.275: <main:4734> iterating capture loop ....
 NvMMLiteOpen : Block : BlockType = 4 
 ===== NvVideo: NVENC =====
 NvMMLiteBlockCreate : Block : BlockType = 4 
 GST_ARGUS: Creating output stream
 CONSUMER: Waiting until producer is connected...
 GST_ARGUS: Available Sensor modes :
 GST_ARGUS: 3840 x 2160 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 22.250000; Exposure Range min 13000, max 683709000;
 
 GST_ARGUS: 1920 x 1080 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 22.250000; Exposure Range min 13000, max 683709000;
 
 GST_ARGUS: Running with following settings:
    Camera index = 0 
    Camera mode  = 1 
    Output Stream W = 1920 H = 1080 
    seconds to Run    = 0 
    Frame Rate = 59.999999 
 GST_ARGUS: Setup Complete, Starting captures for 0 seconds
 GST_ARGUS: Starting repeat capture requests.
 CONSUMER: Producer has connected; continuing.
 nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
 Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:694 NvBufSurfaceFromFd Failed.
 Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-
nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:247 (propagating)

I tried installing the arducam driver as per arducam documentation but it threw error as below:

nvidia@ubuntu:~$ wget https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
 --2023-03-15 21:06:06--  https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
 Resolving github.com (github.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘github.com’
nvidia@ubuntu:~$ wget https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
--2023-03-15 21:06:22--  https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
Resolving github.com (github.com)... 20.207.73.82
Connecting to github.com (github.com)|20.207.73.82|:443... connected.
ERROR: cannot verify github.com's certificate, issued by ‘CN=Sectigo ECC Domain Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB’:
   Issued certificate not yet valid.
 To connect to github.com insecurely, use `--no-check-certificate'.
 nvidia@ubuntu:~$ wget https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
 --2023-03-15 21:06:24--  https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
 Resolving github.com (github.com)... 20.207.73.82
 Connecting to github.com (github.com)|20.207.73.82|:443... connected.
 ERROR: cannot verify github.com's certificate, issued by ‘CN=Sectigo ECC Domain Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB’:
   Issued certificate not yet valid.
 To connect to github.com insecurely, use `--no-check-certificate'.
 nvidia@ubuntu:~$ wget https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
 --2023-03-15 21:06:26--  https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
 Resolving github.com (github.com)... 20.207.73.82
 Connecting to github.com (github.com)|20.207.73.82|:443... connected.
 ERROR: cannot verify github.com's certificate, issued by ‘CN=Sectigo ECC Domain Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB’:
   Issued certificate not yet valid.
 To connect to github.com insecurely, use `--no-check-certificate'.
 nvidia@ubuntu:~$ wget https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
 --2023-03-15 21:06:28--  https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
 Resolving github.com (github.com)... 20.207.73.82
 Connecting to github.com (github.com)|20.207.73.82|:443... connected.
 ERROR: cannot verify github.com's certificate, issued by ‘CN=Sectigo ECC Domain Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB’:
   Issued certificate not yet valid.
 To connect to github.com insecurely, use `--no-check-certificate'.
 nvidia@ubuntu:~$ wget https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
 --2025-05-20 13:36:39--  https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
 Resolving github.com (github.com)... 20.207.73.82
 Connecting to github.com (github.com)|20.207.73.82|:443... connected.
 HTTP request sent, awaiting response... 302 Found
 Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/186627215/ebdc0c54-a520-42e6-b4ef-e241b3acfd59?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250520%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250520T080639Z&X-Amz-Expires=300&X-Amz-Signature=c6853287481f54f248e5179918d380f7bfa43cb75bf25a60c8fad736d48c9f5a&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dinstall_full.sh&response-content-type=application%2Foctet-stream [following]
 --2025-05-20 13:36:39--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/186627215/ebdc0c54-a520-42e6-b4ef-e241b3acfd59?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250520%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250520T080639Z&X-Amz-Expires=300&X-Amz-Signature=c6853287481f54f248e5179918d380f7bfa43cb75bf25a60c8fad736d48c9f5a&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dinstall_full.sh&response-content-type=application%2Foctet-stream
 Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.111.133, ...
 Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
 HTTP request sent, awaiting response... ^[[200 OK
 Length: 4560 (4.5K) [application/octet-stream]
 Saving to: ‘install_full.sh’
 
 install_full.sh                                    100%[===============================================================================================================>]   4.45K  --.-KB/s    in 0.001s  
 
 2025-05-20 13:36:41 (7.35 MB/s) - ‘install_full.sh’ saved [4560/4560]
 
 nvidia@ubuntu:~$ chmod +x install_full.sh
 nvidia@ubuntu:~$ ./install_full.sh -m imx477
 ./install_full.sh: line 19: warning: command substitution: ignored null byte in input
 NVIDIA Jetson Xavier NX Developer Kit
 --2025-05-20 13:36:57--  https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/modules.txt
 Resolving github.com (github.com)... 20.207.73.82
 Connecting to github.com (github.com)|20.207.73.82|:443... connected.
 HTTP request sent, awaiting response... 302 Found
 Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/186627215/2fed37dc-508d-4f3e-bf1a-c9ebf2ba994b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250520%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250520T080658Z&X-Amz-Expires=300&X-Amz-Signature=b82bfe945cc514e2d9901aec687017477c8af486ee15a58221ce7698aea60034&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dmodules.txt&response-content-type=application%2Foctet-stream [following]
 --2025-05-20 13:36:58--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/186627215/2fed37dc-508d-4f3e-bf1a-c9ebf2ba994b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250520%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250520T080658Z&X-Amz-Expires=300&X-Amz-Signature=b82bfe945cc514e2d9901aec687017477c8af486ee15a58221ce7698aea60034&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dmodules.txt&response-content-type=application%2Foctet-stream
 Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.109.133, ...
 Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 2298 (2.2K) [application/octet-stream]
 Saving to: ‘modules.txt’
 
 modules.txt                                        100%[===============================================================================================================>]   2.24K  --.-KB/s    in 0s      
 
 2025-05-20 13:36:59 (6.20 MB/s) - ‘modules.txt’ saved [2298/2298]
 
 --2025-05-20 13:36:59--  https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/imx477_links.txt
 Resolving github.com (github.com)... 20.207.73.82
 Connecting to github.com (github.com)|20.207.73.82|:443... connected.
 HTTP request sent, awaiting response... 302 Found
 Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/186627215/1f9ac5c1-ccfe-4c98-9418-b341b95f5d5c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250520%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250520T080700Z&X-Amz-Expires=300&X-Amz-Signature=5d3702c8bcf18f091ccaecf0bcc5b386fdb40fb1e62062b1b1cafa0350af7655&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dimx477_links.txt&response-content-type=application%2Foctet-stream [following]
 --2025-05-20 13:37:00--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/186627215/1f9ac5c1-ccfe-4c98-9418-b341b95f5d5c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250520%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250520T080700Z&X-Amz-Expires=300&X-Amz-Signature=5d3702c8bcf18f091ccaecf0bcc5b386fdb40fb1e62062b1b1cafa0350af7655&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dimx477_links.txt&response-content-type=application%2Foctet-stream
 Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.109.133, ...
 Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 20977 (20K) [application/octet-stream]
 Saving to: ‘imx477_links.txt’
 
 imx477_links.txt                                   100%[===============================================================================================================>]  20.49K  --.-KB/s    in 0.01s   
 
 2025-05-20 13:37:01 (2.00 MB/s) - ‘imx477_links.txt’ saved [20977/20977]
 
 --2025-05-20 13:37:01--  https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.1-nx/arducam-nvidia-l4t-kernel-t194-5.10.120-tegra-35.4.1-20230807062426_arm64_imx477.deb
 Resolving github.com (github.com)... 20.207.73.82
 Connecting to github.com (github.com)|20.207.73.82|:443... connected.
 HTTP request sent, awaiting response... 302 Found
 Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/186627215/5b017921-c4ce-4894-8806-094c831118b4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250520%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250520T080701Z&X-Amz-Expires=300&X-Amz-Signature=7fa8dcc70311d93815ed2733ad6e7f100bc83364a721f7fb50d920cd5bfcb8fd&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Darducam-nvidia-l4t-kernel-t194-5.10.120-tegra-35.4.1-20230807062426_arm64_imx477.deb&response-content-type=application%2Foctet-stream [following]
 --2025-05-20 13:37:01--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/186627215/5b017921-c4ce-4894-8806-094c831118b4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250520%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250520T080701Z&X-Amz-Expires=300&X-Amz-Signature=7fa8dcc70311d93815ed2733ad6e7f100bc83364a721f7fb50d920cd5bfcb8fd&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Darducam-nvidia-l4t-kernel-t194-5.10.120-tegra-35.4.1-20230807062426_arm64_imx477.deb&response-content-type=application%2Foctet-stream
 Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.109.133, ...
 Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 9997384 (9.5M) [application/octet-stream]
 Saving to: ‘arducam-nvidia-l4t-kernel-t194-5.10.120-tegra-35.4.1-20230807062426_arm64_imx477.deb’
 
 arducam-nvidia-l4t-kernel-t194-5.10.120-tegra-35.4 100%[===============================================================================================================>]   9.53M  7.52MB/s    in 1.3s    
 
 2025-05-20 13:37:04 (7.52 MB/s) - ‘arducam-nvidia-l4t-kernel-t194-5.10.120-tegra-35.4.1-20230807062426_arm64_imx477.deb’ saved [9997384/9997384]
 
 [sudo] password for nvidia: 
 Selecting previously unselected package arducam-nvidia-l4t-kernel.
 (Reading database ... 146839 files and directories currently installed.)
 Preparing to unpack arducam-nvidia-l4t-kernel-t194-5.10.120-tegra-35.4.1-20230807062426_arm64_imx477.deb ...
 Unpacking arducam-nvidia-l4t-kernel (5.10.120-tegra-35.4.1-20230807062426) ...
 Setting up arducam-nvidia-l4t-kernel (5.10.120-tegra-35.4.1-20230807062426) ...
 
 Traceback (most recent call last):
   File "/opt/arducam/jetson-io/config-by-hardware.py", line 125, in <module>
     main()
   File "/opt/arducam/jetson-io/config-by-hardware.py", line 94, in main
     jetson = board.Board()
   File "/opt/arducam/jetson-io/Jetson/board.py", line 230, in __init__
     self.dtb = _board_get_dtb(self.compat, self.model, dtbdir)
   File "/opt/arducam/jetson-io/Jetson/board.py", line 114, in _board_get_dtb
     raise RuntimeError("No DTB found for %s!" % model)
 RuntimeError: No DTB found for NVIDIA Jetson Xavier NX Developer Kit!
 An unknown error occurred while installing dtoverlays.
 dpkg: error processing package arducam-nvidia-l4t-kernel (--install):
  installed arducam-nvidia-l4t-kernel package post-installation script subprocess returned error exit status 255
 Errors were encountered while processing:
  arducam-nvidia-l4t-kernel
 
 Unknown error, please send the error message to support@arducam.com

but my camera is registered with i2cdetect and i2c probe is successful, but coult not stream it.attached the complete dmesg
Appreciate your time.

dmesgLogs (1).txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions