Arducam 64MP - No cameras available (different thread)

@jevyjevjevs
I tested it and the camera works.You can reinstall the software.

wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
chmod +x ./install_pivariety_pkgs.sh
sudo ./install_pivariety_pkgs.sh -p libcamera_dev
sudo ./install_pivariety_pkgs.sh -p libcamera_apps


Later today, I will make the relevant mirror.

@jevyjevjevs

https://drive.google.com/file/d/1ASQcQiXLej2shoZ6A6kHJfiVPD371L-M/view

Thanks for jumping in @Edward This is my second reinstall on this Rpi4 and I tried two reinstalls on a Rpi3 with the same results.

Though, you just linked to a different image though. The one I have is from OctoPrint.org - Download & Setup OctoPrint and is buster based. The one you liked to looks like it’s using bullseye. Where did you find that? (Edit:I see it now as the release candidate on that page) I can certainly give it a try.

@Edward A fresh install gets us far closer. I used the image from Octoprint site:

Linux octoprint 5.10.92-v7l+ #1514 SMP Mon Jan 17 17:38:03 GMT 2022 armv7l GNU/Linux
pi@octoprint:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye
pi@octoprint:~ $ dpkg -l | grep libcamera
ii  libcamera-apps                       0.0.7                            armhf        libcamera-apps
ii  libcamera-dev                        0.0.7                            armhf        libcamera

Results in:

pi@octoprint:~ $ libcamera-still --list-cameras
[0:01:28.683505593] [869]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3572-e13ccdd5
[0:01:28.691762644] [870]  WARN CameraSensorProperties camera_sensor_properties.cpp:163 No static properties available for 'arducam_64mp'
[0:01:28.691811328] [870]  WARN CameraSensorProperties camera_sensor_properties.cpp:165 Please consider updating the camera sensor properties database
[0:01:28.691851476] [870] ERROR CameraSensor camera_sensor.cpp:591 'arducam_64mp 10-001a': Camera sensor does not support test pattern modes.
Open i2c bus error: No such file or directory
[0:01:28.715495151] [870]  WARN RPI raspberrypi.cpp:1263 Mismatch between Unicam and CamHelper for embedded data usage!
[0:01:28.716064556] [870] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:01:28.716252073] [870]  INFO RPI raspberrypi.cpp:1386 Registered camera /base/soc/i2c0mux/i2c@1/arducam_64mp@1a to Unicam device /dev/media3 and ISP device /dev/media0
Available cameras
-----------------
0 : arducam_64mp [9248x6944] (/base/soc/i2c0mux/i2c@1/arducam_64mp@1a)
    Modes: 'SRGGB10_CSI2P' : 1280x720 1920x1080 2312x1736 3840x2160 4624x3472 9152x6944 
[0:01:28.717722269] [870] ERROR V4L2 v4l2_videodevice.cpp:1211 /dev/video0[12:cap]: Unable to request 0 buffers: Device or resource busy
[0:01:28.718019175] [870] ERROR V4L2 v4l2_videodevice.cpp:1211 /dev/video0[12:cap]: Unable to request 0 buffers: Device or resource busy

@jevyjevjevs
The image I made directly enables the camera service, so you can’t use libcamera on the command line, you can directly enter the ipv4 address in the web page to view the camera.

You can try the link here
https://unofficialpi.org/Distros/OctoPi/nightly/

Confirmed working with that image. Was the only additional thing you did was to install the CameraSettings plugin? If so if you did it via pip directly, it blocks the ability to upgrade Octopi. I think the standard way of installing is via the plugin manager.

@jevyjevjevs
Yes, as you said. We haven’t thought about it that much, and it’s a good suggestion.

Hello Edward!

Sorry to resurrect this thread but I think I’ve hit a brick wall. I’ve followed all of your guides through several threads. Including this one, I went from No Camera available to the camera being recognized in terminal. However, for some reason on Octopi, I just get an infinite “Wait webcam stream loading”

When I try to access the webcam via :8080/ I get to a MJPG stream page with blank windows in the example. Do I possibly have a hardware issue? Or is it specifically Octopi that might be the problem?

Again, sorry for rezing the post!

@JamesGrimm

Can you take a picture of your status?

We have made a mirror image with all environments installed. Have you tried it?

