Raspberry Pi 4B 13MP AR1335 MIPI camera not working with only 5.4+ driver

Hi, I’ve got a Raspberry Pi 4B that’s already up and running (I’m using it for other stuff), but my 13MP AR1335 OBISP MIPI Camera Module just won’t work on it. The only driver I can find for this camera is a 5.4+ one. How am I supposed to proceed here? Do I have to downgrade my whole Pi to get the camera going?

Hi, no need to worry about the kernel version as long as you use the dedicated driver. That driver will actually change your kernel version automatically, so whatever you’re running now isn’t really the issue.

A couple of important things to know:

  1. The OBISP driver is no longer maintained on the latest kernel versions. It has effectively been replaced by the Pivariety camera driver going forward.

  2. If the camera still doesn’t work on the Pi 4, that isn’t a memory size problem. If you’re getting no image data at all, that usually points to a defective hardware connection (i.e. the cable line), not a software/memory issue.

So the path I’d suggest:

Can you confirm your exact kernel (uname -r) and how you connected the ribbon cable? A photo of the connection would help too.

Thanks. I think the real problem is with the OBISP GitHub that Google points to — there’s no folder called ‘5.15.32-v8~’ in there at all. My kernel is 5.15.32-v8~ and I need the matching folder, but it’s just not in the repo. What am I supposed to do about the missing kernel version folder?

To be clear about what I already tried:

  • I went looking through the OBISP GitHub repository for a ‘5.15.32-v8~’ folder and it simply isn’t there. That’s the exact build I need for my Pi 4B.

For reference, the earlier guidance I was given said:

“Don’t care the kernel version if using the driver here: https://www.arducam.com/docs/arducam-obisp-mipi-camera-module/3-use-on-raspberry-pi/3-0-emergent-temporary-driver-for-the-lastest-rpi-2020-12-02-update/ It will change your kernel version automatically.”

and also that the OBSIP driver is not maintained on the latest kernel version and has been replaced by the Pivariety camera driver, plus:

“About it still can’t work on pi4, the memory size is OK. Without image data maybe due to the defective hardware connection. Do you have extra cable line? Please try to change another cable line.”

I’ve attached a screenshot of what I’m seeing.

E76FD00D4FD641328B2584F6B6EAF817.png

Good catch — I think there’s a mix-up between two things here.

The OBISP GitHub repo you’re browsing is the older, external OBISP codebase. It does NOT carry a folder for every single kernel like ‘5.15.32-v8~’ — you shouldn’t be hunting for your exact kernel folder there. That’s not how this driver is meant to be installed, and the absence of that folder doesn’t mean your build is unsupported.

That’s exactly why you were told “don’t care about the kernel version.” You’re supposed to use the prebuilt emergent temporary driver package (the one for the latest RPi, 2020-12-02 update) from the Arducam docs page, not build from the GitHub tree. That installer replaces/adjusts your kernel version automatically, so you don’t need a matching ‘5.15.32-v8~’ folder at all.

I’ve sent the appropriate driver package to you through private message — please check your messages and install that one instead of pulling from the GitHub repo.

After installing, run:

  • uname -r to confirm which kernel you ended up on
  • vcgencmd get_camera to check the camera is detected

And again, if you still get no image data on the Pi 4 (memory is fine), please physically reseat the ribbon cable and, if you have a spare, swap in a different cable line. No image output with adequate memory typically means a bad connection/cable, not software.

Okay, that makes more sense — I was definitely assuming the GitHub repo should have my kernel folder. Installed the package you sent and it did change the kernel version, so I’m not on 5.15.32-v8~ anymore.

But the camera still isn’t producing any image. vcgencmd get_camera shows it as detected, but I get nothing coming through the capture. I reseated the ribbon cable but I’m not sure I have a spare one lying around to swap in.

Thanks, that’s useful. Detection showing up while you get no image data is the classic symptom here.

Let’s make sure we’re on the right driver first: since your kernel is now the latest one, the OBISP driver is no longer maintained there — the newer kernels use the Pivariety camera driver, so please confirm you’re loading that, not trying to force the old OBISP path. If you’re mixing the two you’ll get exactly this: device detected, no frames.

If it’s still the same after that, then we’re back to the hardware side. No image data with adequate memory on a Pi 4 almost always comes down to the physical connection/cable line. Since you reseated it already, the remaining step is to try a completely different cable line — that’s the most reliable way to rule out a defective one. A clear close-up photo of both ends of the cable seated in the connectors would also help me check the orientation and seating.

If you can get hold of any spare ribbon cable to test with, that’s the next thing I’d do.

I’ll try to track down another cable line and test with it, but I don’t have one on hand right now. Is there anything else I can check in the meantime, or am I just stuck until I get a new cable?

Understood — here’s where we’ve landed so far, in case it helps anyone else hitting this:

  • The kernel version is not the deciding factor. When you use the correct prebuilt driver, it changes your kernel version for you. Hunting for your exact kernel folder in the OBISP GitHub repo is a dead end — that folder simply doesn’t exist there and isn’t required.
  • On the latest kernels, the OBISP driver is no longer maintained and has been replaced by the Pivariety camera driver, so use that path instead.
  • Switching to the emergent temporary driver package did change the kernel as expected, but you’re still getting no image data. Since the Pi 4’s memory is fine and vcgencmd get_camera still detects the sensor, the remaining suspect is the hardware connection — specifically the cable line.

So the current conclusion/workaround stands: the software side is sorted (correct driver + kernel auto-change), and the outstanding step is to swap in a different cable line to rule out a defective one. Until you can test with another cable, the issue is effectively on hold — there isn’t a software fix to chase here. Drop a note when you’ve tried a new cable (or post those connector photos) and we’ll pick it up from there.