rasprm3
Posts: 195
Joined: Sun Jan 20, 2013 1:27 am

How to determine my Pi model from the OS?

Fri Dec 15, 2017 11:28 pm

Is there a way I can find out exactly what hardware I'm running on? I've got a pi.... probably from 2013, I'd have to check.... and I think it was the second generation of pi out by then... Is there a quick terminal command I can run to find that out?


rasprm3
Posts: 195
Joined: Sun Jan 20, 2013 1:27 am

Re: How to determine my Pi model from the OS?

Fri Dec 15, 2017 11:40 pm

https://elinux.org/RPi_HardwareHistory

cat /proc/cpuinfo
gives me...
Hardware: BCM2835
Revision: 000f


000f Q4 2012 B 2.0 512 MB (Mfg by Qisda)


So I must have a Raspberry Pi Model B, from the 4th quarter of 2012.

Dug out my purchase emails... I order this around Feb/March 2013. Allied Electronics. I remember it was kind of iffy if they would actually ship them. People were concerned.


So maybe eventually, in 2020, I'll discover LInux has moved on and this hardware is no longer supported. That's what I was wondering about.

rasprm3
Posts: 195
Joined: Sun Jan 20, 2013 1:27 am

Re: How to determine my Pi model from the OS?

Fri Dec 15, 2017 11:47 pm

cat /sys/firmware/devicetree/base/model
gives me

Raspberry Pi Model B Rev 2

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: How to determine my Pi model from the OS?

Sat Dec 16, 2017 2:29 am

rasprm3 wrote:
Fri Dec 15, 2017 11:47 pm
cat /sys/firmware/devicetree/base/model
gives me

Raspberry Pi Model B Rev 2
its good to find and collect all that little linux commands what tell you about your system,
how you know the available commands? type:
info
later you can pack them in a bash file, and even make it with some color
i try that with the main concern about network settings according @DougieLawson
http://kll.engineering-news.org/kllfusi ... i-info.txt

jahboater
Posts: 5636
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: How to determine my Pi model from the OS?

Sat Dec 16, 2017 2:44 am

rasprm3 wrote:
Fri Dec 15, 2017 11:47 pm
cat /sys/firmware/devicetree/base/model
Slightly shorter :)

cat /proc/device-tree/model

broe23
Posts: 903
Joined: Thu Jan 28, 2016 9:35 pm
Location: Central IL
Contact: Website

Re: How to determine my Pi model from the OS?

Sat Dec 16, 2017 7:07 am

Really just need to look at the silkscreened model number on the board.
Ren: Now listen, Cadet. I've got a job for you. See this button? Ren: Don't touch it! It's the History Eraser button, you fool! Stimpy: So what'll happen? Ren: That's just it. We don't know. Maybe something bad, maybe something good.

User avatar
rpdom
Posts: 16981
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: How to determine my Pi model from the OS?

Sat Dec 16, 2017 8:43 am

broe23 wrote:
Sat Dec 16, 2017 7:07 am
Really just need to look at the silkscreened model number on the board.
The topic is "How to determine my Pi model from the OS?".

I suppose you could set up a camera to look at the board markings...

User avatar
bensimmo
Posts: 4550
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: How to determine my Pi model from the OS?

Sat Dec 16, 2017 9:50 am

On recent Raspbian installations
pinout
Should get you the details to.
(It is specific to Raspbian or you need to install gpiozero )

Edit/ link for info http://gpiozero.readthedocs.io/en/stabl ... inout.html


Silkscreen doesn't always help, as some Pi of the same model have different RAM configurations so you loose the exact part. That and you need to be there.
So 0005 and 000f would look the same but one has twice the ram.
Same with the A+'s etc.

rasprm3
Posts: 195
Joined: Sun Jan 20, 2013 1:27 am

Re: How to determine my Pi model from the OS?

Sat Dec 16, 2017 9:43 pm

Thanks. I had terminal open. I was thinking it was the easiest/laziest way to find the info, along with using some commands I probably haven't used before.

Return to “Beginners”