Software problems when connecting the PI camera

PI Camera with ribbon

no Picture in Octoprint

Camera plugged into ribbon connector, leagecy mode must be off, sudo apt-get install libcamera-apps, libcamera-hello OK


**Logs** (`/var/log/webcamd.log` is empty, 
cat /var/log/syslog  | grep bcm2835,
Nov  2 22:15:54 octoprint kernel: [    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=E4:5F:01:BD:BC:6D vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=00ca95f2-02 rootfstype=ext4 fsck.repair=yes rootwait
Nov  2 22:15:54 octoprint kernel: [    0.087311] bcm2835-mbox fe00b880.mailbox: mailbox enabled
Nov  2 22:15:54 octoprint kernel: [    0.171271] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
Nov  2 22:15:54 octoprint kernel: [    1.299365] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
Nov  2 22:15:54 octoprint kernel: [    1.484478] bcm2835-aux-uart fe215040.serial: there is not valid maps for state default
Nov  2 22:15:54 octoprint kernel: [    1.921561] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
Nov  2 22:15:54 octoprint kernel: [    1.930591] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
Nov  2 22:15:54 octoprint kernel: [    1.941738] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
Nov  2 22:15:54 octoprint kernel: [    2.884085] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
Nov  2 22:15:54 octoprint kernel: [    6.672836] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
Nov  2 22:15:54 octoprint kernel: [    6.686161] bcm2835_audio bcm2835_audio: card created with 8 channels
Nov  2 22:15:54 octoprint kernel: [    6.690038] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
Nov  2 22:15:54 octoprint kernel: [    6.705040] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
Nov  2 22:15:54 octoprint kernel: [    6.720938] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
Nov  2 22:15:54 octoprint kernel: [    6.728689] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
Nov  2 22:15:54 octoprint kernel: [    6.730495] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
Nov  2 22:15:54 octoprint kernel: [    6.735406] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
Nov  2 22:15:54 octoprint kernel: [    6.735546] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
Nov  2 22:15:54 octoprint kernel: [    6.735920] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
Nov  2 22:15:54 octoprint kernel: [    6.736300] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
Nov  2 22:15:54 octoprint kernel: [    6.736339] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
Nov  2 22:15:54 octoprint kernel: [    6.736363] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
Nov  2 22:15:54 octoprint kernel: [    6.736392] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
Nov  2 22:15:54 octoprint kernel: [    6.736409] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
Nov  2 22:15:54 octoprint kernel: [    6.743098] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
Nov  2 22:15:54 octoprint kernel: [    6.743449] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
Nov  2 22:15:54 octoprint kernel: [    6.743910] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
Nov  2 22:15:54 octoprint kernel: [    6.744303] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
Nov  2 22:15:54 octoprint kernel: [    6.744639] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
Nov  2 22:15:54 octoprint kernel: [    6.744673] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
Nov  2 22:15:54 octoprint kernel: [    6.744707] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
Nov  2 22:15:54 octoprint kernel: [    6.744748] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
Nov  2 22:15:54 octoprint kernel: [    6.744765] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
Nov  2 22:15:54 octoprint kernel: [    6.745023] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
Nov  2 22:15:54 octoprint kernel: [    6.783326] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
Nov  2 22:15:54 octoprint kernel: [    6.783387] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
Nov  2 22:15:54 octoprint kernel: [    6.791267] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
Nov  2 22:15:54 octoprint kernel: [    6.791321] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
Nov  2 22:15:54 octoprint kernel: [    6.797741] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
Nov  2 22:15:54 octoprint kernel: [    6.797805] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
Nov  2 22:15:54 octoprint kernel: [    6.802934] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
Nov  2 22:15:54 octoprint kernel: [    6.802994] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
Nov  2 22:15:54 octoprint kernel: [    6.808677] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
Nov  2 22:15:54 octoprint kernel: [    6.808734] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
grep: (Standardeingabe): Übereinstimmungen in Binärdatei


 
dmesg  | grep bcm2835
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=E4:5F:01:BD:BC:6D vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=00ca95f2-02 rootfstype=ext4 fsck.repair=yes rootwait
[    0.086757] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.172715] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    1.285196] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.470021] bcm2835-aux-uart fe215040.serial: there is not valid maps for state default
[    1.885036] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.894706] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.904444] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.913704] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    6.571784] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    6.587397] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    6.599258] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    6.607001] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    6.607557] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    6.607954] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    6.608519] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    6.608557] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    6.608578] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    6.608596] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    6.608612] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    6.614879] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    6.615164] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    6.615596] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    6.615959] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    6.616294] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    6.616330] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    6.616351] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    6.616368] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    6.616384] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    6.616619] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    6.621721] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    6.632826] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    6.638458] bcm2835_audio bcm2835_audio: card created with 8 channels
[    6.672119] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    6.689594] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    6.689658] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    6.698911] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    6.698979] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    6.710240] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    6.710299] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    6.713729] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    6.713779] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    6.718104] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[    6.718180] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
**)

 
OS: Debian GNU/Linux 11 (bullseye) aarch64 
Host: Raspberry Pi 4 Model B Rev 1.5 1024 MiB
Kernel: 5.15.74-v8+

