Closed jose1711 closed 3 days ago
What kernel version have you tested with on Raspberry Pi OS? It's a shot in the dark but you can try the latest dev build to see if it's resolved - it is using Linux 6.6.20, which should be the same the current Pi OS is using.
Also, how do you use the camera? I think it won't work out of the box without any changes in config.txt
and such, so adding more details about the setup would be helpful.
Thank you for your response.
What kernel version
HA OS: Linux a0d7b954-ssh 6.1.73-haos-raspi #1 SMP PREEMPT Thu Apr 11 10:33:23 UTC 2024 aarch64 Linux
Raspbian: Linux raspberrypi 6.6.20+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux
I'll try to extract and replace required files in /boot
partition from the dev build and report back if there is any improvement.
how do you use the camera?
As per https://gist.github.com/enegaard/a57af286205914bd912270c89650fb1b I added the following lines to config.txt
:
[all]
start_x=1
gpu_mem=128
In Raspbian cam -l
returns the following output:
[0:00:37.489576290] [1931] INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5
[0:00:37.501517975] [1935] INFO RPI pisp.cpp:662 libpisp version v1.0.4 6e3a53d137f4 14-02-2024 (14:00:12)
[0:00:37.516460475] [1935] INFO RPI pisp.cpp:1121 Registered camera /base/axi/pcie@120000/rp1/i2c@88000/ov5647@36 to CFE device /dev/media0 and ISP device /dev/media1 using PiSP variant BCM2712_C0
Available cameras:
1: 'ov5647' (/base/axi/pcie@120000/rp1/i2c@88000/ov5647@36)
I cannot reproduce the same in HA OS:
$ apk add libcamera-tools; cam -l
..
[0:08:16.035800835] [667] INFO Camera camera_manager.cpp:284 libcamera v0.1.0
Available cameras:
$
Replacing the files in the startup partition resulted in a boot loop so I went with a fresh install on another SD card. The tracedump is gone, it even seems that picamera is recognized:
$ dmesg
..
[ 2.164699] rp1-cfe 1f00110000.csi: Using sensor ov5647 6-0036 for capture
[ 2.165212] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-csi2_ch0] node id 0 successfully as /dev/video0
[ 2.165708] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-embedded] node id 1 successfully as /dev/video1
[ 2.166262] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-csi2_ch2] node id 2 successfully as /dev/video2
[ 2.166896] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-csi2_ch3] node id 3 successfully as /dev/video3
[ 2.170809] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-fe_image0] node id 4 successfully as /dev/video4
[ 2.171422] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-fe_image1] node id 5 successfully as /dev/video5
[ 2.172957] rp1-cfe 1f00110000.csi: Registered [rp1-cfe-fe_stats] node id 6 successfully as /dev/video6
But unfortunately neither cam
nor motioneye
are able to use it. Not sure if this an HA OS limitation or something can be done about the camera support.
There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant OS version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Describe the issue you are experiencing
During boot process the system logs the following lines:
The message repeats several times. I think this may be the reason why HA OS is not detecting a locally connected Pi camera while it works fine in the latest Raspbian on the same board.
What operating system image do you use?
rpi5-64 (Raspberry Pi 5 64-bit OS)
What version of Home Assistant Operating System is installed?
12.2
Did you upgrade the Operating System.
Yes
Steps to reproduce the issue
Boot the system, check the logs.
Anything in the Supervisor logs that might be useful for us?
Anything in the Host logs that might be useful for us?
System information
System Information
Home Assistant Cloud
logged_in | true -- | -- subscription_expiration | 13. februára 2025 o 01:00 relayer_connected | true relayer_region | eu-central-1 remote_enabled | true remote_connected | true alexa_enabled | false google_enabled | true remote_server | eu-central-1-17.ui.nabu.casa certificate_status | ready instance_id | fd9acab5e43e4efd85ff0db93524adfe can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 12.2 -- | -- update_channel | stable supervisor_version | supervisor-2024.04.0 agent_version | 1.6.0 docker_version | 25.0.5 disk_total | 28.7 GB disk_used | 8.1 GB healthy | true supported | true board | rpi5-64 supervisor_api | ok version_api | ok installed_addons | Advanced SSH & Web Terminal (17.2.0), motionEye (0.20.0)Dashboards
dashboards | 6 -- | -- resources | 0 views | 10 mode | storageRecorder
oldest_recorder_run | 4. apríla 2024 o 15:59 -- | -- current_recorder_run | 13. apríla 2024 o 22:15 estimated_db_size | 127.01 MiB database_engine | sqlite database_version | 3.44.2Additional information
No response