1
0
mirror of https://github.com/kidoman/embd synced 2024-12-30 16:41:37 +01:00

Merge pull request #79 from fd0/rpi3-kernel-4.9

Correctly detect Raspberry Pi 3 on Kernel 4.9
This commit is contained in:
Luke Palmer 2017-05-07 21:30:40 -04:00 committed by GitHub
commit d3d8c0c5c6

View File

@ -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) {