# 表題 HITACHI Prius 100F5TVP への Linux インストール その 2 # # 履歴 2004/06/21 小高正嗣 ■ 全体の流れ 1. DVD-ROM を用いたシステムのインストール - インストールカーネルは 2.2 - パッケージのインストール - 不必要なパッケージのインストール 2. woody から sarge へのアップグレード 3. 2.6 カーネルのインストール 4. X の設定 5. その他の細かな設定 ここでは「woody から sarge へのアップグレード」について記録する. インストールは Linux World 2003 年 3 月号解説記事にしたがって行う. ■ ハードウェア HITACHI Prius 100F5TVP - 統合型チップセット - IDE Ali M1535 (ALi M5229 PCI Bus Master IDE Controller) - VIDEO ATI RADEON IGP340M - NIC Realtek RTL8139/810x Family Fast Ethernet - Sound - DVD Matsushita DVD-RAM UJ-815A - 1394 OHCI Compliant 1394 Host Controller ■ woody から sarge へのアップグレード 1. woody パッケージの更新 # apt-get update # apt-get upgrade 2. /etc/apt/sourses.list の編集 deb ftp://ftp.ep.sci.hokudai.ac.jp/pub/Linux/Debian/debian sarge main contrib non-free deb ftp://ftp.ep.sci.hokudai.ac.jp/pub/Linux/Debian/debian-jp sarge-jp main contrib non-free deb ftp://ftp.ep.sci.hokudai.ac.jp/pub/Linux/Debian/debian-non-US sarge/non-US main contrib non-free deb ftp://ftp.ep.sci.hokudai.ac.jp/pub/Linux/Debian/debian-security sarge/updates main contrib non-free 3. woody から sarge へのアップグレード # apt-get update # apt-get dist-upgrade 途中で中断してしまうので何度か繰り返す. ■ 2.6 カーネルのインストール 1. ftp.ep.sci.hokudai.ac.jp より linux-2.6.6.tar.gz をダウンロード 事前に以下のパッケージをインストールしておく. libncurses5-dev kernel-package # cd /usr/src # gunzip linux-2.6.6.tar.gz # tar xvf linux-2.6.6.tar # ln -s linux-2.6.6 linux # cd linux 2. カーネルの構築 # make xconfig 以下, デフォルトとの変更点のみ記載. ATI RADEON 関連の組み込みをわすれないように注意する. Code matturity level optiuons General Setup Loadable module support Processor type features - Processor family (Pentium-4) - Local APIC support on uniprocessors y - /dev/cpu/microcode support y - /dev/cpu/*/msr support y - /dev/cpu/*/cpuid support y - High Memory Support 4GB Power Management options - Power Management support y - Advanced Powe Mnagement y - APM support y Bus options Executable file formats - Kernel support for a.out and ECOFF binaries y Device Drivers - Parallel port support y - Block devices - Network block device support n - RAM disk support n - ATA/ATAPI/MFM/RLL support y - Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support y - Include IDE/ATA-2 DISK support y - Include IDE/ATAPI CDROM suppor y - PCI IDE chipset support y - Generic PCI IDE chipset support y - ALI 15x3 chipset support y - SCSI device - SCSI device support y - SCSI generic support y - Multi-device support - Fusion MPT support - IEEE 1394 support - IEEE 1394 support y - OHCI-1394 support y - OHCI-DV I/O support y - OHCI-1394 Video support y - I2O device support - Networking support - Nwtworking Options - TCP syncookie support y - Ethernet (10 or 100 Mbit) - 3com cards n - HP 10/100VG PCLAN support n - EISA, VLB, PCI and on board controllers y - PCI NE2000 and clones uspport y - RealTek RTL-8139 PCI Fast Ethernet y - Support for uncommon RTL-8139 rev. K y - Support for older RTL-8129-8130 boards y - Use older RX-reset method y - VIA Rhine support y - Use MMIO istead of PIO y - PLIP support n - PPP n - SLIP support n - ISDN - Telephony - Input device support - PCI PS/2 keyboard and PS/2 mouse contoroller y - Misc y - PC Speaker support y - Character devices - Prallel printer support y - /dev/agpgart y - ATI chipset support y - I2C support - I2C device interface y - I2C Algorithms - I2C bit-banging interfaces y - I2C Hardware Bus support - ALI 1535 y - ALI 1563 y - ALI 15x3 y - Hardware Sensors Chip support - VIA686A y - Misc devices - Multimedia support - Graphics support - ATI Radeon display support (Old drivers) y - ATI Radeon display support y - Sound - Sound card support - Advenced Linux Sound Architecture - PCI devices - ALi PCI Audio M5451 y - Intel i810/MX440, SiS 7012; Ali 5455 y - Open Sound System y - ESS Maestro, Maestro2, Maestro2E drivers y - ALi 5455 audio support y - USB support - Support for HOST-side USB y - USB device filesystem y - EHCI HCD (USB 2.0) support y - OHCI HCD support y - UHCI HCD support y - USB Mass Storage support y - USB Human Interface Dveice support y - /dev/hiddev raw HID device support y - File systems - Ext2 extended attributes y - CR-ROM/DVD filesystems - UDF file sustem support y - DOS/FAT/NT Filesystems - Network file sustems - NFS file sustem support n - Native language support - Japanese charsets y - Profileing support - Kernel hacking - Security options - Library routines exit する前に設定をファイルに保存. ファイル名は kernel-conf_2004-06-22.txt. # make-kpkg cean # make-kpkg --revision=PCF100F5TVP.1.X kernel_image /usr/src に kernel-image-2.6.6_PCF100F5TVP.1.X_i386.deb が 作成される. インストール # dpkg -i kernel-image-2.6.6_PCF100F5TVP.1.X_i386.deb 再起動する. ■ X の設定 再起動すると時動的に X が上がる. xdm が起動してしまうため root で login できなくなる. そこで Ctl-alt-Backspace で X を強制的に終了し, /etc/sudores に通常使用 のアカウントを記載する. オリジナルの XF86Config-4 を保存しておく. # cd /etc/X11 # cp XF86Config-4 XF86Config-4.orig X の再設定を行う # dpkg-reconfigure xserver-xfree86 設定項目は以下の通り - video driver vesa - video card name ATI Radeon IGP340M - PCI バスの ID --- (Enter) - ビデオメモリ量 --- (Enter) - フレームバッファ yes - キーボードルール --- (Enter) - キーボードの種類 jp106 - キーボードの配列 jp - option ctrl:swapcaps - マウスデバイス /dev/psaux - マウスの種類 PS2 - 3 botton emulate yes - ホイール機能 yes - 液晶モニタ使用 yes - 設定レベル Medium - 解像度 1024x768@60Hz - 色数 16 bit - DRI no driver は vesa にする. ati または radeon にすると終了時に何故かフリー ズする. ■ その他の細かな設定