Hi, hoping someone can help. I’m trying to install the ArduCAM IMX477 driver on my Jetson and it keeps failing near the very end. The installer seems to run fine and downloads everything, but then it bails out with something about dtoverlays. I’m not sure what I’m doing wrong. Has anyone hit this before?
Hi, happy to help. Can you post the exact command you ran and the full terminal output? Also, tell us which board you’re on and which JetPack/kernel you’re running, so we can line it up with the right kernel module.
Sure. The board is a reComputer J2011 Edge AI device (Jetson Xavier NX 8GB module, aluminium case) with the pre-installed JetPack system. The command I ran was:
$ ./install_full.sh -m imx477
It prompted me for my sudo password and then started pulling files down. Here’s the tail of the output:
–2022-06-01 16:36:27-- https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/modules.txt
Resolving github.com (github.com)… 192.30.255.113
Connecting to github.com (github.com)|192.30.255.113|:443… connected.
HTTP request sent, awaiting response… 302 Found
Saving to: ‘modules.txt’
modules.txt 100%[===================>] 1.06K --.-KB/s in 0s
2022-06-01 16:36:28 (12.2 MB/s) - ‘modules.txt’ saved [1082/1082]
–2022-06-01 16:36:28-- https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/imx477_links.txt
Saving to: ‘imx477_links.txt’
imx477_links.txt 100%[===================>] 7.12K --.-KB/s in 0.001s
2022-06-01 16:36:29 (4.65 MB/s) - ‘imx477_links.txt’ saved [7292/7292]
–2022-06-01 16:36:30-- https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.1-nx/arducam-nvidia-l4t-kernel-t194-4.9.253-tegra-32.6.1-20211009014634_arm64_imx477.deb
HTTP request sent, awaiting response… 200 OK
Length: 8357846 (8.0M) [application/octet-stream]
arducam-nvidia-l4t- 100%[===================>] 7.97M 19.7MB/s in 0.4s
2022-06-01 16:36:31 (19.7 MB/s) - ‘arducam-nvidia-l4t-kernel-t194-4.9.253-tegra-32.6.1-20211009014634_arm64_imx477.deb’ saved [8357846/8357846]
Selecting previously unselected package arducam-nvidia-l4t-kernel.
(Reading database … 173049 files and directories currently installed.)
Preparing to unpack arducam-nvidia-l4t-kernel-t194-4.9.253-tegra-32.6.1-20211009014634_arm64_imx477.deb …
Unpacking arducam-nvidia-l4t-kernel (4.9.253-tegra-32.6.1-20211009014634) …
Setting up arducam-nvidia-l4t-kernel (4.9.253-tegra-32.6.1-20211009014634) …
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 [email protected]
It gave me that last line asking to send the error to support, so here I am. Let me know what else you need.
Thanks, that output is really useful. Good news first: the downloads are all fine. modules.txt (1082/1082), imx477_links.txt (7292/7292) and the kernel .deb (8357846/8357846) all saved at 100%. So it’s not a network or fetch problem.
The failure is later, in the package post-install script. dpkg unpacked and set up arducam-nvidia-l4t-kernel (4.9.253-tegra-32.6.1-20211009014634), then hit:
An unknown error occurred while installing dtoverlays.
…
post-installation script subprocess returned error exit status 255
So the thing that’s failing is the dtoverlays step, not the driver download itself. Two quick questions:
- What does
uname -areport on that board? - How is the IMX477 physically connected - directly on the ArduCAM board, or through an adapter/loadboard?
uname -a reports:
Linux 4.9.253-tegra-32.6.1-20211009014634 #1 SMP PREEMPT … aarch64 GNU/Linux
And for the connection - I’m using the IMX477 with a third-party loadboard, not the ArduCAM one. Could that matter?
That kernel matches what the package targets (t194 / 4.9.253-tegra-32.6.1), and the driver set here is v0.0.3 with the arducam-nvidia-l4t-kernel package v0.0.1-nx, so the versions line up. The problem is purely the post-install dtoverlays step returning exit status 255.
Before we blame the hardware, let’s rule out a half-configured package state. Since the post-install failed, the package is likely left unconfigured. Can you try a clean reinstall and tell me if the dtoverlays error comes back the same way?
Tried that. I installed the .deb directly with sudo dpkg -i arducam-nvidia-l4t-kernel-t194-4.9.253-tegra-32.6.1-20211009014634_arm64_imx477.deb, and I also re-ran ./install_full.sh -m imx477 a couple of times. Every time I get the same result:
An unknown error occurred while installing dtoverlays.
…post-installation script subprocess returned error exit status 255
So it’s consistent, not a one-off glitch.
So it’s reproducible every time and the kernel package stays misconfigured after. That rules out a partial/unpacked state. Since you’re using a third-party loadboard, that board may not be supported by the ArduCAM camera, and because of the third-party loadboard we can’t be sure what’s happening between the camera and the board. I’m going to check with our engineer about this exact combination and the dtoverlays failure. I’ll come back once I have something.
Thanks, appreciate you digging into it. I’ll hold off on further attempts for now - just let me know if you need any more output or a specific test.
No problem. Just to recap where we stand for anyone following along: the install command ./install_full.sh -m imx477 downloads all files correctly on the Jetson Xavier NX (t194, kernel 4.9.253-tegra-32.6.1-20211009014634, arm64), and dpkg unpacks and sets up arducam-nvidia-l4t-kernel (v0.0.1-nx / driver v0.0.3). The failure is in the package’s post-install script at the dtoverlays stage, which exits with status 255, leaving the package unconfigured. That error is reproducible even when installing the .deb directly. Our current conclusion is that the third-party loadboard may be the cause, since that’s not a supported combination with the ArduCAM camera, so behavior with the camera/board pair can’t be guaranteed. I’m checking with engineering and will follow up here once there’s an update - there’s no confirmed fix yet.