I want to know what is my raspberry pi firmware version.
I have read some documentations and i have found 2 ways to get this version number:
/opt/vc/bin/vcgencmd version
and
FIRMWARE_HASH=$(zgrep "* firmware as of" /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz | head -1 | awk '{ print $5 }')
This gives me 2 differents versions for the same raspberry pi.
What is the good command to get firmware version ? What is the explaination of the other command ?
Thanks