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:
commit
d3d8c0c5c6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user