gs-sources
デスクトップパフォーマンスよりも信頼性やハードウェアサポートの優先度が高いユーザには、gs-sourcesがあります。GSとはGentoo Stableを意味しています(いい感じでしょ?)。このパッチセットは、最新のハードウェアサポートを提供するためのチューニングやテストが行われており、必要なときにミッションクリティカルなサーバが動作することを保証します。このカーネルには、gentoo-sourcesで提供しているようなものすごくアグレッシブにパフォーマンスをチューニングするパッチは含まれていません。でもご安心を。みなさんが愛してやまないvanillaカーネルのすばらしいパフォーマンスは健在です。可能であれば、安定性を損なうことなくサーバにパフォーマンス関連のパッチを当てます。
このカーネルは最新のACPIサブシステム、EVMS、ECC(HA Linuxシステムで必要です)、Encrypted Loopback devices、NTFS、Win4Lin、そしてXFSをサポートします。また、IDE、ext3、シリアルネットワークカードの最新版のパッチも他のパッチと共に含まれています。
crypt 暗号化パッチの適用
# emerge obs-sources
要チェックのカーネルコンフィグは以下のとおり。
そしてコンパイル。
# make dep && make clean zImage # make modules modules_install(モジュール構成の場合)
フラッシュROMに書き込む。flashcfgはGentooには含まれていないためchrootから抜けて実施するかフラッシュROMからもってくる必要がある。
# flashcfg -f zImage.treeboot
/etc/inittabを適切に設定しないとRS-232Cからログインできないので注意が必要。
# nano -w /etc/inittab
# TERMINALS c1:12345:respawn:/sbin/agetty 9600 ttyS0 linux c2:12345:respawn:/sbin/agetty 9600 ttyS1 linux #c3:12345:respawn:/sbin/agetty 38400 tty3 linux #c4:12345:respawn:/sbin/agetty 38400 tty4 linux #c5:12345:respawn:/sbin/agetty 38400 tty5 linux #c6:12345:respawn:/sbin/agetty 38400 tty6 linux
シリアルからrootでログインするために/etc/securettyにRS-232Cポート(/dev/tts/0)を追加。
# echo 'tts/0' >> /etc/securetty
keymapsとconsolefontはOBSには不要のためはずす。
# rc-update del keymaps # rc-update del consolefont
bootsplash とは何かを知りたい方はこちらへどうぞ http://www.bootsplash.org/ (Windowsの起動画面のようにもできるものです)
#emerge sync
ACCEPT_KEYWORDS=~x86 emerge bootsplash
# etc-update
# genkernel --config
# cd /usr/src/linux # make menuconfig
--------------------------------------------------------------------- Code maturity level options ---> [*] Prompt for development and/or incomplete code/drivers Processor type and features ---> [*] MTRR (Memory Type Range Register) support Block Devices -> [*] Loopback device support [*] RAM disk support (4096) Default RAM disk size [*] Initial RAM disk (initrd) support Console Drivers -> [*] VGA text console [*] Video mode selection support Console Drivers -> Frame-buffer support -> [*] Support for frame buffer devices [*] VESA VGA graphics console [*] Use splash screen instead of boot logo ---------------------------------------------------------------------
make dep && make clean bzImage modules modules_install mount /boot mv /boot/bzImage /boot/bzImage.old cp /usr/src/linux/arch/i386/boot/bzImage /boot/
mount /mnt/cdrom file /mnt/cdrom/isolinux/initrd.1024
<file の結果> initrd: Linux rev 1.0 ext2 filesystem data #gzipされてない initrd: gzip compressed data, ・・・・ #gzipされている
cp /mnt/cdrom/isolinux/initrd.1024 ~/initrd.1024 file ~/initrd.1024
gzip -dc /mnt/cdrom/isolinux/initrd.1024 > ~/initrd.1024 file ~/initrd.1024
dd if=~/initrd.1024 of=splash.dat skip=`perl -e 'undef $/;$_=<>; print index($_,"BOOTSPL")' ~/initrd.1024` bs=1 (1行のコマンドです)
mount /boot file /boot/initrd
cp /boot/initrd ~/initrd file ~/initrd
gzip -dc /boot/initrd > ~/initrd file ~/initrd
cat ~/splash.dat >> ~/initrd
cp ~/initrd /boot/initrd-splash
gzip -9c ~/initrd /boot/initrd-splash
--------------------------------------------------------------------- default 0 timeout 10 splashimage=(hd0,0)/grub/splash.xpm.gz
# Gentoo Linux title=Gentoo Linux (1280x1024 64k +fb +splash) root=(hd0,0) kernel=(hd0,0)/kernel-2.4.20-gentoo-r5 root=/dev/hda3 video=vesa:1280x1024,mtrr vga=0x31A initrd=(hd0,0)/initrd-splash title=Gentoo Linux (1280x1024 32k +fb -splash) root=(hd0,0) kernel=(hd0,0)/kernel-2.4.20-gentoo-r5 root=/dev/hda3 video=vesa:1280x1024,mtrr vga=0x319 title=Gentoo Linux (-fb -splash) root=(hd0,0) kernel=(hd0,0)/kernel-2.4.20-gentoo-r5 root=/dev/hda3 ---------------------------------------------------------------------
| 640x480 800x600 1024x768 1280x1024 ----+------------------------------------- 256 | 0x301 0x303 0x305 0x307 32k | 0x310 0x313 0x316 0x319 64k | 0x311 0x314 0x317 0x31A 16M | 0x312 0x315 0x318 0x31B
※ちなみに私のパーティションは次のようになっています。 /dev/hda1 /boot /dev/hda2 swap /dev/hda3 / インストールマニュアルのままインストールしてます。
ためしていませんが lilo の人は lilo.conf を次のようにすると動くはずです。
--------------------------------------------------------------------- image="/boot/bzImage" vga=0x31A root="/dev/hda3" label="2.4.20-r5" read-only # read-only for checking append="video=vesa:1024x768,mtrr" initrd=/boot/initrd-splash ---------------------------------------------------------------------
lilo
# rc-update add bootsplash default
# shutdown -r now
cat /proc/cmdline splash=silent vga=791 initrd=initrd.1024 acpi=off root=/dev/ram0 init=/linuxrc nomce BOOT_IMAGE=gentoo