Steve's answer is correct, but here are some more details that may be of interest.
The firmware version seems to be identified by two pieces of information:
- A release/commit date
- A 160-bit hash value (AFAIK, the algorithm used to compute the hash is unpublished)
There are two sources for this information:
- from the command line:
sudo /opt/vc/bin/vcgencmd version
- from the RPi website: the release notes
However, as at least one eagle-eyed contributor here has noted, the 160-bit hash values from the vcgencmd version
command and the release notes do not match. The reason these hash values do not match for any given release date is that the hash values are computed on different file sets REFERENCE:
The Organization (and possibly their suppliers/subcontractors) maintain two repositories for the Raspberry Pi firmware. One of the repositories houses the source code for the RPi firmware, the other repository houses the compiled/binary version of the firmware. The firmware source code repo is unpublished (i.e. it is 'closed-source'); the compiled/binary firmware is housed in this GitHub repo.
And finally to the point of this answer:
If you want to know what version of the firmware is on your RPi, use
sudo /opt/vc/bin/vcgencmd version
; i.e. Steve's answer.If you want to know the latest version of the firmware, check the release notes
NOTE new link for Raspberry Pi OS release notes
However, know that the the 160-bit hash values in these two sources will never match. The only valid comparison between these sources is the dates.
However, know that the the 160-bit hash values in these two sources will never match. The only valid comparison between these sources is the dates.