* * OctoPrint 1.8.6 Python 3.9.2 ** (OctoPrint version, OctoPi version, ...)

pi@octoprint:~ $ libcamera-hello
Preview window unavailable
[0:32:49.758343437] [1383]  INFO Camera camera_manager.cpp:293 libcamera v0.0.1+21-7c855784
[0:32:49.785127233] [1384]  INFO RPI raspberrypi.cpp:1414 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media0
[0:32:49.785836334] [1383]  INFO Camera camera.cpp:1026 configuring streams: (0) 1296x972-YUV420
[0:32:49.786152515] [1384]  INFO RPI raspberrypi.cpp:800 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA


pi@octoprint:~ $ raspistill
-bash: raspistill: Command not found

libcamera-jpeg --list-cameras
Available cameras
-----------------
0 : ov5647 [2592x1944] (/base/soc/i2c0mux/i2c@1/ov5647@36)
    Modes: 'SGBRG10_CSI2P' : 640x480 [58.92 fps - (16, 0)/2560x1920 crop]
                             1296x972 [43.25 fps - (0, 0)/2592x1944 crop]
                             1920x1080 [30.62 fps - (348, 434)/1928x1080 crop]
                             2592x1944 [15.63 fps - (0, 0)/2592x1944 crop]

$ libcamera-jpeg -o test.jpeg

Preview window unavailable
[0:41:56.952675530] [1471]  INFO Camera camera_manager.cpp:293 libcamera v0.0.1+21-7c855784
[0:41:56.984963902] [1472]  INFO RPI raspberrypi.cpp:1414 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media0
[0:41:56.985760002] [1471]  INFO Camera camera.cpp:1026 configuring streams: (0) 1296x972-YUV420
[0:41:56.986063498] [1472]  INFO RPI raspberrypi.cpp:800 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
[0:42:02.133835178] [1471]  INFO Camera camera.cpp:1026 configuring streams: (0) 2592x1944-YUV420 (1) 2592x1944-SGBRG10_CSI2P
[0:42:02.136984821] [1472]  INFO RPI raspberrypi.cpp:800 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA
Still capture image received

$ ls test*
test.jpeg

An image is saved


raspi-config -> legency camera off
/boot/config  no entries for camera

http://octoprint.local/webcam/?action=stream 503 Service Unavailable
type or paste code here
1 Like

Hello @Jens123 !

When you upload logs, please do that as file or use this in the editor navbar.

grafik

When you post them as plain text, information can get loss and it's difficult to read.

Sorry

The camera works so that I can take a picture via terminal/ssh

Raspberry has completely changed the software for the camera at bullseye.
Almost all guides I found are for old Linux and don't work with

bullseye anymore

raspistill can not be found

can i install this?

pi@octoprint:~ $ libcamera-jpeg -o test.jpeg
Preview window unavailable
[0:05:12.786101063] [1033]  INFO Camera camera_manager.cpp:293 libcamera v0.0.1+21-7c855784
[0:05:12.846734139] [1034]  INFO RPI raspberrypi.cpp:1414 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media1
[0:05:12.848138899] [1033]  INFO Camera camera.cpp:1026 configuring streams: (0) 1296x972-YUV420
[0:05:12.848650812] [1034]  INFO RPI raspberrypi.cpp:800 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
[0:05:18.007158593] [1033]  INFO Camera camera.cpp:1026 configuring streams: (0) 2592x1944-YUV420 (1) 2592x1944-SGBRG10_CSI2P
[0:05:18.008835422] [1034]  INFO RPI raspberrypi.cpp:800 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA
Still capture image received

pi@octoprint:~ $ raspistill
-bash: raspistill: cannot be found.


pi@octoprint:~ $ libcamera-still -o test.jpg
Preview window unavailable
[0:13:11.409005248] [1089]  INFO Camera camera_manager.cpp:293 libcamera v0.0.1+21-7c855784
[0:13:11.435578834] [1090]  INFO RPI raspberrypi.cpp:1414 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media1
[0:13:11.436357675] [1089]  INFO Camera camera.cpp:1026 configuring streams: (0) 1296x972-YUV420
[0:13:11.436664189] [1090]  INFO RPI raspberrypi.cpp:800 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
[0:13:16.590668185] [1089]  INFO Camera camera.cpp:1026 configuring streams: (0) 2592x1944-YUV420 (1) 2592x1944-SGBRG10_CSI2P
[0:13:16.592888599] [1090]  INFO RPI raspberrypi.cpp:800 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA
Still capture image received
pi@octoprint:~ $ 


pi@octoprint:~ $ sudo apt-get install raspistill
...
Package raspistill cannot be found.


1 Like