Hi everyone, hoping someone can help. I bought an Arducam Pi Camera for Octoprint/Octopi Webcam with Motorized Lens (OV5647 motorized focus camera) to use on a Raspberry Pi 4, and I’ve never been able to get it working. I followed the official Arducam quick start guide for the OV5647 Motorized Focus Camera, but the installation keeps failing. The camera never actually works.
Sorry to hear that. Can you tell me exactly what command you ran and post the terminal output? Also, what OS are you running on the Pi 4? That will help narrow it down.
Sure. I ran this command from the guide:
./install_pivariety_pkgs.sh -p libcamera_dev
The script prints some info about my board first, then downloads something, and then it fails. Here’s the beginning of the output:
=================================================
Hardware Revision: b03111
Kernel Version: 5.10.103-v7l+
OS Codename: buster
ARCH: armv7l
kernel:5.10.103-v7l+
Thanks, that’s helpful. It looks like you’re on Raspberry Pi OS Buster with kernel 5.10.103-v7l+. Could you post the rest of the output after the kernel line? I want to see exactly where the script stops.
Here’s the full output:
pi@octopitft:~ $ ./install_pivariety_pkgs.sh -p libcamera_dev
Hardware Revision: b03111
Kernel Version: 5.10.103-v7l+
OS Codename: buster
ARCH: armv7l
kernel:5.10.103-v7l+
–2024-01-20 00:09:01-- https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/libcamera_links.txt
Resolving github.com (github.com)… 140.82.114.4
Connecting to github.com (github.com)|140.82.114.4|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/509766ce-689d-426c-8717-331c3fa90052?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240120%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240120T050901Z&X-Amz-Expires=300&X-Amz-Signature=25241858d0e483443328b1acb67b694476cf63778ba662205e0dc175688ee357&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera_links.txt&response-content-type=application%2Foctet-stream [following]
–2024-01-20 00:09:01-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/509766ce-689d-426c-8717-331c3fa90052?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240120%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240120T050901Z&X-Amz-Expires=300&X-Amz-Signature=25241858d0e483443328b1acb67b694476cf63778ba662205e0dc175688ee357&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera_links.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)… 185.199.109.133, 185.199.111.133, 185.199.110.133, …
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 7874 (7.7K) [application/octet-stream]
Saving to: ‘libcamera_links.txt’
libcamera_links.txt 100%[========================================================================================================================================>] 7.69K --.-KB/s in 0.004s
2024-01-20 00:09:01 (1.79 MB/s) - ‘libcamera_links.txt’ saved [7874/7874]
./install_pivariety_pkgs.sh: line 543: [: too many arguments
It downloads libcamera_links.txt fine and then dies right there. I just get ‘can’t install libs’ essentially.
Thanks for posting the full output. The download itself is succeeding, so it’s not a network problem. The failure is happening at line 543 of install_pivariety_pkgs.sh with [: too many arguments. That error comes from a shell test in the script that’s receiving more arguments than it expects.
Looking at your environment again: Hardware Revision b03111, kernel 5.10.103-v7l+, OS Codename buster, armv7l. The key issue here is the OS. The install script is not compatible with Buster. That line 543 failure is related to running it on the unsupported Buster OS.
So Buster is the problem? The official quick start guide I used doesn’t mention that. I just assumed it would work on Raspberry Pi OS.
Yes, that’s the root cause. The recommended fix is to switch the Raspberry Pi 4 from Buster to Bullseye OS or Bookworm OS, then re-run:
./install_pivariety_pkgs.sh -p libcamera_dev
On Bullseye or Bookworm the script should get past line 543 and complete the libcamera installation.
That’s a problem for me. The product info I saw only says Raspberry Pi 3/3B+/4 with Raspbian. There’s no mention anywhere that Buster isn’t supported or that Bullseye is a minimum requirement. I also can’t move to Bullseye or Bookworm because of other compatibility reasons with my setup. Is there any way to make this work on Buster?
I understand the frustration. Given the other compatibility constraints, could you share what’s keeping you on Buster? There might be a way to work around the specific script failure rather than changing the whole OS, but I need to understand what’s fixed in your setup.
I’d rather not change the OS on this Pi since it’s running other things that are tied to Buster and I can’t risk breaking them. I was hoping the camera would just install cleanly on the setup I already have.
Understood. To summarize where things stand: the install script downloads libcamera_links.txt successfully, then fails at line 543 with [: too many arguments. This happens because the script isn’t compatible with Buster. The supported path is to use Bullseye or Bookworm and re-run ./install_pivariety_pkgs.sh -p libcamera_dev. Since you can’t move off Buster for compatibility reasons, the camera remains non-functional on the current setup, and I don’t have a confirmed Buster workaround for that script failure right now.