Skip to main content
9 events
when toggle format what by license comment
Jul 31, 2017 at 22:48 comment added Eugen the best solution in my opinion. works perfectly on Raspberry Pi 2 and 3, running Raspbian. I have tested it on a Pi that runs since 8 days. The other solutions in this thread required either new tools (gpio) or you have to map the cpu revision code to a look-up table (and maintain it). that's the only command which tells you exactly the name i.e. Machine model: Raspberry Pi 2 Model B Rev 1.1 - without root too.
Apr 13, 2017 at 12:33 comment added Milliways @goldilocks Presumably the OP only wants to know after boot. It is unlikely to change ;-) There are almost certainly better methods of solving OP problem.
Apr 13, 2017 at 12:22 comment added goldilocks @Milliways The reason it doesn't do this for me is the system has been up too long. That's from boot, and dmesg is a circular buffer. Hence, this is a flawed methodology.
Apr 13, 2017 at 12:21 comment added Milliways @goldilocks Displays [Tue Apr 11 15:59:32 2017] Machine model: Raspberry Pi 3 Model B Rev 1.2 on my Pi. May not be the most robust method.
Apr 13, 2017 at 11:00 comment added goldilocks Strange, this doesn't output anything when I try it!
S Apr 13, 2017 at 9:57 review Low quality posts
Apr 13, 2017 at 12:22
S Apr 13, 2017 at 9:57 review Late answers
Apr 13, 2017 at 9:58
Apr 13, 2017 at 9:47 review First posts
Apr 13, 2017 at 11:19
Apr 13, 2017 at 9:40 history answered lemassykoi CC BY-SA 3.0