My attempt at gathering information on how to detect exactly which Raspberry Pi model we are running on for https://github.com/jperkin/node-rpio. The goal is to come up with an optimal way of detecting the host across a wide range of hardware and OS.
Name (Rev) | cpuinfo |
/proc/device-tree/model |
device-tree/soc/ranges |
OS |
---|---|---|---|---|
B (1.0) | 0002 |
Raspberry Pi Model B |
7e000000 20000000 01000000 |
7 |
B (1.0) | 0002 |
Raspberry Pi Model B Rev 1 |
7e000000 20000000 02000000 |
10 |