kidoman / embd

Embedded Programming Framework in Go
http://embd.kidoman.io
MIT License
1.28k stars 156 forks source link

Correctly detect Raspberry Pi 3 on Kernel 4.9 #79

Closed fd0 closed 7 years ago

fd0 commented 7 years ago

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
KarolBedkowski commented 7 years ago

Hi, This also apply to RPI Model B on kernel 4.9.*

~-> cat /proc/cpuinfo 
processor   : 0
model name  : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS    : 896.40
Features    : half thumb fastmult vfp edsp java tls 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xb76
CPU revision    : 7

Hardware    : BCM2835
Revision    : 000d
lukepalmer commented 7 years ago

It would be great to get this merged so we can have Pi 3 support back!

In the meantime I have a fork at https://github.com/lukepalmer/embd for this purpose that others can use. This was needed because go get cannot import from a branch. I hope to delete the fork when this is merged.