Hi everyone. I’m trying to install the kernel driver for an Arducam B0274 (IMX477) camera on my Jetson Orin Nano, but I keep getting an error. The driver I’m trying to install is 5.10.120-35.4.1 for imx477, and my kernel is 5.10.120-tegra-35.4.1-20230801124926. The error says “Cannot the corresponding dev package” and “Jetson version unknown”. I tried installing offline because the device has no internet. Does this install actually need an internet connection?
Thanks for the details. First, can you confirm whether you’re using the official NVIDIA Jetson Orin Nano Developer Kit? Also, could you share a couple of pictures of the front and back of the board? You can send them over via private message if you don’t want to post them here. That’ll help us rule out hardware issues before we dig into the driver.
I’ve sent you the front and back photos of the Orin Nano board via private message.
Got them, thanks. Can you paste the exact commands/steps you used when trying to install the IMX477 driver? Knowing exactly where the error appears and the full message would help a lot.
I was following the start guide, but the install failed partway through with an error. I downloaded the driver and imx477.sh on a separate Windows PC and copied them over with a USB stick since the Jetson has no internet. I have a screenshot of the error if that helps.
Let’s make sure you’re on the correct guide. Please install the camera driver following the steps here: Quick-Start-Guide - Arducam Wiki. Copying the files over via USB is fine in principle, but the driver package has to match your kernel version 5.10.120-tegra.
Okay, this time the driver installed successfully. But now the camera isn’t recognized. I checked dmesg and it looks like the installed driver may not have been adapted properly. Is there a way to confirm whether the driver is actually installed correctly? I can paste the dmesg output if needed.
Good progress. Let’s check the physical connection before assuming it’s a driver problem. Could you check both ends of the cable - the camera connector and the Jetson connector - and share pictures so we can verify the wiring orientation? You can send them via private message.
I’ve sent a picture of the Jetson and camera connection via private message.
Found it. Looking at the photo, your camera ribbon cable is reversed. Flip the cable around so the contacts are oriented the correct way at both ends, reconnect it, and let me know if the camera shows up now.
That was it! After reversing the cable the camera is detected successfully now, thanks. But I have a new problem - the camera is detected, but I can’t view Pixel format, preview, or capture video. Preview and capture don’t show anything.
For preview, use the commands in the driver repo here: MIPI_Camera/Jetson/IMX477/driver at master · ArduCAM/MIPI_Camera · GitHub. One thing to remember: SENSOR_ID and FRAMERATE only need to be set once in the terminal session.
I tried the preview code but it failed. I’m connected on cam0. The error I get is: no element “noverlaysink”. I’m on JetPack 5.1.2 installed via the SD card image.
Try this gst-launch command instead:
gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! ‘video/x-raw(memory:NVMM),width=1920, height=1080, framerate=10/1, format=NV12’ ! nvvidconv flip-method=0 ! ‘video/x-raw,width=960, height=720’ ! nvvidconv ! nvegltransform ! nveglglessink -e
That gst-launch command works and I can see the live video now. But I still can’t capture frames in OpenCV. I can read the frame size, but capture.read() never returns a frame. Can this camera be used with OpenCV? Here’s my script:
import cv2
try:
capture = cv2.VideoCapture(0)
width = capture.get(cv2.CAP_PROP_FRAME_WIDTH)
height = capture.get(cv2.CAP_PROP_FRAME_HEIGHT)
print('frame size = ' + str(width) + ' x ' + str(height))
ret, frame = capture.read()
print(ret)
except:
import sys
print(“Error”,sys.exc_info()[0])
print(sys.exc_info()[1])
import traceback
print(traceback.format_tb(sys.exc_info()[2]))
Take a look at the sample code here: MIPI_Camera/Jetson/IMX477/AF_LENS/JetsonCamera.py at master · ArduCAM/MIPI_Camera · GitHub. It shows how to grab frames on this platform using the camera module.
I tried that sample code, but it threw an error when I ran it.
The GitHub script is only meant as a reference sample - it isn’t a ready-to-run script for every setup. You’ll need to adapt it to your own environment, for example checking which device node your camera is on and setting the resolution/format to match your setup. If you can post the exact traceback you got when running it, we can look at what specifically needs adjusting.