Updating Raspberry Pi Firmware

Install rpi-update tool

If you get errors relating to certificates run below,

To update your firmware, simply run the following command:

If you get an error about Git is not insalled run below command and rerun above command.

To upgrade/downgrade to a specific firmware revision, specify it's Git hash as follows:

Source: https://github.com/Hexxeh/rpi-update