1度しか正常起動しない問題がまだ残っているがコンパクト化のため専用カーネルも構築したいので先に一度作成してみる
必要なパッケージ
# aptitude install kernel-package
# aptitude install make gcc
# aptitude install fakeroot
# aptitude install libncurses-dev
# aptitude install zlib1g-dev
# aptitude search linux-source
linux-patch-debian-2.6.32 - Debian patches to version 2.6.32 of the Linux kernel
linux-source-2.6.32 - Linux kernel source for version 2.6.32 with Debian patches
linux-source-2.6 - Linux kernel source for Linux 2.6 (meta-package)
# cd /usr/src
# aptitude install linux-source-2.6.32
# tar xjf linux-source-2.6.32.tar.bz2
コンパイル
# cd linux-source-2.6.32
# make-kpkg clean
# cp /boot/config-2.6.32-5-486 .config
# make menuconfig
(試しに変えてみた)
x x --- MMC/SD/SDIO card support x x
x x [ ] MMC debugging x x
x x [ ] Assume MMC/SD cards are non-removable (DANGEROUS) x x
x x --- MMC/SD/SDIO card support x x
x x [ ] MMC debugging x x
x x [*] Assume MMC/SD cards are non-removable (DANGEROUS) x x
# fakeroot make-kpkg --initrd --revision=epia.1.0 kernel_image
#
C3はこちらのとおりi686では作れない(i586の切り分けがないのでi486で作成)
12/8 16:00頃開始して2:00でも終わらず、本日再開して4時間位で終了する
EPIAで実行すると大雑把だが12時間程かかる(別のPCで作成したほうが良さそうだ)
(追加)12/11 Athlon64 2.4GHzでやってみると約1時間で終わった
セットアップ
# cd ..
# dpkg -i linux-image-2.6.32_epia.1.0_i386.deb
未選択パッケージ linux-image-2.6.32 を選択しています。
(データベースを読み込んでいます ... 現在 33569 個のファイルとディレクトリがイン ストールされています。)
(linux-image-2.6.32_epia.1.0_i386.deb から) linux-image-2.6.32 を展開しています...
Done.
linux-image-2.6.32 (epia.1.0) を設定しています ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32 /boot/vmlinuz-2.6.32
update-initramfs: Generating /boot/initrd.img-2.6.32
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.32 /boot/vmlinuz-2.6.32
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-5-486
Found initrd image: /boot/initrd.img-2.6.32-5-486
Found linux image: /boot/vmlinuz-2.6.32
Found initrd image: /boot/initrd.img-2.6.32
done
#
CPU 温度の確認(sensorの導入)
# cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
firewire-sbp2
loop
#
# aptitude install libsensors3 lm-sensors
# sensors-detect
(全部YES)
# cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
firewire-sbp2
loop
# Generated by sensors-detect on Sun Dec 9 17:59:25 2012
# Chip drivers
vt1211
#
(再起動)
$ sensors
vt1211-isa-6000
Adapter: ISA adapter
in0: +1.96 V (min = +0.00 V, max = +2.63 V)
in1: +2.02 V (min = +0.00 V, max = +2.63 V)
in2: +1.18 V (min = +0.00 V, max = +2.63 V)
in3: +1.95 V (min = +0.00 V, max = +2.63 V)
in4: +2.17 V (min = +0.00 V, max = +2.63 V)
+3.3V: +3.28 V (min = +0.00 V, max = +4.18 V)
fan1: 0 RPM (min = 0 RPM, div = 2)
fan2: 4818 RPM (min = 0 RPM, div = 2)
temp1: +102.0°C (high = +255.0°C, hyst = +0.0°C)
SIO Temp: +43.0°C (high = +204.0°C, hyst = +0.0°C)
cpu0_vid: +1.250 V