ArduCAM / MIPI_Camera

223 stars 107 forks source link

Install fails with JetPack 5.0.2 #159

Closed gorghino closed 1 year ago

gorghino commented 1 year ago

Hi all! I'm installing my Arducam imx477 with a carrier board + Nvidia NX. Unfortunately the install fails.

nvidia@tegra-ubuntu:~/Downloads$ uname -a
Linux tegra-ubuntu 5.10.104-tegra #1 SMP PREEMPT Mon Sep 5 14:57:40 CST 2022 aarch64 aarch64 aarch64 GNU/Linux

nvidia@tegra-ubuntu:~/Downloads$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS"

nvidia@tegra-ubuntu:~/Downloads$ cat /etc/nv_tegra_release
# R35 (release), REVISION: 1.0, GCID: 31346300, BOARD: t186ref, EABI: aarch64, DATE: Thu Aug 25 18:41:45 UTC 2022

nvidia@tegra-ubuntu:~/Downloads$ sudo dmesg | grep imx
[   17.561288] imx219 9-0010: tegracam sensor driver:imx219_v2.0.6
[   17.579824] imx219 9-0010: imx219_board_setup: error during i2c read probe (-121)
[   17.591060] imx219 9-0010: board setup failed
[   17.599477] imx219: probe of 9-0010 failed with error -121
[   17.601080] imx219 10-0010: tegracam sensor driver:imx219_v2.0.6
[   17.625971] imx219 10-0010: imx219_board_setup: error during i2c read probe (-121)
[   17.662526] imx219 10-0010: board setup failed
[   17.667899] imx219: probe of 10-0010 failed with error -121

LOG:

nvidia@tegra-ubuntu:~/Downloads$ ./install_full.sh -m arducam
--2022-09-22 14:01:04--  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/7eb06e99-349d-4522-bee5-bc5731278d7a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220922%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220922T060104Z&X-Amz-Expires=300&X-Amz-Signature=b7fdbe1df465ec08a85d46c3615f48871118c946692934d866719f0e645a8295&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=186627215&response-content-disposition=attachment%3B%20filename%3Dmodules.txt&response-content-type=application%2Foctet-stream [following]
--2022-09-22 14:01:04--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/186627215/7eb06e99-349d-4522-bee5-bc5731278d7a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220922%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220922T060104Z&X-Amz-Expires=300&X-Amz-Signature=b7fdbe1df465ec08a85d46c3615f48871118c946692934d866719f0e645a8295&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=186627215&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.110.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1082 (1.1K) [application/octet-stream]
Saving to: ‘modules.txt’

modules.txt                                                          100%[====================================================================================================================================================================>]   1.06K  --.-KB/s    in 0s      

2022-09-22 14:01:05 (9.13 MB/s) - ‘modules.txt’ saved [1082/1082]

--2022-09-22 14:01:05--  https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/arducam_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/ce7ffedb-1629-4e0d-af0a-e46963e012cc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220922%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220922T060105Z&X-Amz-Expires=300&X-Amz-Signature=3869bc6f4d43d7d51aa92493cd504156bdfc00241071380876b2d4876db88b97&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=186627215&response-content-disposition=attachment%3B%20filename%3Darducam_links.txt&response-content-type=application%2Foctet-stream [following]
--2022-09-22 14:01:05--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/186627215/ce7ffedb-1629-4e0d-af0a-e46963e012cc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220922%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220922T060105Z&X-Amz-Expires=300&X-Amz-Signature=3869bc6f4d43d7d51aa92493cd504156bdfc00241071380876b2d4876db88b97&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=186627215&response-content-disposition=attachment%3B%20filename%3Darducam_links.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8010 (7.8K) [application/octet-stream]
Saving to: ‘arducam_links.txt’

arducam_links.txt                                                    100%[====================================================================================================================================================================>]   7.82K  --.-KB/s    in 0.001s  

2022-09-22 14:01:06 (7.91 MB/s) - ‘arducam_links.txt’ saved [8010/8010]

--2022-09-22 14:01:06--  https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.1-nx/arducam-nvidia-l4t-kernel-t194-5.10.104-tegra-35.1.0-20220819070459_arm64.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/67a95ae3-212e-494c-8bd8-2a2b6ba2051e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220922%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220922T060106Z&X-Amz-Expires=300&X-Amz-Signature=62298de0191c8daf7ab37b1f1ccb8e2a4c96362752a2892dfffc27d9fd36f8da&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=186627215&response-content-disposition=attachment%3B%20filename%3Darducam-nvidia-l4t-kernel-t194-5.10.104-tegra-35.1.0-20220819070459_arm64.deb&response-content-type=application%2Foctet-stream [following]
--2022-09-22 14:01:06--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/186627215/67a95ae3-212e-494c-8bd8-2a2b6ba2051e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220922%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220922T060106Z&X-Amz-Expires=300&X-Amz-Signature=62298de0191c8daf7ab37b1f1ccb8e2a4c96362752a2892dfffc27d9fd36f8da&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=186627215&response-content-disposition=attachment%3B%20filename%3Darducam-nvidia-l4t-kernel-t194-5.10.104-tegra-35.1.0-20220819070459_arm64.deb&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9617324 (9.2M) [application/octet-stream]
Saving to: ‘arducam-nvidia-l4t-kernel-t194-5.10.104-tegra-35.1.0-20220819070459_arm64.deb’

arducam-nvidia-l4t-kernel-t194-5.10.104-tegra-35.1.0-20220819070459_ 100%[====================================================================================================================================================================>]   9.17M  5.29MB/s    in 1.7s    

2022-09-22 14:01:08 (5.29 MB/s) - ‘arducam-nvidia-l4t-kernel-t194-5.10.104-tegra-35.1.0-20220819070459_arm64.deb’ saved [9617324/9617324]

(Reading database ... 266994 files and directories currently installed.)
Preparing to unpack arducam-nvidia-l4t-kernel-t194-5.10.104-tegra-35.1.0-20220819070459_arm64.deb ...
Unpacking arducam-nvidia-l4t-kernel (5.10.104-tegra-35.1.0-20220819070459) over (5.10.104-tegra-35.1.0-20220819070459) ...
Setting up arducam-nvidia-l4t-kernel (5.10.104-tegra-35.1.0-20220819070459) ...

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
gorghino commented 1 year ago

I finally managed to solve it using /opt/nvidia/jetson-io/jetson-io.py and selecting imx477 configuration. This error happened when I tried to install it after running rootOnTF script (so it was booting from the SD card instead of EMMC)