GTEK BBS-550 with Linux mini-HOWTO

Wajihuddin Ahmed

wahmed@sdnp.org.pk

憗愳恗 - 擔杮岅栿

cz8cb01@linux.or.jp

v1.1, 20 August 1997

GTEK 幮偺 BBS-550 偼 16C550 UARTS 偺嵹偭偨俉億乕僩偺僔儕傾儖僇乕僪偱偡
丅慡俉億乕僩偵懳偟偰丄偨偭偨侾偮偺 IRQ 偟偐巊傢傟傑偣傫丅傑偨丄Linux 偱
偼壗偺僪儔僀僶傕昁梫偲偟傑偣傫偺偱丄僇乕僱儖偑僔儕傾儖傪僒億乕僩偟偰偄
傟偽嵞僐儞僷僀儖傪偡傞昁梫偼偁傝傑偣傫丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

Table of Contents
1. 偳偺 I/O 億乕僩傾僪儗僗傪巊偊偽椙偄偺偐丠
2. rc.serial 僼傽僀儖偲 IRQ 偺慖戰
3. uugetty偺僙僢僩傾僢僾
4. 嵟屻偺妋擣...
5. 擔杮岅栿偵偮偄偰

1. 偳偺 I/O 億乕僩傾僪儗僗傪巊偊偽椙偄偺偐丠

Linux 忋偱偺僔儕傾儖億乕僩偺愝掕偺徻嵶偵偮偄偰偼丄Serial-HOWTO 傪嶲徠偟
偰壓偝偄丅巹傕偦偺 HOWTO 傪撉傓帠偐傜巒傔傑偟偨丅

巹偼帺暘偺 Linux box乮Slackware 2.3, 僇乕僱儖 1.3.93乯偺 BBS-550 傪丄
0x100 偐傜 0x140 傑偱偺 I/O 傾僪儗僗傪巊偆傛偆偵愝掕偟傑偟偨丅偦偺庡側
棟桼偲偟偰偼丄忋婰偺傾僪儗僗偼巹偺俹俠偱偼巊梡偝傟偰偄側偐偭偨偐傜偱偡
丅僕儍儞僷乕偺僙僢僥傿儞僌偼儅僯儏傾儖偺係儁乕僕偵嵹偭偰偄傑偡丅傑偨偙
偺 I/O 傾僪儗僗偼丄傔偭偨偵懠偺僴乕僪僂僃傾偵巊傢傟傑偣傫丅偁側偨偺俹俠
偱傕偙偺傾僪儗僗偑嬻偄偰偄傞偐偳偆偐傪妋擣偡傞偨傔偵偼丄GTEK 偺僼儘僢僺
乕偵偁傞 IOMAP.EXE 儐乕僥傿儕僥傿傪巊偭偰壓偝偄丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

2. rc.serial 僼傽僀儖偲 IRQ 偺慖戰

俹俠偵僇乕僪傪僀儞僗僩乕儖偟偨屻偼丄僔儕傾儖億乕僩偺愝掕傪偡傞昁梫偑偁
傝傑偡丅rc.serial 僼傽僀儖偵偼 BOCA 8 億乕僩僇乕僪梡偺僄儞僩儕偑偡偱偵
婰弎偝傟偰偄傞偼偢偱偡丅偙偺僄儞僩儕偼 GTEK 梡偵傕巊偊傑偡偐傜丄愝掕嶌
嬈偼旕忢偵娙扨偱偡丅埲壓偵巹偺 rc.serial 僼傽僀儖偺撪梕傪帵偟傑偡丅偙傟
偼 rc.S 僼傽僀儖偐傜屇傃弌偝傟傑偡偐傜丄 rc.S 偺奩摉偡傞峴傪僐儊儞僩傾
僂僩偟偰丄幚峴偝傟傞傛偆偵偟偰偔偩偝偄丅

   #!/bin/sh                                                           
   # /etc/rc.serial                                                    
   # Initializes the serial ports on your system                       
   # Version 2.01                                                      
   cd /dev                                                             
   SETSERIAL="/bin/setserial -a"                                       
   PORTS=`echo cua? cua??`                                             
   echo -n "Configuring serial ports...."                              
   # Do wild interrupt detection                                       
   #                                                                   
   #${SETSERIAL} -W ${PORTS}                                           
   # Do AUTOMATIC_IRQ probing                                          
   #                                                                   
   #AUTO_IRQ=auto_irq                                                  
   ${SETSERIAL} /dev/cua16 uart 16550A port 0x100 irq 5                
   ${SETSERIAL} /dev/cua17 uart 16550A port 0x108 irq 5                
   ${SETSERIAL} /dev/cua18 uart 16550A port 0x110 irq 5                
   ${SETSERIAL} /dev/cua19 uart 16550A port 0x118 irq 5                
   ${SETSERIAL} /dev/cua20 uart 16550A port 0x120 irq 5                
   #${SETSERIAL} /dev/cua21 uart 16550A port 0x128 irq 5               
   #${SETSERIAL} /dev/cua22 uart 16550A port 0x130 irq 5               
   #${SETSERIAL} /dev/cua23 uart 16550A port 0x138 irq 5               
   echo "done."                                                        
   ${SETSERIAL} -bg ${PORTS}                                           

