Post

RaspberryPi CSI ov5647 camera failing to start

This is valid for fully updated MainsailOS on 25th Oct 2023.

Issue: ov5647@36 camera is detected and logged to crowsnest.log but streamer fails to start.

This is assuming camera section of configuration is set to match the camera device.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
crowsnest: INFO: Print Configfile: '/home/pi/printer_data/config/crowsnest.conf'
crowsnest:		[crowsnest]
crowsnest:		log_path: /home/pi/printer_data/logs/crowsnest.log
crowsnest:		log_level: verbose
crowsnest:		delete_log: false
crowsnest:		no_proxy: false
crowsnest:		
crowsnest:		[cam raspi]
crowsnest:		mode: camera-streamer
crowsnest:		
crowsnest:		enable_rtsp: false
crowsnest:		rtsp_port: 8554
crowsnest:		port: 8080
crowsnest:		device: /base/soc/i2c0mux/i2c@1/ov5647@36
crowsnest:		resolution: 1296x972
crowsnest:		max_fps: 15
crowsnest: INFO: Detect available Devices
crowsnest: INFO: Found 1 total available Device(s)
crowsnest: Detected 'libcamera' device -> /base/soc/i2c0mux/i2c@1/ov5647@36
crowsnest: Try to start configured Cams / Services...
crowsnest: INFO: Configuration of Section [cam raspi] looks good. Continue ...
crowsnest:  ... Done!
crowsnest: Starting camera-streamer with Device /base/soc/i2c0mux/i2c@1/ov5647@36 ...
crowsnest: ERROR: Start of camera-streamer [cam raspi] failed!

Per Discord support this is caused by updated libcamera that broke precompiled camera-streamer.

Solution: recompile camera-streamer.

Resolution steps:

  1. SSH to RPi and run following:
    1
    2
    3
    
    cd ~/crowsnest/bin/camera-streamer
    make clean
    make
    
  2. Restart crowsnest
This post is licensed under CC BY 4.0 by the author.