Got my UC-667 carrier board and connected the IMX230 module (UC-721) to it, followed the demonstration guide on the Arducam site, but the device is not producing any frames. Running the example displayer just errors out.
Hey, thanks for the detailed output - that saves a round trip.
The good part: the I2C side is fine. Firmware Version 65537 and Sensor ID 0x0230 with a valid serial mean the board is talking to the IMX230 and the module is being enumerated correctly. So this is not a detection problem.
That pair means the capture stream was started but no buffer ever got filled - there was no frame to dequeue. So by the time the script does frame.reshape(…) it’s getting None, which is where the AttributeError comes from. The traceback is a symptom, not the cause.
A few things to check:
Which CSI connector is the UC-667 sitting on right now - CSI #1 (the one next to the HDMI) or CSI #2?
Ribbon orientation and seating. The Nano CSI connectors are annoyingly easy to half-insert, and a poor contact on the clock or data lane will give exactly this: sensor detected over I2C, no frames over MIPI.
Please grab the full dmesg output, not just the tail - dmesg > out-dmesg.txt right after running the displayer. I want to see what the MIPI/CSI driver and the sensor driver report during stream start.
Quick update - reseated the FPC and that fixed the original thing, I get frames on CSI #1 now. But as soon as that started working I hit a second problem: I can’t see any camera plugged into the CSI #2 connector at all. The exact same cameras work fine on CSI #1.
Board is an Nvidia Jetson Nano B01. I suspect it’s something in the device tree configuration, since the hardware clearly works on the other port.
Also attaching the dmesg output from the earlier run for reference: out-dmesg.txt
That’s a really useful data point: identical cameras work on CSI #1 and are invisible on CSI #2. That pushes the problem away from the modules/cabling and towards the CSI port configuration on the Nano B01 - i.e. the device tree, which matches your suspicion.
Two things I need before I can say anything definite:
The complete dmesg log. What you attached looks like it may be partial - the part I care about is the sensor probe sequence and any CSI/MIPI errors during stream start. Run the displayer on the CSI #2 connector and dump it fresh:
On the B01 with the Arducam driver, if only one video node (or one i2c sensor entry) shows up, that tells us the second port isn’t defined in the loaded DT.
Please test whether the same thing happens with other cameras on CSI #2, not just the IMX230. If a completely different module also fails there, it’s 100% port/DT, not sensor-specific.
One thing to keep in mind with the B01: the second CSI connector is a different port/phy combination than CSI #1, and the stock DT only enables one of the camera ports by default. So even with the driver installed, a camera on the other connector may simply never get probed.
Tested it as you asked. I put two other cameras I have on the CSI #2 connector and neither of them shows up either - same behaviour as the IMX230. All of them are fine on CSI #1.
One more thing I should have mentioned: this is on a fairly old Jetson image that I’d been reusing, I’ve flashed it a few times with the Arducam driver over the top, so there could be leftovers from older DT overlays in there too.
Thanks - the fact that unrelated cameras also vanish on CSI #2 rules out the modules entirely. That’s a port/device-tree issue, exactly as you thought. And the note about the old image with overlays stacked on top makes me suspect stale DTBs/overlays more than anything else, especially since your kernel is R32.6.1 and a lot of the older Arducam overlays were built against earlier R32 releases.
I’d suggest, in this order:
Move off the old image. Flash the most recent Jetson Nano image and install the current Arducam driver package on a clean system rather than layering it over an old one. Most of the cases where CSI #2 stays dead on the B01 turn out to be overlay/version mismatch, not hardware.
Only after that, if the second port still isn’t detected, use the jetson-io tool to configure the CSI connectors explicitly:
sudo /opt/nvidia/jetson-io/jetson-io.py
Make sure the configuration you select actually enables both camera ports, not just CSI #1.
3. Verify after reboot with v4l2-ctl --list-devices and dmesg | grep -i imx230 - you should see the sensor probe on the second port, and a second video node should appear.
I’ve sent you the exact overlay/driver installation details, including the overlay filename for the dual-port setup, through private message - please check your inbox. We can pick this up from wherever that lands.
That did it. I flashed the latest Jetson image and did a clean driver install instead of reusing the old one, and now both camera modules come up - one on CSI #1 and one on CSI #2. Both show as expected in v4l2-ctl --list-devices.
So the old image plus stacked overlays was indeed the problem. Thanks for the push in that direction.
Nice, glad that sorted it out. Clean image + matching driver/overlay is really the only reliable path on the B01 for two CSI ports - layering installs on an older image almost always ends up with a DTB that only knows about one camera port.
For reference, if it ever comes back on a future kernel bump: check v4l2-ctl --list-devices and dmesg | grep -i imx230 first. If only one node/sensor probe appears, it’s the DT overlay, not the camera.
Good question, and it depends on which capture path you’re using.
If you’re capturing through V4L2 / the displayer style examples: check what the driver actually exposes for your node, e.g.
v4l2-ctl -d /dev/video0 --list-ctrls
If the IMX230 driver exposes exposure controls you’ll see them listed there, typically exposure (V4L2_CID_EXPOSURE) and an auto exposure control (V4L2_CID_EXPOSURE_AUTO) with values like Auto / Manual / Shutter Priority. In that case you can set them directly:
If those controls aren’t in the list, the driver simply isn’t exposing them and v4l2-ctl won’t help - you’d have to go the register route (point 2).
If you want to poke the sensor registers directly: the IMX230 is fairly standard for this generation. The shutter/exposure registers are the SHR pair, and the gain pair sits right after them, and there’s a group-hold/stream switch register that you set to apply a new group of settings safely. The exact register addresses and valid ranges are in the Sony register map - worth pulling the datasheet rather than trusting anything off the top of my head, because writing the shutter register while the sensor is streaming without using the group hold will give you tearing or a dropped frame.
On auto exposure: with the Jetvariety path on Jetson, AE is generally done above the sensor (the ISP/Argus side), not by the module, so there isn’t a sensor-level auto exposure loop you need to disable for typical capture. That’s also why you may see the image adjust brightness gradually in Argus-based previews but not in a raw V4L2 grab - in a plain V4L2 capture you’re getting whatever register values are set at stream start, so if it looks too dark/bright you have to set exposure manually.
Bottom line for where you are now: run --list-ctrls on the node first. If the controls are there, use them - that’s the supported path and it survives restarts cleanly. If they’re not, the registers are the way, but be careful with group hold and make sure you’re using the register map that matches your sensor revision.