From owner-freebsd-doc Thu Feb 14 1: 1:53 2002 Delivered-To: freebsd-doc@freebsd.org Received: from rwcrmhc54.attbi.com (rwcrmhc54.attbi.com [216.148.227.87]) by hub.freebsd.org (Postfix) with ESMTP id DB12A37B405 for ; Thu, 14 Feb 2002 01:01:49 -0800 (PST) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc54.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020214090144.YPOF1214.rwcrmhc54.attbi.com@blossom.cjclark.org> for ; Thu, 14 Feb 2002 09:01:44 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g1E91iT34967 for doc@freebsd.org; Thu, 14 Feb 2002 01:01:44 -0800 (PST) (envelope-from cjc) Date: Thu, 14 Feb 2002 01:01:44 -0800 From: "Crist J. Clark" To: doc@freebsd.org Subject: Fix Kernel Configs in the Serial and UART Tutorial Message-ID: <20020214010144.J33833@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The kernel configuration examples contain the depricated 'tty' flag, http://www.freebsd.org/doc/en_US.ISO8859-1/articles/serial-uart/index.html This will actually break the kernel configuration. Patch look good? I'll commit it, but I wanted to run it by some doc-committers first. Index: doc/en_US.ISO8859-1/articles/serial-uart/article.sgml =================================================================== RCS file: /home/ncvs/doc/en_US.ISO8859-1/articles/serial-uart/article.sgml,v retrieving revision 1.5 diff -u -r1.5 article.sgml --- doc/en_US.ISO8859-1/articles/serial-uart/article.sgml 5 Nov 2001 19:25:52 -0000 1.5 +++ doc/en_US.ISO8859-1/articles/serial-uart/article.sgml 14 Feb 2002 08:50:59 -0000 @@ -1985,14 +1985,14 @@ add options COM_MULTIPORT or it will not work very well! - device sio4 at isa? port 0x100 tty flags 0xb05 -device sio5 at isa? port 0x108 tty flags 0xb05 -device sio6 at isa? port 0x110 tty flags 0xb05 -device sio7 at isa? port 0x118 tty flags 0xb05 -device sio8 at isa? port 0x120 tty flags 0xb05 -device sio9 at isa? port 0x128 tty flags 0xb05 -device sio10 at isa? port 0x130 tty flags 0xb05 -device sio11 at isa? port 0x138 tty flags 0xb05 irq 9 vector siointr + device sio4 at isa? port 0x100 flags 0xb05 +device sio5 at isa? port 0x108 flags 0xb05 +device sio6 at isa? port 0x110 flags 0xb05 +device sio7 at isa? port 0x118 flags 0xb05 +device sio8 at isa? port 0x120 flags 0xb05 +device sio9 at isa? port 0x128 flags 0xb05 +device sio10 at isa? port 0x130 flags 0xb05 +device sio11 at isa? port 0x138 flags 0xb05 irq 9 vector siointr The trick in setting this up is that the MSB of the flags represent the last SIO port, in this case 11 so flags @@ -2061,13 +2061,13 @@ Each port is +8 hexadecimal from the previous port, thus the 100h, 108h, 110h... addresses. - device sio1 at isa? port 0x100 tty flags 0x1005 -device sio2 at isa? port 0x108 tty flags 0x1005 -device sio3 at isa? port 0x110 tty flags 0x1005 -device sio4 at isa? port 0x118 tty flags 0x1005 + device sio1 at isa? port 0x100 flags 0x1005 +device sio2 at isa? port 0x108 flags 0x1005 +device sio3 at isa? port 0x110 flags 0x1005 +device sio4 at isa? port 0x118 flags 0x1005 … -device sio15 at isa? port 0x170 tty flags 0x1005 -device sio16 at isa? port 0x178 tty flags 0x1005 irq 3 vector siointr +device sio15 at isa? port 0x170 flags 0x1005 +device sio16 at isa? port 0x178 flags 0x1005 irq 3 vector siointr The flags entry must be changed from this example unless you are using the exact same @@ -2249,11 +2249,11 @@ this example, we would configure: # standard on-board COM1 port -device sio0 at isa? port "IO_COM1" tty flags 0x10 +device sio0 at isa? port "IO_COM1" flags 0x10 # patched-up multi-I/O extension board options COM_MULTIPORT -device sio1 at isa? port "IO_COM2" tty flags 0x205 -device sio2 at isa? port "IO_COM3" tty flags 0x205 irq 3 +device sio1 at isa? port "IO_COM2" flags 0x205 +device sio2 at isa? port "IO_COM3" flags 0x205 irq 3 Note that the flags setting for sio1 and @@ -2303,7 +2303,7 @@ kernel configuration (note that your irq and iomem settings may differ). - device cy0 at isa? tty irq 10 iomem 0xd4000 iosiz 0x2000 vector cyintr + device cy0 at isa? irq 10 iomem 0xd4000 iosiz 0x2000 vector cyintr @@ -2386,7 +2386,7 @@ your kernel configuration file, changing the numbers as appropriate: - device si0 at isa? tty iomem 0xd0000 irq 11 + device si0 at isa? iomem 0xd0000 irq 11 Valid IRQ numbers are 9, 10, 11, 12 and 15 for SX ISA host cards and 11, 12 and 15 for SI/XIO ISA host cards. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message