diff --git a/misc/platforms.json b/misc/platforms.json index ebb4526..cb2ee86 100644 --- a/misc/platforms.json +++ b/misc/platforms.json @@ -69,6 +69,22 @@ {"type": "file_exists", "path": "/boot/config.txt"} ] }, + { + "platform": "X_PLATFORM_TYPE_RPI_5", + "log": "Raspberry Pi 5 detected (Raspberry Pi OS).", + "conditions": [ + {"type": "file_exists", "path": "/boot/config.txt"}, + {"type": "file_contains_any", "path": "/proc/cpuinfo", "values": ["Raspberry Pi 5 Model B"]} + ] + }, + { + "platform": "X_PLATFORM_TYPE_RPI_5", + "log": "Raspberry Pi 5 detected (Ubuntu OS).", + "conditions": [ + {"type": "file_exists", "path": "/boot/firmware/config.txt"}, + {"type": "file_contains_any", "path": "/proc/cpuinfo", "values": ["Raspberry Pi 5 Model B"]} + ] + }, { "platform": "X_PLATFORM_TYPE_OPENIPC_SIGMASTAR_UNDEFINED", "log": "Detected SigmaStar platform.",