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.