巹偑 IRQ 偺俆斣傪巊偭偨帠偵拲栚偟偰壓偝偄丅GTEK 偺儅僯儏傾儖偺俇儁乕僕
偺 IRQ 愝掕 HOWTO 傕嶲徠偟偰壓偝偄丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

3. uugetty偺僙僢僩傾僢僾

巹偼 uugetty 傪僟僀儎儖僀儞偺堊偵巊偭偰偄傑偡丅埲壓偼巹偺 /etc/inittab
僼傽僀儖乮sys V乯偐傜偺敳悎偱偡丅

   s1:45:respawn:/sbin/uugetty ttyS16 38400 vt100                      
   s2:45:respawn:/sbin/uugetty ttyS17 38400 vt100                      
   s3:45:respawn:/sbin/uugetty ttyS18 38400 vt100                      
   s4:45:respawn:/sbin/uugetty ttyS19 38400 vt100                      
   s5:45:respawn:/sbin/uugetty ttyS20 57600 vt100                      
   #s6:45:respawn:/sbin/uugetty ttyS21 38400 vt100                     
   #s7:45:respawn:/sbin/uugetty ttyS22 38400 vt100                     
   #s8:45:respawn:/sbin/uugetty ttyS23 38400 vt100                     

懳墳偡傞僄儞僩儕乕偑 /etc/gettydefs 僼傽僀儖偵偁傞偙偲傪妋擣偟偰壓偝偄
丅傑偨丄怴偟偄 uugetty 愝掕僼傽僀儖傪 /etc/default 僨傿儗僋僩儕偵嶌惉偡
傞偙偲傕朰傟側偄傛偆偵丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

4. 嵟屻偺妋擣...

僇乕僱儖偺婲摦拞偵偼怴偟偄 tty 偼昞帵偝傟傑偣傫丅

僔儕傾儖億乕僩偼 rc.serial 僗僋儕僾僩偺幚峴拞偵愝掕偝傟傑偡丅偙傟偼婲摦
拞偵昞帵偝傟傑偡丅

ps ax 僐儅儞僪傪幚峴偡傟偽丄uugetty 偑僐僱僋僩偝傟偰偄傞巪偺昞帵偑偝傟
傞偼偢偱偡丅埲壓偼巹偺娐嫬偱偺 ps 僐儅儞僪幚峴寢壥偱偡丅

   18208 ? S 0:00 /sbin/uugetty ttyS18 38400 vt100                     
   18247 ? S 0:00 /sbin/uugetty ttyS20 57600 vt100                     
   18254 ? S 0:00 /sbin/uugetty ttyS19 38400 vt100                     
   18258 ? S 0:00 /sbin/uugetty ttyS17 38400 vt100                     
   18260 ? S 0:00 /sbin/uugetty ttyS16 38400 vt100                     

嵟屻偵丄僟僀儎儖傾僂僩乮cuaXX 傪巊梡偟偰乯偲僟僀儎儖僀儞乮ttySXX 傪巊梡
乯偱儃乕僪偺僥僗僩傪偟偰壓偝偄丅

岾塣傪婩傝傑偡両

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

5. 擔杮岅栿偵偮偄偰

擔杮岅栿丗 憗愳丂恗   
峑惓丗     挿扟愳丂桋 

1999擭 1寧 1擔

