openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
818 stars 251 forks source link

RPi 5 support #1818

Closed mstormi closed 7 months ago

mstormi commented 9 months ago

RPi5 is rumored to become released Oct, 23rd. 4/8 GB, 1/2 GB models to follow.

Raspi OS will be bookworm (Debian 12) PCI-E interface (HAT to be separately released to host M.2 SSD) New: real time clock, power button

Depends: #1788

Egyras commented 7 months ago

I have RPi5 8GB model, can help with testing if required ;)

mstormi commented 7 months ago

I have RPi5 8GB model, can help with testing if required ;)

@Egyras You could figure out a is_pifive_8gb() function that return 0 on 8gb Pi5 only but 1 on Pi5 with less RAM. See /opt/openhabian/functions/helpers.bash there's is_pifour() is_pifour_8gb() and is_pifive() as templates

Egyras commented 7 months ago

RPi5 8GB

@mstormi how to call(execute) these functions in right way for checks ? From where you pass variable "$hw" ?

barns-do commented 7 months ago

@mstormi may this help you (pi5_8GB):

openhab:~ $ grep "^Revision" /proc/cpuinfo Revision : d04170

openhab:~ $ grep "^Revision\s:\s[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]17[0-9a-fA-F]$" /proc/cpuinfo;echo $? Revision : d04170 0

openhab:~ $ totalMemory="$(awk '/MemTotal/ {print $2}' /proc/meminfo)";echo $totalMemory 8246848

Egyras commented 7 months ago

@barns-do did you tried to install pre-release openHABian v1.9, for me seems wifi (settings for this exists) dont want to work as getting error with comitup. Didnt tested LAN yet as kids sleeping where monitor and can plug cable. Failed to start comitup.service - Comitup Wifi Managament.

Egyras commented 7 months ago

@mstormi here is first-boot.log for RPi5 8GB connected via LAN with openHABian v1.9 first-boot.log

Egyras commented 7 months ago

seem for WIFI in Raspberry Pi OS 12 'Bookworm' they dont use anymore wpa_supplicant.conf, instead this is used nmcli So this explain issues with WIFI on first boot.

mstormi commented 7 months ago

Try the comitup hotspot, please.

Egyras commented 7 months ago

Try the comitup hotspot, please.

doesnt work, tried to connect but phone deosnt show it....

barns-do commented 7 months ago

@Egyras: I just installed V1.9 LAN-based. At first glance there are no problems with it. No WLAN-Testing ...

Egyras commented 7 months ago

made a new image via Raspberry Pi Imager and defined WIFI settings there, all went without any problems.

mstormi commented 7 months ago

Imager will get you an old image.

So seems RPi5 is supported but WiFi does not work yet. Continue in #1823