# cd /usr/src # ls -F kerne-source-2.2.17.tar.bz2 modules/ pcmcia-cs.tar.gz # bunzip2 kernel-source-2.2.17.tar.bz2 # tar xvf kernel-source-2.2.17.tar # tar zxvf pcmcia-cs.tar.gzlinkをはってkernelのconfigurationをする。
# ln -s /usr/src/kernel-source-2.2.17 /usr/src/linux # cd /usr/src/linux # mv Documentation/Configure.help Documentation/Configure.help.orig # cp Configure.help-2.2.17.ja Documentation/Configure.help # kon # make menuconfigその後kernelのmake。環境変数LANGがja_JP.ujisだといろいろエラーが 出るのでいったんLANG=Cにしておく。
# export LANG=C # make-kpkg clean # make-kpkg --revision sophia.0724 kernel_image次にpcmcia-csをコンパイル。
# cd /usr/src/linux # make dep # cd /usr/src/modules/pcmcia-cs # debian/rules binary-modules # debian/rules binary-csコンパイルしたkernelとpcmciaをインストール。
# cd /usr/src # dpkg -i kernel-image-2.2.17_sophia.0724_i386.deb最初の質問のみ「n」を入力。ほかはすべて「Enter」
Do you want to stop now? [Y/n] n [Enter] Please Hit return to continue. [Enter] Would you like to create a boot floppy now? [No] [Enter] Install a boot block using the existing /etc/lilo.conf? [Yes] [Enter]
# cd /usr/src/modules # dpkg -i pcmcia-modules-2.2.17_3.1.8-16+sophia.0724_i386.deb # dpkg -i pcmcia-cs_3.1.8-16_i386.debよくわからないがこのままrebootすると、起動時にdepmodがエラー(?) になって
depmod: *** Unresolved symbols in … depmod: *** Unresolved symbols in … depmod: *** Unresolved symbols in …が表示されるので、正しいのかどうかわからないが、/etc/init.d/modutilsを 変更しておく。
また、Thinkpad 600の場合メモリをきちんと認識しないので、 /etc/lilo.confを書き換える。
boot=/dev/hda を append="mem=163264K" boot=/dev/hda にする。書き換えたら # lilo で反映。rebootして問題ないか確認。