消えたpsb_gfx
ということでkernel moduleが消えたので、久しぶりにカーネルの再構築をやってみた。
10年振りくらいかしら?
参考:8.6. 新しいカーネルのコンパイル @Debian GNU/Linux インストールガイド
参考:Debianでカーネル再構築
過不足あるかもですが、メモとして。
なお、以下はrootで、
マシン:VAIO Type P VGN-P91NS
Debian Wheezy
1. まず必要なパッケージをインストール
# aptitude install bin86 module-assistant build-essential
# aptitude install kernel-package
# aptitude install fakeroot
# aptitude install libncurses-dev
2.kernel sourceを検索
# apt-cache search linux-source
linux-source-3.2 – Linux kernel source for version 3.2 with Debian patches
linux-source – Linux kernel source (meta-package)
linux-source-2.6 – Linux カーネルソース (ダミーパッケージ)
3. 使用しているkernelのソースをインストール
# aptitude install linux-source-3.2
4. ソースの展開とコンパイルの準備
# cd /usr/src/
# tar xjfv linux-source-3.2.tar.bz2
# ln -s linux-source-3.2 linux
# cd linux
# make-kpkg clean
# cp /boot/config-3.2.0-4-686-pae .config
# make menuconfig
次の2つのmoduleを “M” にする。
Device Drivers -> Graphics support -> Direct Rendering Manager (…)
->
Device Drivers -> Graphics support ->
並列コンパイルは “なし” で試す。
# export CONCURRENCY_LEVEL=1
5. コンパイル
# make-kpkg –rootcmd fakeroot –initrd –append-to-version my kernel-image
結果、約8時間かかりました。
早速、kernelをインストール。
$ sudo dpkg -i /usr/src/linux-image-3.2.39my_3.2.39my-10.00.Custom_i386.deb
再起動すると、ちゃんとkernel module読み込まれてます!
確認すると、
$ lsmod | grep gma
gma500_gfx 74643 2
drm_kms_helper 22745 1 gma500_gfx
drm 146329 2 drm_kms_helper,gma500_gfx
i2c_algo_bit 12713 1 gma500_gfx
i2c_core 19183 6 i2c_algo_bit,drm,drm_kms_helper,gma500_gfx,videodev,i2c_isch
psb_gfx -> gma500_gfx と名前が変わってますね。