/usr/share/doc/HOWTO/ja-html/Boca-3.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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>BOCA-HOWTO _Installing a Boca 16-port serial card (Boca 2016) with Linux_: ´ðËÜŪ¤Ê¼ê³¤</TITLE>
<LINK HREF="Boca-4.html" REL=next>
<LINK HREF="Boca-2.html" REL=previous>
<LINK HREF="Boca.html#toc3" REL=contents>
</HEAD>
<BODY>
<A HREF="Boca-4.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Boca-2.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Boca.html#toc3">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s3">3. ´ðËÜŪ¤Ê¼ê³¤</A></H2>
<P>
<H2><A NAME="ss3.1">3.1 ¥«¡¼¥Í¥ë¤ÎºÆ¹½ÃÛ</A>
</H2>
<P>¤Þ¤º BocaBoard ¤òǧ¼±¤µ¤»¤ë¤¿¤á¤Ë¥«¡¼¥Í¥ë¤ò½¤Àµ¤·¤Þ¤¹¡£»ÄÇ°¤Ê¤³¤È¤ËºÆ¹½ÃÛ¤Î
¤Î»þ¤Ë»ÈÍѤ¹¤ë configure ¥¹¥¯¥ê¥×¥È¤ò¼Â¹Ô¤·¤Æ¤âǧ¼±¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Ê¤¤¤Î¤Ç¡¢
¥½¡¼¥¹¤òľÀÜÊѹ¹¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
¼¡¤Î¹Ô¤ò <CODE>linux/drivers/char/serial.c</CODE> ¤ËÄɲä·¤Þ¤¹¡£
<BLOCKQUOTE><CODE>
<PRE>
#define CONFIG_BOCA 1
</PRE>
</CODE></BLOCKQUOTE>
°ÊÁ°¤Ï¤³¤ì¤Ç¤è¤«¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¤¢¤ë¥Ð¡¼¥¸¥ç¥ó¤Î¥«¡¼¥Í¥ë¤«¤é¤Ï¤³¤ÎÉôʬ¤ÏÊѤï¤Ã
¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£¿·¤·¤¤¥«¡¼¥Í¥ë¤Ç¤âÆ°ºî¤µ¤»¤ë¤¿¤á¤Ë¤Ï¡¢serial.c ¤ÎÃæ¤Ç
"BOCA_FLAGS" ¤ò #define ¤·¤Æ¤¤¤ë¤È¤³¤í¤òÁܤ·¤Æ¤¯¤À¤µ¤¤¡£¤½¤·¤Æ¤½¤ÎÃͤò¼¡¤Î
¤è¤¦¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
<BLOCKQUOTE><CODE>
<PRE>
#define BOCA_FLAGS ASYNC_BOOT_AUTOCONF
</PRE>
</CODE></BLOCKQUOTE>
¤³¤ì¤Ç¤³¤ÎÄêµÁ¤ò¥½¡¼¥¹¤ËÈ¿±Ç¤µ¤»¤ÆºÆ¹½ÃÛ¤¬¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
¹½ÃÛ¤¬½ª¤Ã¤¿¤é¡¢¤½¤Î¥«¡¼¥Í¥ë¤Ç¤¦¤Þ¤¯Æ°ºî¤¹¤ë¤³¤È¤ò³Îǧ¤Ç¤¤ë¤Þ¤Ç¡¢¿·¤·¤¤
¥«¡¼¥Í¥ë¤Ï¥Õ¥í¥Ã¥Ô¡¼¤«¤éÆɤ߹þ¤à¤è¤¦¤Ë¤¹¤ë»ö¤ò¤ª´«¤á¤·¤Þ¤¹¡£¤µ¤â¤Ê¤¤¤È¥·¥¹
¥Æ¥à¤òºÆ¹½ÃÛÁ°¤Î¾õÂÖ¤ËÌ᤹¤Î¤ËÈó¾ï¤Ë¶ìÏ«¤¹¤ë»ö¤Ë¤Ê¤ê¤Þ¤¹¡£
»ä¼«¿È¤â¡¢¥«¡¼¥Í¥ë¤ÎºÆ¹½Ãۤλþ¤Ï¥×¥ì¥Ã¥·¥ã¡¼¤ò´¶¤¸¤Þ¤¹¡£¥ê¥é¥Ã¥¯¥¹¤·¤Þ
¤·¤ç¤¦!! ¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Ë¥³¥Ô¡¼¤¹¤ë¤À¤±¤Ê¤é¡¢¿·¤·¤¤¥«¡¼¥Í¥ë¤Ï¿ÍÃÜ
̵³²¤Ç¤¹¤«¤é¡£
<P>
<H2><A NAME="ss3.2">3.2 ¥«¡¼¥É¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë</A>
</H2>
<P>¥«¡¼¥É¤È Linux ¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥¢¥É¥ì¥¹ÀßÄê¤Ï¡¢0x100 ¤Ç¤¹¡£¤³¤ì¤Ï¤³¤Î¤Þ¤Þ¤Ë¤·¤Æ
¤ª¤¤Þ¤¹¡£¥«¡¼¥É¤Î IRQ ¤ò Linux ¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤΠ12 ¤Ë¤·¤Þ¤¹¡£¤â¤· IRQ
¤òÊѤ¨¤¿¤¤¤Ê¤é "BOCA_FLAGS" ¤òÀßÄê¥Õ¥¡¥¤¥ë¤«¤éÁܤ·¤Þ¤¹¡£¤½¤ì¤Ï¼¡¤Î¤è¤¦¤Ê´¶¤¸
¤Ë¤Ê¤ê¤Þ¤¹¡£
<BLOCKQUOTE><CODE>
<PRE>
{ BASE_BAUD, 0x100, 12, BOCA_FLAGS }, /* ttyS16 */
{ BASE_BAUD, 0x108, 12, BOCA_FLAGS }, /* ttyS17 */
...
</PRE>
</CODE></BLOCKQUOTE>
12 ¤ò¹¥¤¤Ê¡Ê¤«¤Ä͸ú¤Ê¡ËIRQ ¤ËÊѹ¹¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢IRQ ¤ò 12 ¤«¤é
Êѹ¹¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£»ä¤Ï¤Þ¤À¤ä¤Ã¤Æ¤ß¤¿¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡£
<P>
<H2><A NAME="ss3.3">3.3 Linux ¤Ë¥«¡¼¥É¤òǧ¼±¤µ¤»¤ë</A>
</H2>
<P>¥«¡¼¥Í¥ë¤ò¹½ÃÛ¤·¤¿¤é¡¢ÅŸ»¤òÍ¤Æ¥«¡¼¥É¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤·¤ç¤¦¡£¥¤¥ó¥¹¥È¡¼¥ë
¤·¤¿¤é¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Ë¤¢¤ë¿·¤·¤¤¥«¡¼¥Í¥ë¤Ç¥Ö¡¼¥È¤·¤Þ¤¹¡£¥¤¥ó¥¹¥È¡¼¥ë
¤¬¤¦¤Þ¤¯¤¤¤Ã¤Æ¤¤¤ì¤Ð¡¢ttyS16 ¡Á ttyS32 ¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë 16550 UARTS ¥Á¥Ã¥×
¤ò³Îǧ¤Ç¤¤ë¤Ï¤º¤Ç¤¹¡£¤³¤ì¤Ç¥·¥¹¥Æ¥à¤ÏÀµ¾ï¤ËΩ¤Á¾å¤¬¤ê¤Þ¤¹¡£
<P>¤ª¤½¤é¤¯¡¢/dev ¤Ë¤Ï¤Þ¤À¤³¤ì¤é¤Î²óÀþÍѤΥǥХ¤¥¹¤Ï̵¤¤¤È»×¤¤¤Þ¤¹¡£¥Ç¥Ð¥¤¥¹ÈÖ¹æ
¤¬ 16 ¤«¤é 32 ¤Þ¤Ç¤Ç¤¢¤ë¤³¤È¤ò¤ªËº¤ì¤Ê¤¤è¤¦¤Ë¡£¥½¡¼¥¹¥³¡¼¥É¤ò¸«¤ì¤ÐÍýͳ¤¬¤ï
¤«¤ê¤Þ¤¹¡£
¾¤Î¥«¡¼¥É¤Î¥µ¥Ý¡¼¥È¤Î¤¿¤á¤Ë¤³¤ì¤è¤ê¾®¤µ¤¤Èֹ椬»ÈÍѤµ¤ì¤Æ¤¤¤ë¤Î¤Ç¤¹¡£
¤ä¤êÊý¤µ¤¨¤ï¤«¤ì¤Ð¡¢¤³¤ì¤é¤Î¥Ç¥Ð¥¤¥¹¤ò¤Ä¤¯¤ë¤³¤È¤Ï´Êñ¤Ç¤¹¡£
ȯ¿®¤Î¤¿¤á¤ÎÄêµÁ¤ÎÆþÎϤϤ³¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
<BLOCKQUOTE><CODE>
<PRE>
mknod /dev/cuaxx c 4 N
</PRE>
</CODE></BLOCKQUOTE>
ÌõÃð: 4 ¤Ï¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë¤Î¥á¥¸¥ã¡¼Èֹ桢n ¤Ï¥Þ¥¤¥Ê¡¼ÈÖ¹æ¤òɽ¤·¤Þ¤¹¡£
<P>n = 64 + <²óÀþÈÖ¹æ>¡£"C" ¤Ï¤³¤Î¥Ç¥Ð¥¤¥¹¤¬¥¥ã¥é¥¯¥¿·¿¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£
¤·¤Þ¤¹¡£
Î㤨¤Ð¡¢½é¤á¤Î 2 ²óÀþ¤òȯ¿®ÍѤËÄêµÁ¤¹¤ë¤Ë¤Ï¼¡¤Î¤è¤¦¤ËÆþÎϤ·¤Þ¤¹¡£
<BLOCKQUOTE><CODE>
<PRE>
mknod /dev/cua16 c 4 80
mknod /dev/cua17 c 4 81
...
</PRE>
</CODE></BLOCKQUOTE>
Ãå¿®ÍѤÎÄêµÁ¤Ï¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£
<BLOCKQUOTE><CODE>
<PRE>
mknod /dev/ttySxx c 5 n
</PRE>
</CODE></BLOCKQUOTE>
"N" ¤Ï¾åµ¤ÈƱ¤¸¤è¤¦¤ËÄêµÁ¤·¤Þ¤¹¡£Î㤨¤Ð¡¢½é¤á¤Î 2 ²óÀþ¤òÃå¿®ÍѤËÄêµÁ¤¹¤ë
¤Ë¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
<BLOCKQUOTE><CODE>
<PRE>
mknod /dev/ttyS16 c 5 80
mknod /dev/ttyS17 c 5 81
...
</PRE>
</CODE></BLOCKQUOTE>
¤½¤ì¤¾¤ì¤Î¥Ý¡¼¥È¤òȯÃ忮ξÊý¤ÇÍøÍѤǤ¤ë¤è¤¦¤ËºîÀ®¤¹¤ë¤È¡¢¤È¤Æ¤â½ÀÆð¤Ê´Ä¶¤Ë
¤Ê¤ê¤Þ¤¹¡£¤³¤¦¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢Ê£¿ô¤¢¤ë²óÀþ¤Î°ì¤Ä¤òȯ¿®ÍѤˤ·¤Æ¼«Ê¬¤ÎÅÅÏÃÈÖ
¹æ¤Ëȯ¿®¤¹¤ì¤Ð¡¢¼«Ê¬¤ÎÊ̤βóÀþ¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
»ä¤Ï¤¹¤Ç¤Ë¤½¤Î¤è¤¦¤Ë¤·¤Æ¤ª¤ê¡¢¤È¤Æ¤â¤¦¤Þ¤¯¤¤¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢ÀܳÁê¼ê¦¤¬
¤É¤Î¤è¤¦¤Ê¾õÂÖ¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ë¾ì¹ç¤Ë¤È¤Æ¤âÌò¤ËΩ¤Á¤Þ¤¹¡£»ä¤Î¾ì¹ç¡¢¤³¤ÎÊýË¡¤Ç
¼«Ê¬¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬¡¢2400bps ¤ÇÀܳ¤µ¤ì¤Æ¤¤¤ë¤³¤È¤¬¤ï¤«¤ê¤Þ¤·¤¿ (¤³¤ì¤Ï
Linux ¤Î¥³¥ó¥½¡¼¥ë¤è¤êÃÙ¤¤Â®Å٤Ǥ¹¡£¼ÂºÝÃÙ¤¹¤®¤Þ¤¹)¡£
<P>¾åµ¤ÎÀßÄê¤ò½ª¤¨¤¿¤é¡¢É¸½à¤Î ttySx ¤ÎÀßÄê¤ÈƱ¤¸ÊýË¡¤Ç inittab ¥Õ¥¡¥¤¥ë¤ËÀßÄê
¤òÄɲäǤ¤Þ¤¹¡£¤½¤¦¤¹¤ì¤Ð¥â¥Ç¥à¤ä¥¿¡¼¥ß¥Ê¥ë¤¬»È¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹¡£
<P>
<H2><A NAME="ss3.4">3.4 ´ûÃΤÎÌäÂêÅÀ</A>
</H2>
<P>ÌäÂ꤬µ¯¤³¤Ã¤¿¤é¡¢¤½¤ì¤Ï Boca ¥Ü¡¼¥É¤È¥Ç¥å¥¢¥ë IDE ¥³¥ó¥È¥í¡¼¥é¤Î¾×Æͤˤè¤ë
¤â¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¡£
Kevin Traas »á¤«¤é´ó¤»¤é¤ì¤¿¾ðÊó¤ò¼¡¤Ëµó¤²¤Æ¤ª¤¤Þ¤¹¡£
<BLOCKQUOTE>
¥«¡¼¥Í¥ë¤Ï¥Ü¡¼¥É¤òǧ¼±¤·¤Æ¤¤¤Þ¤¹¤«¡© ǧ¼±¤·¤Æ¤¤¤ì¤Ð¥Ö¡¼¥ÈÃæ¤Ë 16 ¸ÄÁ´¤Æ¤Î
¥Ý¡¼¥È¤Î ttySxx¡¢I/O¥Ý¡¼¥È¡¢IRQ¤¬É½¼¨¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¡£¤¢¤ï¤»¤Æ¡¢
<CODE>setserial -bg ttyS*</CODE>¤ò¼Â¹Ô¤¹¤ë¤È¡¢¥·¥¹¥Æ¥à¤Î¡ö<B>¤¹¤Ù¤Æ¤Î</B>¡ö
¥Ý¡¼¥È¤¬É½¼¨¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¡£
<P>ÌõÃð: Àµ¤·¤¯¤Ïsetserial -bg /dev/ttyS* ¤Ç¤¹¡£
<P>¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï BB2016 ¤Ç»ÈÍѤ¹¤ë IO¥Ý¡¼¥È¤Ï 0100 ¡Á 017f ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¤³¤Î¤³¤È¤¬¡¢ 2 ¤Ä¤Î IDE ¥³¥ó¥È¥í¡¼¥é¤ò¤â¤Ä¥·¥¹¥Æ¥à¤ÇÌäÂê¤òµ¯¤³¤·¤Þ¤¹¡£2
ÈÖÌܤΥ³¥ó¥È¥í¡¼¥é¤Ç¤¢¤ë ide1 ¤Ï 0170 ¡Á 0177 ¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢Àè¤Û¤É
¤Î¥¢¥É¥ì¥¹¤È½ÅÊ£¤·¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
¤³¤ì¤ÏÈó¾ï¤ËÌäÂê¤Ç¤¹¡ª
<P>»ä¤Î¾ì¹ç¤Ï IO ¤ÎÈϰϤò 0200 ¡Á 027f ¤Ë¤·¤Æ²ò·è¤·¤Þ¤·¤¿¡£¤³¤Î¥¢¥É¥ì¥¹¤Î
ÈϰϤǤÏÁ´¤¯¾×Æͤϵ¯¤¤Æ¤¤¤Þ¤»¤ó¡£¤·¤«¤·¤³¤ì¤Ï»ä¤Î´Ä¶¤Î¾ì¹ç¤Ê¤Î¤Ç¡¢¤´¼«Ê¬
¤Î¥·¥¹¥Æ¥à¤Ç³Îǧ¤µ¤ì¤¿¤Û¤¦¤¬¤è¤¤¤È»×¤¤¤Þ¤¹¡£(`cat /proc/ioports` ¤ò¼Â¹Ô¤·¤Æ
¤ß¤Æ¤¯¤À¤µ¤¤¡£
¤Þ¤¿ `cat /proc/interrupts` ¤È¤·¤Æ IRQ12 ¤¬»È¤ï¤ì¤Æ¤¤¤Ê¤¤¤³¤È¤â³Îǧ¤·¤¿¤Û¤¦
¤¬¤è¤í¤·¤¤¤Ç¤·¤ç¤¦)¡£
<P>IO ¥Ý¡¼¥È¤ÎÈϰϤ¬½Å¤Ê¤Ã¤Æ¤ª¤é¤º¡¢¤Þ¤¿ IRQ ¤â»È¤ï¤ì¤Æ¤¤¤Ê¤¤¤Ê¤é¡¢BB2016 ¤Î
¥¸¥ã¥ó¥Ñ¤òÊѹ¹¤·¤Æ¡¢/usr/src/linux/drivers/char/serial.c ¤ò¿·¤·¤¤ÀßÄê¤Ë
¹ç¤ï¤»¤Æ½ñ¤´¹¤¨¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤½¤Î¸å¥«¡¼¥Í¥ë¤òºÆ¹½ÃÛ¤·¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤ò
¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤¡£
</BLOCKQUOTE>
<P>
<HR>
<A HREF="Boca-4.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Boca-2.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Boca.html#toc3">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|