What's the correct way to read model/revision info?

I’m porting wiringPi to RockPi4/Debian, and trying to mimic the same behavior on Raspberry Pi. I’m getting the model info from /proc/… right now, but hoping to get more specific data, e.g. revision number of the board. I thought I saw it somewhere in the repo but not sure, @jack could you point me in the right direction? Thanks

I think get the board name from the device tree is a good idea. Currently, there is no hardware identity for different revisions. The hardware difference for v1.3 and v1.4 is very trivial, silkscreen and footprint etc, there is no difference software can see. Maybe we should distinguish model A and model B.

1 Like

Any progress on porting wiringPi to RockPi4/Debian? I have software to support a device that depends on it.

Was explicit programmatically deterministic feature set ever implemented? For those of us developing solutions, this is critical, we need model, board revision, etc. details. The Pi devices have done this since day one via a revision code. Later a descriptive model string was added, but the revision code was key.