======Raspberry Piを最新の状態にする====== =====OS バージョンの確認===== $ lsb_release -a 参考: [[http://www.checksite.jp/raspbian-version-check/|raspbian(Raspberry Pi)のバージョン確認方法 | Check!Site]] =====Raspberry Pi のモデルの確認===== $ cat /proc/cpuinfo | grep Revision 出てきた文字列を、以下のページで確認してモデルを確認する。 [[https://elinux.org/RPi_HardwareHistory|RPi HardwareHistory - eLinux.org]] =====OS が 32bit か 64bit かの確認===== $ getconf LONG_BIT 参考:[[https://racoubit.org/expl/soft/command.php?a=2|Raspberry Pi (ラズパイ)で使う主なアプリの一覧]] =====OS のアップデート===== $ sudo apt update $ sudo apt upgrade -y $ sudo apt dist-upgrade $ sudo apt autoremove -y $ sudo apt clean 参考: [[https://qiita.com/sakaitaka/items/ac450750e9419b5bcf75|apt-get upgradeとdist-upgradeの違い - Qiita]] =====ファームウェア(Linux カーネル)のバージョン確認方法===== $ uname -a =====ファームウェアのアップデート(非推奨)===== $ sudo rpi-update 参考: [[http://denshikousaku.net/raspberry-pi-update-and-upgrade Raspberry|Piを最新の状態に更新する+容量アップ]] [[http://ichibariki.hatenablog.com/entry/2016/10/22/175302|Raspberry Pi 3 Model Bのファームウェアを更新する方法 - 一馬力のメモ帳]] [[https://www.yukkuriikouze.com/2019/02/05/1608/|やらないで!! rpi-update | ゆっくり遅報]] =====ファームウェアをダウングレードする===== (1)以下のページでダウンロードしたいファームウェアを探し出し、クリック。 [[https://github.com/Hexxeh/rpi-firmware/commits/master|Commits · Hexxeh/rpi-firmware · GitHub]] (2)URL の /commit/ より後の文字列をコピーする (3)Raspberry Pi で以下のコマンドを実行、リブート $ sudo rpi-update [3の文字列] 参考: [[https://dbpro.xyz/3275|Raspberry Pi ファームウェアをダウングレードする]] =====misc===== * [[http://www.llul.info/entry/2016/03/23/rasbianでapt-get_updateがうまく行かない場合の可能性について|rasbianでapt-get updateがうまく行かない場合の可能性について - Live the Life you Love]] * [[http://engetu21.hatenablog.com/entry/2015/04/11/131949|【Raspberry Pi】apt-get updateで失敗する - 技術メモ]]