cipher:~# ls -l linux-2.0.tar.gz -rw-r--r-- 1 yokota users 5843677 Sep 14 22:43 linux-2.0.tar.gz
まずは展開しなくっちゃ。
cipher:~# tar xfz linux-2.0.tar.gz cipher:~# ls -ld linux* drwxr-xr-x 15 root root 1024 Jun 9 18:48 linux -rw-r--r-- 1 yokota users 5843677 Sep 14 22:43 linux-2.0.tar.gz cipher:~# mv linux /usr/src/linux-2.0.0 cipher:~# cd /usr/src/ cipher:~# ln -fs linux-2.0.0 linux cipher:~# cd linux cipher:~# ls COPYING Makefile drivers ipc modules CREDITS README fs kernel net Documentation Rules.make include lib scripts MAINTAINERS arch init mmまず、とりあえず gcc のオプティマイズを O6 にしてしまった。これ は特に意味はない。たんなる気分の問題。:-P
cipher:~# vi Makefile cipher:~# grep O6 Makefile CFLAGS = -Wall -Wstrict-prototypes -O6 -fomit-frame-pointer -fno-strength-reduceさて make config をかけなきゃ。このバージョンでは make xconfig や make menuconfig 等、なかなか便利になっているそう だ。試してみるのも良いかも。
ただ私はログを残したい一心で make config を選択してしまった。
実際に make config を行なう前にどういうふうに kernel を 構築するか考えなきゃ。
というわけで作成したときの ログ です。 ただしあまりにも長すぎるので途中のメッセージは省略している。
構築自体は make config の後、make dep;make clean をして、 いつものように私は make zdisk を実行して一度 floopy に新 しい kernel を入れた。
そしてできたよ、できましたよ。私の新しい cipher が、
cipher:~# uname -a Linux cipher 2.0.0 #1 Sat Sep 14 22:58:49 JST 1996 i586さて、では lilo に追加しましょ。
cipher:~# mv /usr/src/linux/arch/i386/boot/zImage /vmlinuz_2 cipher:~# chmod 400 /vmlinuz_2 cipher:~# vi /etc/lilo.conf cipher:~# /sbin/lilo Added dos * Added linux Added linux_2え、何で /vmlinuz_2 なんだって?
特に理由はないです。ちょっと今迄の 1.2.3ELF の kernel もしばら く残しとこうかなって。それだけです。したがって /etc/lilo.conf に以下を追加しました。
# Linux 2.0.0 bootable partition config begins image = /vmlinuz_2 root = /dev/hdb2 label = linux_2 read-only # Non-UMSDOS filesystems should be mounted read-only for checkingではでは、
まずは展開して configure を実行。
cipher:~# ls -l ppp-2.2.0f.tar.gz -r--r--r-- 1 root bin 378200 Apr 20 03:32 ppp-2.2.0f.tar.gz cipher:~# tar xfz ppp-2.2.0f.tar.gz -C /usr/src/ cipher:~# cd /usr/src/ppp-2.2.0f/ cipher:~# ls README README.osf configure pppd README.aix README.sun etc.ppp pppstats README.bsd README.svr4 freebsd-2.0 scripts README.cbcp README.ultrix linux sunos README.linux SETUP modules ultrix README.mschap80 TODO net README.next chat netbsd cipher:~# ./configure Creating links to Makefiles. Makefile -> linux/Makefile.top pppd/Makefile -> Makefile.linux pppstats/Makefile -> Makefile.linux chat/Makefile -> Makefile.linuxここで /usr/include/net に以下の四つのファイルがあるか確認しよ う。
したがって次は make kernel を実行する。これは当然 root で 行なわなければいけない。あ、いや /usr/include/net が書き込みで きるなら大丈夫かもしれないけど…。:-)
さぁいよいよコンパイルだ。これは make だけでよい。これで pppd, chat, pppstats の実行ファイルが作成される。
続けて make install しよう。/usr/sbin/ にインストールさ れ man もインストールされる。
cipher:~# ls -l /usr/sbin/{pppd,pppstats,chat}
-rwxr-xr-x 1 root root 12548 Sep 15 00:07 /usr/sbin/chat
-r-sr-xr-x 1 root root 74864 Sep 15 00:07 /usr/sbin/pppd
-rwxr-xr-x 1 root daemon 8148 Sep 15 00:07 /usr/sbin/pppstats
以上の ppp-2.2.0f のインストール作業に関してのログは ppp インストールログ からたどれます。あとは ps や top 等を入れ換えなきゃ。でもそれは明日のお 楽しみっとことで。:-P
今日はルンルンのスィッチオフ。