カーネルソースコードの取得

カーネルソースコードの取得

いくつかの追加モジュールでコンパイルするには、特定のカーネルバージョンが必要です。

私が入力したとき:

uname -r

わかりました。

3.8.0-29-generic

私はこれが必要です。

 uname -a
 Linux "..." 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

このバージョンはどこで見つけることができますか?ここhttps://www.kernel.org/おそらく..

ベストアンサー1

以下を使用してソースコードをインポートできますapt。ファイルに/etc/apt/sources.list次の行が含まれていることを確認してください。

deb-src 

次に、次のコマンドを使用します。

apt-get update
#if you want to download the source into the current directory use:
apt-get source linux-image-$(uname -r)
#if you want the source to be installed in the system directory use:
apt-get install linux-source-$(uname -r)

フォルダにソースがダウンロードされます。

/usr/src or /usr/sources

おすすめ記事