Enable Raspberry cam module

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
AgentMax
Posts: 5
Joined: Sat Jan 09, 2021 5:13 pm

Enable Raspberry cam module

Post by AgentMax »

Hello all.

After getting a 3D printer, I decided to use Octoprint on a Pi4 (and also move VPN and PiHole from a VM on my Mac to the Pi).

All that said, DietPi, PiHole and VPN are running great.
However, I'm not able to get the camera working. I plugged the camera module in (V2.1) enabled the camera in Dietpi-config.

Now I want to add the camera to Octoprint, but it tells me that the camera is not found.

As I'm a newbie in Linux, I don't know how to test if the camera is installed correctly or it is even working ok or I just too dumb to
configure it right in octoprint.

Someone out there to help me?
I found the command

Code: Select all

hdparm -i /dev/video0
that will give me

Code: Select all

/dev/video0:
 HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
 HDIO_GET_IDENTITY failed: Inappropriate ioctl for device
:?
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Enable Raspberry cam module

Post by Joulinar »

@MichaIng
can you have a look pls.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AgentMax
Posts: 5
Joined: Sat Jan 09, 2021 5:13 pm

Re: Enable Raspberry cam module

Post by AgentMax »

I did some additional Google search.
Is it possible that the needed drivers are not available for 64bit system?
I read something on the m-jpeg streamer site on GitHub.
And I'm also not able to install RPI Cam Control as it does not support 64bit system.
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Enable Raspberry cam module

Post by Joulinar »

You could simply check it if you have a spare SD card
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AgentMax
Posts: 5
Joined: Sat Jan 09, 2021 5:13 pm

Re: Enable Raspberry cam module

Post by AgentMax »

Finished setting up DietPi 32bit on another SD card.
After installing m-jpeg streamer I'm able to use the camera in octoprint or with the local snapshot address in my browser.
Tried the same again with the 64bit system but I can't even reach the m-jpeg server. It doesn't seem to start.
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Enable Raspberry cam module

Post by Joulinar »

Probably still an issue on th Raspberry Pi OS 64bit Beta
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2987
Joined: Sat Nov 18, 2017 6:21 pm

Re: Enable Raspberry cam module

Post by MichaIng »

Indeed the 64-bit version of the Raspberry Pi GPU libraries ships only a subset of what the 32-bit version ships. I'm not sure which part is required, has an input_raspicam.so actually been compiled? ls -l /opt/mjpg-streamer. The default UVC module seems to work as well: https://www.raspberrypi.org/forums/view ... 5#p1699885
But that user obviously was able to compile it on 64-bit :?.
Post Reply