/usr/share/doc/HOWTO/ja-html/ext-root-mini-HOWTO-5.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Ext-Rootfs-mini-HOWTO: ÀìÍѤΥ·¥¹¥Æ¥à¤òºî¤ë¤Ë¤Ï</TITLE>
<LINK HREF="ext-root-mini-HOWTO-6.html" REL=next>
<LINK HREF="ext-root-mini-HOWTO-4.html" REL=previous>
<LINK HREF="ext-root-mini-HOWTO.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="ext-root-mini-HOWTO-6.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="ext-root-mini-HOWTO-4.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="ext-root-mini-HOWTO.html#toc5">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="make"></A> <A NAME="s5">5. ÀìÍѤΥ·¥¹¥Æ¥à¤òºî¤ë¤Ë¤Ï</A></H2>
<P>
<P>pcmciax.gz ¤Ï Slackware 3.1 ¤Î¥«¡¼¥Í¥ë¤ÈÁȤߤ¢¤ï¤»¤Æ»È¤¦¤è¤¦¤Ë
pcmcia-cs ¤â 2.0.0 ¤Î¥«¡¼¥Í¥ëÍѤ˥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¥«¡¼¥Í¥ë¤ò
¥Ð¡¼¥¸¥ç¥¢¥Ã¥×¤¹¤ëºÝ¤Ë¤Ï pcmcia-cs ¤âºÆ¥³¥ó¥Ñ¥¤¥ë¤¬É¬ÍפǤ¹¡£
<P>initrd ·Ðͳ¤Çµ¯Æ°¤·¤Æ¤¤¤ë¾ì¹ç¡¢pcmcia-cs ¤¬ initrd ¤Çµ¯Æ°¤¹¤ë¥Õ¥¡¥¤¥ë
¥·¥¹¥Æ¥à¤ÎÃæ¤ËÃÖ¤«¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤Î¤Ç¡¢¥·¥¹¥Æ¥à¤ò¥Ð¡¼¥¸¥ç¥ó¥¢¥Ã¥×¤¹¤ë
ºÝ¤Ë¤Ï¿¾¯¤ÎÃí°Õ¤¬É¬Íפˤʤê¤Þ¤¹¡£
<P>
<H2><A NAME="ss5.1">5.1 ¥«¡¼¥Í¥ë¤ÎºÆ¹½ÃÛ</A>
</H2>
<P>
<P>¥«¡¼¥Í¥ë¤ÎºÆ¹½ÃÛ»þ¤Ë¤Ï °Ê²¼¤Î¹àÌܤËÃí°Õ¤·¤ÆÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤é°Ê
³°¤Î¥ª¥×¥·¥ç¥ó¤Ï¤ª»È¤¤¤Î´Ä¶¤Ë¹ç¤ï¤»¤ÆÀßÄꤷ¤Þ¤¹¡£
<P>
<UL>
<LI> "Loadable modules support" ¤Î "Enable
loadable module support" ¤È "Kernel daemon support"
¤òÀßÄê¡£
</LI>
<LI>"General Setup" ¤Î "Kernel Support for a.out
binaries" ¤È "Kernel Support for ELF binaries" ¤òÀß
Äê(¥â¥¸¥å¡¼¥ë¤Ç¤Ï¥À¥á)¡£
</LI>
<LI>"Floppy, IDE, and other block devices" ¤Î "Loopback
device support" ¡¢"RAM disk support" ¤È
"Initial RAM disk(initrd) support" ¤òÀßÄê¡£
</LI>
<LI>"SCSI support" ¤Î "SCSI support"¡¢"SCSI
disk support" ¤òÀßÄê¡£"SCSI tape support",
"SCSI CD-ROM support", "SCSI generic support"
¤ÏÀßÄꤷ¤Æ¤â¥â¥¸¥å¡¼¥ë¤Ç¤â²Ä¡£É¬¿Ü¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬ "Probe all
LUNs on each SCSI device" ¤âÇ°¤Î¤¿¤áÀßÄꤷ¤Æ¤ª¤¤Þ¤¹¡£
</LI>
<LI> NFS root ¤ò»È¤¦¾ì¹ç¤Ï "File systems" Ãæ¤Î
"NFS"¤È"NFS root"¥ª¥×¥·¥ç¥ó¤âÀßÄꤷ¤Þ¤¹¡£
</LI>
</UL>
<P>¥«¡¼¥Í¥ë¤ò¥³¥ó¥Ñ¥¤¥ë¤¹¤ëºÝ¤Ë¤Ï <CODE>make zlilo</CODE> ¤Ç¤Ï¤Ê¤¯¡¢<B>make
zImage</B> ¤Ç <CODE>/usr/src/linux/arch/i386/boot/zImage</CODE> ¤òºî¤ê¤Þ
¤¹¡£¤³¤Î zImage ¤ò DOS Îΰè¤Ë¥³¥Ô¡¼¤·¤Æ¡¢¤³¤Î¥«¡¼¥Í¥ë¥¤¥á¡¼¥¸¤ò
loadlin.exe ¤Ç¥í¡¼¥É¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
<P>
<HR>
<PRE>
# cp /usr/src/linux/arch/i386/booz/zImage /dos/linux/zimage.new
</PRE>
<HR>
<P>¥«¡¼¥Í¥ë¤Î¥³¥ó¥Ñ¥¤¥ë¤¬½ª¤ì¤Ð¡¢¥â¥¸¥å¡¼¥ëÎà¤â˺¤ì¤º¥³¥ó¥Ñ¥¤¥ë¡¢¥¤¥ó¥¹¥È¡¼
¥ë¤·¤Æ¤ª¤¤Þ¤¹(<CODE>make modules; make modules_install</CODE>)¡£
<P>¼¡²ó¤Ëµ¯Æ°¤¹¤ë¤È¤¤Ï loadlin.exe ¤Ç <CODE>zimage.new</CODE> ¤ò»ØÄꤷ¤Þ¤¹¡£
<P>
<H2><A NAME="ss5.2">5.2 pcmcia-cs ¤ÎºÆ¹½ÃÛ</A>
</H2>
<P>
<P>
<P>pcmcia-cs ¤Ï¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È initrd ¤ÎÁÐÊý¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤ä
¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£pcmciax2 ¤ò¥ë¡¼¥×¥Ð¥Ã¥¯¤Ç¥Þ¥¦¥ó¥È¤·¤Æ
<CODE>/sbin/{cardmgr, cardctl}</CODE> ¤ä
<CODE>/lib/modules/2.0.x/pcmcia</CODE> °Ê²¼¤òÆþ¤ìÂؤ¨¤ë¤Î¤â°ì¤Ä¤ÎÊýË¡¤Ç¤¹
¤¬¡¢¤³¤Î¾ì¹ç¡¢pcmciax ¤Ë¤Ï libc-4.7.6 ¤·¤«Æþ¤Ã¤Æ¤¤¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯
¤À¤µ¤¤¡£¤¹¤Ê¤ï¤Á¡¢¥³¥Þ¥ó¥É¤Ç¤¢¤ë <CODE>/sbin/{cardmgr,cardctl}</CODE> ¤ò¥³
¥ó¥Ñ¥¤¥ë¤¹¤ë¾ì¹ç¤Ï a.out ·Á¼°¤Ç¥³¥ó¥Ñ¥¤¥ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
<P>¤³¤Î¤¿¤á¤Ë¤Ï¡¢pcmcia-cs ¤òÄ̾ï¤Î make ¤Ç¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤«¤é¡¢cardmgr ¥Ç¥£
¥ì¥¯¥È¥ê¤Ë°Ü¤ê¡¢Makefile ¤Ë CC = /usr/i486-linuxaout/bin/gcc ¤òÄɲä·
¤Æ make clean; make ¤·¤Þ¤¹¡£¤¤¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É¤Ï a.out ·Á¼°¤Ç¤¦¤Þ¤¯¥³
¥ó¥Ñ¥¤¥ë¤Ç¤¤Ê¤¤¤«¤âÃΤì¤Þ¤»¤ó¡£
<P>¤â¤¦°ì¤Ä¤ÎÊýË¡¤Ï¡¢ ELF ·Á¼°¤Î¥³¥Þ¥ó¥É¤ò½¸¤á¤¿¿·¤·¤¤ initrd ¤òÍÑ°Õ¤¹¤ë
¤³¤È¤Ç¤¹¡£¿·¤·¤¯ initrd ¤òºî¤ë¤Ë¤Ï¡¢¤Þ¤º ramdisk ¾å¤Ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
¤òºî¤Ã¤ÆɬÍפʥե¡¥¤¥ë¤ò½¸¤á¡¢¤½¤ì¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤¹¤Î¤¬´Êñ¤Ç¤·¤ç¤¦¡£
°Ê²¼¤Ë¤½¤Î¤¿¤á¤Î°ì¤Ä¤Î¼ê½ç¤ò½Ò¤Ù¤Þ¤¹¡£
<P>
<OL>
<LI> ramdisk ¾å¤Ë 4M ¤Û¤É¤Î ext2 ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¹½ÃÛ¤¹¤ë¡£
<HR>
<PRE>
# mke2fs /dev/ram0 4000
</PRE>
<HR>
initrd ·Ðͳ¤Çµ¯Æ°¤·¤¿¥·¥¹¥Æ¥à¤Î¾ì¹ç¡¢<CODE>/dev/ram0</CODE> ¤Ï»ÈÍÑÃæ¤Î¾ì¹ç
¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤ÎºÝ¤Ï <CODE>/dev/ram1</CODE> Åù¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£
</LI>
<LI> ramdisk ¤òŬÅö¤Ê¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥Þ¥¦¥ó¥È¡£¥Ò¥Ê·¿¤Ë»È¤¦¤¿¤á¤Ë¡¢pcmciax2
¤âÊ̤Υǥ£¥ì¥¯¥È¥ê¤Ë¥Þ¥¦¥ó¥È¤·¡¢¤¤¤Ã¤¿¤ó pcmciax ¤ÈƱ¤¸¥Õ¥¡¥¤¥ë¤ò
/workdir °Ê²¼¤Ë¥³¥Ô¡¼¤·¤Þ¤¹¡£
<HR>
<PRE>
# mount -t ext2 /dev/ram0 /workdir
# mount /dos/linux/pcmciax /refdir -o loop,ro
# cd /refdir; tar cvf - * | (cd /workdir; tar xf -)
</PRE>
<HR>
</LI>
<LI>
¤³¤Î»þÅÀ¤Ç /workdir °Ê²¼¤Ï pcmciax2 ¤ÈƱ¤¸¥Õ¥¡¥¤¥ë¹½À®¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¢
a.out ·Á¼°¤Î¥é¥¤¥Ö¥é¥ê¤ä¥³¥Þ¥ó¥ÉÎà¤ò ELF ·Á¼°¤Î¤â¤Î¤ËÆþ¤ì¤«¤¨¤Þ¤¹¡£¤³
¤Î¤¢¤¿¤ê¤ÏÌÌÅݤǤ¹¤¬¡¢¼êºî¶È¤Ç¤ä¤ë¤·¤«¤Ê¤¤¤è¤¦¤Ç¤¹¡£
</LI>
<LI>pcmcia-cs ¤ò /workdir °Ê²¼¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¡£pcmcia-cs ¤Î¥Ç¥£¥ì¥¯¥È
¥ê¤Ç<CODE>make config</CODE>¤¹¤ë¤ÈÀßÄê¤Ë´Ø¤¹¤ë¼ÁÌ䤬ɽ¼¨¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢
"<CODE>Alternate target install directory</CODE>" ¤Ç
<CODE>/workdir</CODE> ¤ò»ØÄꤷ¤Þ¤¹¡£
<HR>
<PRE>
# make config
Linux PCMCIA Configuration Script
The default responses for each question are correct for most users.
Consult the PCMCIA-HOWTO for additional info about each option.
Linux source directory [/usr/src/linux]:
Alternate target install directory [/]: /workdir
/workdir
C compiler name [gcc]:
......
</PRE>
<HR>
¤³¤Î¾õÂÖ¤Ç make all ¤·¤Æ make install ¤¹¤ì¤Ð <CODE>/workdir/etc/pcmcia</CODE>
¤ä <CODE>/workdir/lib/modules/`uname -r`/pcmcia</CODE> ¤ËɬÍפʥ⥸¥å¡¼¥ë¤¬¥¤
¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Þ¤¹¡£¤¿¤À¤·¡¢<CODE>/workdir/usr/man</CODE> °Ê²¼¤Ë pcmcia-cs ¤Î
¥Þ¥Ë¥å¥¢¥ëÎà¤â¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤·¤Þ¤¦¤Î¤ÇÉÔÍפʤé¤Ðºï½ü¤·¤Æ¤¯¤À¤µ¤¤¡£
initrd °Ê³°¤Ë¡¢µ¯Æ°¸å¤Ë¼Â¹Ô¤µ¤ì¤ë¼ÂºÝ¤Î¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤â
pcmcia-cs ¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¤½¤Î¤¿¤á¤Ë¤Ï¡¢
pcmcia-cs ¤òºÆÅÙ "Alternate target install directory : / " ¤ËÀßÄꤷ¤Æ
¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤ª¤¤Þ¤·¤ç¤¦¡£
</LI>
<LI>
<CODE>/dev/ram0</CODE> ¤ËºîÀ®¤·¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÄ̾ï¤Î¥Õ¥¡¥¤¥ë¤ËÍî¤È¤·
¤Þ¤¹¡£
<HR>
<PRE>
# umount /workdir
# dd if=/dev/ram0 of=initrd bs=1k count=4000
</PRE>
<HR>
</LI>
<LI>¤³¤ì¤Ç¿·¤·¤¤ initrd ¤¬¤Ç¤¤Þ¤·¤¿¡£<CODE>mount initrd /workdir -o
loop</CODE> ¤È¤·¤Æ¡¢Àµ¤·¤¯¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È¤·¤Æǧ¼±¤Ç¤¤ë¤«³Îǧ¤·¤Æ¤ª¤
¤Þ¤·¤ç¤¦¡£
</LI>
<LI>¿·¤·¤¯ºî¤Ã¤¿ initrd ¤ò DOS ¤«¤é¥¢¥¯¥»¥¹¤Ç¤¤ëÎΰè¤Ë¥³¥Ô¡¼¤·¤Þ¤¹¡£
initrd ¤Ï°µ½Ì¤·¤Æ¤ª¤¯¤³¤È¤â²Äǽ¤Ç¤¹¡£
<HR>
<PRE>
# cp initrd /dos/linux
# gzip /dos/linux/initrd
</PRE>
<HR>
</LI>
<LI>¿·¤·¤¤¥«¡¼¥Í¥ë¤È initrd ¤ÎÁȤ߹ç¤ï¤»¤ÇºÆµ¯Æ°¤·¤Þ¤¹¡£
</LI>
</OL>
<P>¼ê¸µ¤Ç»îºî¤·¤¿ initrd ¤ò
<A HREF="http://www.st.rim.or.jp/~isle/Linux/initrd.gz">http://www.st.rim.or.jp/~isle/Linux/initrd.gz</A> ¤ËÍÑ°Õ¤·¤Þ¤·¤¿¡£
¤³¤Î initrd ¤Ë¤Ï¡¢ÂÐÏÃŪ¤Ë³°ÉÕ¤± SCSI ¤ò¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤·¤¿¤ê¡¢
NFS root ¤ò»ØÄꤷ¤¿¤ê¤¹¤ë dialog ¤âÉÕ¤±¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¶½Ì£¤Î¤¢¤ëÊý¤Ï¤ª
»î¤·¤¯¤À¤µ¤¤¡£¤³¤Î initrd ¤ËÁȤߤ³¤ó¤Ç¤¤¤ë pcmcia-cs ¤Ï 2.8.23 ¤Ç¥«¡¼
¥Í¥ë 2.0.27 ÍѤ˥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤¤¤Þ¤¹¡£
<P>
<HR>
<A HREF="ext-root-mini-HOWTO-6.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="ext-root-mini-HOWTO-4.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="ext-root-mini-HOWTO.html#toc5">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|