if only 1 of the cameras is there, millipixels doesn't use it - if the big cam is missing, it even crashes completely
here's the situation: removing the selfie cam driver and starting millipixels:
$ sudo -s
# echo 2-0020 > /sys/bus/i2c/drivers/hi846/unbind
# exit
$ millipixels
despite the rear camera can be used normally, it results in:
mp_device_list_find_remove imx7-csi s5k3l6xx 3-002d
20: there's csi, looking for s5k3l6xx 3-002d
20: there's csi capture, looking for s5k3l6xx 3-002d
20: there's imx8mq-mipi-csi2 30a70000.csi, looking for s5k3l6xx 3-002d
19: there's csi, looking for s5k3l6xx 3-002d
19: there's csi capture, looking for s5k3l6xx 3-002d
19: there's imx8mq-mipi-csi2 30b60000.csi, looking for s5k3l6xx 3-002d
19: there's s5k3l6xx 3-002d, looking for s5k3l6xx 3-002d
found!
devname /dev/video1
19: there's csi, looking for s5k3l6xx 3-002d
19: there's csi capture, looking for s5k3l6xx 3-002d
19: there's imx8mq-mipi-csi2 30b60000.csi, looking for s5k3l6xx 3-002d
19: there's s5k3l6xx 3-002d, looking for s5k3l6xx 3-002d
found!
linking flags 0 source 47:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Das Argument ist ungültig
mp_device_list_find_remove imx7-csi hi846 2-0020
20: there's csi, looking for hi846 2-0020
20: there's csi capture, looking for hi846 2-0020
20: there's imx8mq-mipi-csi2 30a70000.csi, looking for hi846 2-0020
Could not find /dev/media* node matching 'imx7-csi'
linking flags 1 source 47:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Das Argument ist ungültig
Setting mode 1052 780
[0:38:24.131576574] [2333] INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[0:38:24.195473517] [2335] ERROR SimplePipeline simple.cpp:1292 No sensor found
No such camera: /base/soc@0/bus@30800000/i2c@30a50000/camera@2dinvalid
bring back the selfie cam:
$ sudo -s
# echo 2-0020 > /sys/bus/i2c/drivers/hi846/bind
# exit
and, even worse, when removing the big cam:
$ sudo -s
# echo 3-002d > /sys/bus/i2c/drivers/s5k3l6xx/unbind
# exit
Found postprocessor script at /usr/share/millipixels/postprocess.sh
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "Datei oder Verzeichnis nicht gefunden" }', ../src/focus.rs:26:52
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 1879058944
Abgebrochen