webcamd.service - the OctoPi webcam daemon with the user specified config
     Loaded: loaded (/etc/systemd/system/webcamd.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2023-03-07 20:28:38 CST; 59min ago
   Main PID: 583 (webcamd)
      Tasks: 3 (limit: 4915)
        CPU: 313ms
     CGroup: /system.slice/webcamd.service
             ├─583 /bin/bash /root/bin/webcamd
             └─622 ./mjpg_streamer -o output_http.so -w ./www -n -l 0.0.0.0 -p 8080 -i input_uvc.so -r 1920x1080 -f 30 -y -d /dev/video0

Mar 07 20:28:39 octopi mjpg_streamer[622]: MJPG-streamer [622]: TV-Norm...........: DEFAULT
Mar 07 20:28:39 octopi mjpg_streamer[622]: MJPG-streamer [622]: www-folder-path......: ./www/
Mar 07 20:28:39 octopi mjpg_streamer[622]: MJPG-streamer [622]: HTTP TCP port........: 8080
Mar 07 20:28:39 octopi mjpg_streamer[622]: MJPG-streamer [622]: HTTP Listen Address..: 0.0.0.0
Mar 07 20:28:39 octopi mjpg_streamer[622]: MJPG-streamer [622]: username:password....: disabled
Mar 07 20:28:39 octopi mjpg_streamer[622]: MJPG-streamer [622]: commands.............: disabled
Mar 07 20:28:39 octopi mjpg_streamer[622]: MJPG-streamer [622]: starting input plugin input_uvc.so
Mar 07 20:28:39 octopi mjpg_streamer[622]: MJPG-streamer [622]: starting output plugin: output_http.so (ID: 00)
Mar 07 20:28:39 octopi mjpg_streamer[622]: MJPG-streamer [622]: Can't enable video in first time
Mar 07 20:28:39 octopi mjpg_streamer[622]: MJPG-streamer [622]: cleaning up resources allocated by input thread

I tried one of the links form the unofficialpi.org that you linked above, but I hit the same wall that I have on the current build.

I will try the mirror you just linked on a different SD card and see how it goes :smiley:

I can’t seem to get the server to even start running with the mirror. I’m trying to get a copy of the original wpa_supplicant to try and overwrite the one from the mirror -_-

I’m able to SSH into the pi, but I can’t access it via a browser it says “Octoprint Server is Currently not running”

However, here is the status of this instance :sweat_smile:


webcamd.service - the OctoPi webcam daemon with the user specified config
     Loaded: loaded (/etc/systemd/system/webcamd.service; enabled; vendor preset: enabled)
     Active: activating (start) since Wed 2023-03-08 04:31:42 GMT; 7s ago
Cntrl PID: 1309 (webcamd)
      Tasks: 9 (limit: 4915)
        CPU: 7.675s
     CGroup: /system.slice/webcamd.service
             ├─1309 /bin/bash /root/bin/webcamd
             ├─1326 ./mjpg_streamer -o output_http.so -w ./www  -i input_libcamera.so -f 30 -r 640x480
             └─1345 sleep 30

Mar 08 04:31:42 octopi mjpg_streamer[1326]: MJPG-streamer [1326]: starting application
Mar 08 04:31:42 octopi mjpg_streamer[1326]: MJPG-streamer [1326]: MJPG Streamer Version: git rev: e194e8594036e53ca25e6d840b31363c7df6f1d5
Mar 08 04:31:42 octopi mjpg_streamer[1326]: MJPG-streamer [1326]: Desired Resolution: 640 x 480
Mar 08 04:31:42 octopi mjpg_streamer[1326]: MJPG-streamer [1326]: www-folder-path......: ./www/
Mar 08 04:31:42 octopi mjpg_streamer[1326]: MJPG-streamer [1326]: HTTP TCP port........: 8080
Mar 08 04:31:42 octopi mjpg_streamer[1326]: MJPG-streamer [1326]: HTTP Listen Address..: (null)
Mar 08 04:31:42 octopi mjpg_streamer[1326]: MJPG-streamer [1326]: username:password....: disabled
Mar 08 04:31:42 octopi mjpg_streamer[1326]: MJPG-streamer [1326]: commands.............: enabled
Mar 08 04:31:42 octopi mjpg_streamer[1326]: MJPG-streamer [1326]: starting input plugin input_libcamera.so
Mar 08 04:31:42 octopi mjpg_streamer[1326]: MJPG-streamer [1326]: starting output plugin: output_http.so (ID: 00)
~

@JamesGrimm

I don’t see any errors reported.

It takes time to start the service, have you tried again after a while?
Are you directly entering the ip through the website to access?

The mirror image is made according to the following tutorial.
We have tested many times, and the whole process should be no problem.
https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/OctoPrint/

Yup! I somehow corrupted my original instance so all I have on the pi right is the mirror that you linked. Its been on all night annnnd still nothing. Like I said, it looks like it’s running fine but I just can’t access octopi from the browser using the ipaddress. I’ll try and reinstall and see if it lets me get to it. I think I’m just having terrible luck lol.

It looks like the problem I’m running into is that the Raspberry pi installer keeps changing my the original username from “pi” to the name of my PC.

Even if I try to enable SSH and change the username back to Pi during setup, it still causes the error. At least that’s what the Octopi forumns say is the issue.

I was able to get by this by installing the mirror without setting up SSH. I then went into the boot folder on the SD card and added a blank ssh.txt file annnnnd now it works!! The camera is on and everything :smiley: Thank you!!!

Is there a guide on getting the camera to focus?

Can I update to the latest version of Octopi? Or do I leave it as is?

@JamesGrimm

https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/OctoPrint/
The end of this link is about how to use focus.

If it is not necessary, you can leave it as it is. In theory, there is no problem for you to update, you can try following the tutorial.

Thank you :smiley: everything works great! You’re amazing

@JamesGrimm

Thank you too.

Glad to hear everything is work.