# cd /usr/src # ls -F # bunzip2 kernel-source-2.4.18.tar.bz2 # tar xvf kernel-source-2.4.18.tar # tar zxvf pcmcia-cs.tar.gzlinkをはってkernelのconfigurationをする。
# ln -s /usr/src/kernel-source-2.4.18 /usr/src/linux # cd /usr/src/linux # mv Documentation/Configure.help Documentation/Configure.help.orig # cp Configure.help-2.4.18.ja Documentation/Configure.help # kon # make menuconfigその後kernelのmakeとinstall。
# make-kpkg clean # make-kpkg --revision sophia.0731 kernel_image # cd /usr/srcinstallの前にmoduleをバックアップしておく
# mv /lib/modules/2.4.18 /lib/modules/2.4.18.old # dpkg -i kernel-image-2.4.18_sophia.0731_i386.deb 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]次にpcmcia-csをコンパイルしようとしたのだが、なぜかエラーになる。
# cd /usr/src # tar zxvf pcmcia-cs-3.2.0.tar.gz # cd cd pcmcia-cs-3.2.0 # make config Linux kernel source directory [/usr/src/linux]: [Enter] kernel sourceの場所 Build 'trusting' versions of card utilities (y/n) [n]: y [Enter] ユーザーレベルでcard utilityを使うかはYesに Include 32-bit (CardBus) card support (y/n) [y]: [Enter] CardBusは使う Include PnP BIOS resource checking (y/n) [n]: y [Enter] よく分からないけど一応Yesに How would you like to set kernel-specific options?# /etc/init.d/pcmcia start
1 - Read from the currently running kernel 2 - Read from the Linux source tree Enter option (1-2) [1]: 1 [Enter] 一度kernelをコンパイルしたあとなのでsource treeに合わせる Module install directory [/lib/modules/2.4.18]: [Enter] Moduleのinstall directoryはデフォルトで # make all; make install
できちんと動くか確認。
このままだとreboot時にcardmgrが自動的に起動しないので、リンクを作る。
# update-rc.d pcmcia defaults 20
rebootして問題ないか確認。