最終更新:2022-11-09 (水) 21:42:34 (534d)  

Ubuntu/Linuxカーネル
Top / Ubuntu / Linuxカーネル

種類

GA (General Availability)

  • LTSリリース時に採用されたバージョン
  • Ubuntu Serverでは常にGAスタックがデフォルト

HWE

  • 以降にリリースされたUbuntuで採用されているカーネルとXスタック
  • Ubuntu 20.04では、デフォルトでHWEスタックがインストールされる

OEM

  • Ubuntu認定ハードウェアでは、HWEカーネルの代わりに必要に応じてOEMカーネルがインストールされる

Ubuntu/Linuxカーネル/ソースコード

メモ

  • 「半年ごと」というUbuntuのリリーススケジュールの関係で,Ubuntuの最新版で使われるカーネルのバージョンは「リリースの2ヵ月前ぐらいの最新版」

ドキュメント

サイト

Ubuntu/パッケージ

ソースコードの取得

ヘッダファイル

Ubuntu/Linuxカーネル/ソースコード

apt-get source

git clone

  • git clone git://kernel.ubuntu.com/ubuntu/ubuntu-<release codename>.git

メインライン

現在のカーネルが,どの安定版のリリースまでの変更を取り込んでいるか

バージョンのみかた

  • $ dpkg -l | grep linux-image
    ii  linux-image-3.8.0-19-generic          3.8.0-19.30    amd64    Linux kernel image for version 3.8.0 on 64 bit x86 SMP
    ii  linux-image-3.8.0-23-generic          3.8.0-23.34    amd64    Linux kernel image for version 3.8.0 on 64 bit x86 SMP
    ii  linux-image-3.8.0-25-generic          3.8.0-25.37    amd64    Linux kernel image for version 3.8.0 on 64 bit x86 SMP
  • linux-image-3.8.0-25-generic
  • パッケージ自体のバージョンは「3.8.0-25.37」
  • 25.37のうち,最初の数字は3.8ベースのカーネルパッケージをリリースしてから,「ABI(Application Binary Interface)が変更された回数」をあらわします。また,後ろの数字は「アップロード回数」

インストール

Ubuntu/Linuxカーネル/メインライン

落とすもの

古いのも同じ

GRUBで選択できない場合

  • PCの電源を入れたら「Shift」キーを押しっぱなしにする

ソースコード

メインライン

  • Where can I get the source for these builds?
    • In each directory there is a COMMIT file which defines the base commit in Linus' master tree from which they were built. The patches in the same directory ????-* are applied on top of this commit to make the build tree. A mirror of Linus' tree is available from git://kernel.ubuntu.com/virgin/linux.git.
    • First download the COMMIT and patch files ????-* from the mainline build in question to a temporary directory:
    git clone git://kernel.ubuntu.com/virgin/linux.git mainline
    cd mainline
    git checkout -b `cat ${MAINLINE}/COMMIT`
    git am ${MAINLINE}/????-*

独自

現在のカーネルが,どの安定版のリリースまでの変更を取り込んでいるかの確認

Ubuntu/カーネルフレーバー

一覧

Ubuntu/Linuxカーネル/ビルド

Ubuntu Server

参考