#author("2020-12-27T05:25:01+00:00","","") #author("2020-12-31T01:44:38+00:00","","") #topicpath #navi(Debian); //////////////////////////////////////////////////////////////////////////////// * 目次 [#c1641c62] #contents(); //////////////////////////////////////////////////////////////////////////////// * kernel 再構築 [#p7115993] - Debian ver.9 以降を対象としたカーネル再構築について //============================================================================== ** 参考リンク [#cd0f948b] - [[Debian 管理者ハンドブック > 8.10. カーネルのコンパイル>https://debian-handbook.info/browse/ja-JP/stable/sect.kernel-compilation.html]] //////////////////////////////////////////////////////////////////////////////// * Debian ver.10 以降 [#od592ab7] $ make deb-pkg LOCALVERSION=-falcot KDEB_PKGVERSION=$(make kernelversion)-1 //////////////////////////////////////////////////////////////////////////////// * Debian ver.9 以前 [#i91d40cd] //============================================================================== ** パッケージの取得 [#k878a163] - ドキュメントの入手: # apt-get install debian-kernel-handbook - 必要なものを入れる: # apt-get install build-essential fakeroot # apt-get build-dep linux # apt-get devscripts //============================================================================== * ビルド [#v9a0e8a4] ** ビルド [#v9a0e8a4] 以下、 kernel.org から取得した tar ball を解凍した先を linux であるとする。 $ cd linux $ cp /boot/config-xxx .config # xxx は実際のファイルに合わせて読み替える $ make-kpkg clean $ make oldconfig $ nice make -j 6 bindeb-pkg LOCALVERSION=<自分で決めた任意のローカルバージョン名> //============================================================================== ** インストールされたカーネルソースから再構築 [#o44c4d23] //============================================================================== ** kernel設定時の注意点(build以外に躓いた原因となったものを列挙) [#o9189194] + ECN を有効にしないこと -- これを有効にすると、webを見ようとした際、特定のサイトだけアクセス出来ないことがある&br; →[[[debian-users:39467] Re: kernel を2.4.24に換えたら、特定のweb サーバにアクセス出来ない>http://lists.debian.or.jp/debian-users/200402/msg00081.html]]