Raspbian のアップデート

Raspbian jessieをインストールしたときのカーネルのバージョンは 4.1.7-v7+ でした。

以前、Raspbian wheezyを使っていたときに、sudo apt-get update; sudo apt-get upgrade としたらカーネルもバージョンアップされたのですが、起動できなくなってしまったことがありました。
どうやら正しくはrpi-updateコマンドを使うようです。

$ sudo 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 10206  100 10206    0     0  20977      0 --:--:-- --:--:-- --:--:-- 20956
 *** 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.1.7-v7+
#############################################################
This update bumps to rpi-4.1.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=113753
##############################################################
 *** 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    212      0 --:--:-- --:--:-- --:--:--   212
100 48.2M  100 48.2M    0     0   567k      0  0:01:27  0:01:27 --:--:--  498k
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.1.10-v7+
 *** depmod 4.1.10+
 *** 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 260bc9c7589b3359485fc02fed8f56d4c5eaad9a
 *** A reboot is needed to activate the new firmware
pi@raspberrypi:~$ 

rebootしてからカーネルバージョンを確認すると、4.1.10 に上がっていました。

$ cat /proc/version
Linux version 4.1.10-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #821 SMP PREEMPT Sat Oct 10 00:16:28 BST 2015