Loading...

Update the firmware of your Raspberry Pi

If you want to update the firmware of your Raspberry Pi, these steps might interest you. This post uses Raspbian as OS. Have a look at Updating and Upgrading Raspbian first.

The program rpi-update is responsible for that. If it isn’t installed you can do it like that:

root@delta:/home/pi# apt-get install rpi-update
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  rpi-update
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 4408 B of archives.
After this operation, 45.1 kB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian/ jessie/main rpi-update all 20140705 [4408 B]
Fetched 4408 B in 0s (25.3 kB/s)    
Selecting previously unselected package rpi-update.
(Reading database ... 32928 files and directories currently installed.)
Preparing to unpack .../rpi-update_20140705_all.deb ...
Unpacking rpi-update (20140705) ...
Setting up rpi-update (20140705) ...

Do the update

root@delta:/home/pi# rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12016  100 12016    0     0  58603      0 --:--:-- --:--:-- --:--:-- 58901
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** We're running for the first time
 *** Backing up files (this will take a few minutes)
 *** Backing up firmware
 *** Backing up modules 4.4.38-v7+
This update bumps to rpi-4.4.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=144087
##############################################################
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    360      0 --:--:-- --:--:-- --:--:--   361
100 51.9M  100 51.9M    0     0   886k      0  0:01:00  0:01:00 --:--:--  827k
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.4.43-v7+
 *** depmod 4.4.43+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to a12b699d642096023a2b3009bb88ca82ad0baef4
 *** A reboot is needed to activate the new firmware

Reboot

root@delta:/home/pi# reboot && exit

Broadcast message from pi@delta on pts/0 (Fri 2017-01-20 20:43:06 UTC):

The system is going down for reboot NOW!

exit
pi@delta:~ $ Connection to delta closed by remote host.
Connection to delta closed.

Check the versions of your Pi cluster with Ansible.

tan@omega:~$ ansible all -u root -m shell -a '/opt/vc/bin/vcgencmd version'
beta | SUCCESS | rc=0 >>
Jan 18 2017 20:50:30 
Copyright (c) 2012 Broadcom
version c0cf7dabf4dfd8eb1110c18198bc2481fe419ad2 (clean) (release)

alpha | SUCCESS | rc=0 >>
Jan 18 2017 20:50:30 
Copyright (c) 2012 Broadcom
version c0cf7dabf4dfd8eb1110c18198bc2481fe419ad2 (clean) (release)

gamma | SUCCESS | rc=0 >>
Jan 18 2017 20:50:30 
Copyright (c) 2012 Broadcom
version c0cf7dabf4dfd8eb1110c18198bc2481fe419ad2 (clean) (release)

delta | SUCCESS | rc=0 >>
Jan 18 2017 20:50:30 
Copyright (c) 2012 Broadcom
version c0cf7dabf4dfd8eb1110c18198bc2481fe419ad2 (clean) (release)