From 1e99d1ac2d1ebab3faf03fcf7d6fcf78ea9ef824 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 6 Mar 2017 16:36:22 +0100 Subject: [PATCH] Correctly detect Raspberry Pi 3 on Kernel 4.9 Kernel 4.9 now correctly identifies the hardware for the Raspberry Pi 3 as "BCM2835", /proc/cpuinfo contains: processor : 0 model name : ARMv7 Processor rev 4 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 [...] Hardware : BCM2835 Revision : a02082 Serial : 00000000307c1569 --- detect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect.go b/detect.go index 93f4500..ac90872 100644 --- a/detect.go +++ b/detect.go @@ -124,7 +124,7 @@ func DetectHost() (host Host, rev int, err error) { switch { case strings.Contains(model, "ARMv7") && (strings.Contains(hardware, "AM33XX") || strings.Contains(hardware, "AM335X")): return HostBBB, rev, nil - case strings.Contains(hardware, "BCM2708") || strings.Contains(hardware, "BCM2709"): + case strings.Contains(hardware, "BCM2708") || strings.Contains(hardware, "BCM2709") || strings.Contains(hardware, "BCM2835"): return HostRPi, rev, nil case hardware == "Allwinner sun4i/sun5i Families": if major < 4 || (major == 4 && minor < 4) {