From: Dantso@cris.com (Dan Tso)
Subject: Re: DHV-11, DZV-11 speeds ?
Date: 1996/08/17 [thread overview]
Message-ID: <4v5gq6$c6q@herald.concentric.net> (raw)
In-Reply-To: Dw073z.Mzx@rockyd.rockefeller.edu
Dan Ts'o (dan@dnn.rockefeller.edu) wrote:
: Can someone tell me if either the DZV-11 or DHV-11 serial line mux
: cards for the Qbus support 38400baud ? Or anything else higher than 19200 ?
: I want to connect one up to a 28.8k modem at the highest reasonable
: speed, under Ultrix-32 (MVAX III).
: Thanks.
Well, it looks like I got 38400 baud working on my Ultrix 4.3 MVAX III.
Thanks to Alan Rollow for bits of information and ideas. Basically he informed
me that a DHU-11 claims to support 38400 and a DHV-11 is a Qbus DHU-11 not a
DH-11.
The problem is that the Ultrix DHU-11/DHV-11 driver for some reason
does not support 38400 because that speed code was omitted from the internal
driver table. Why one can only speculate. There are a few other places around
Ultrix/BSD Unix that also assume 9600 or 19200 is the highest speed one would
want to go. The original DH-11, upon which most of the Unix serial mux code is
based, including the encoding of speeds in gtty/stty only supported up to
9600, plus two "external" clock rates named EXTA and EXTB. It is these two
that, first, 3rd party card companies, and then BSD Unix later took as
19200 and 38400.
Anyways, to patch in support for 38400 baud for the DHV-11 (I don't
think the DZV-11 will hack it), all you have to do is add a final 15
(hex 0xF, the stty/gtty speed code for EXTB/38400) to the internal dhu.c
driver table dhu_speeds and turn on the 16th bit in the mask word
dhu_valid_speeds. Trivial if you have the source.
Don't have the source ? Then its adb time:
# adb -w /vmunix /dev/kmem
_dhu_speeds+0xe?x
_dhu_speeds+e: e
?w 0xf0e
_dhu_speeds+e: e = f0e
/w 0xf0e # Optional: patch running kernel
_dhu_speeds+e: e = f0e
<ENTER>
_dhu_valid_speeds:
_dhu_valid_speeds: 7fbd
?w 0xffbd
_dhu_valid_speeds: 7fbd = ffbd
/w 0xffbd # Optional: patch running kernel
_dhu_valid_speeds: 7fbd = ffbd
$q
That's it. The /w commands patch the running kernel so there's no need
to reboot (isn't UNIX great ?). Of course, you will have to do this to every
new kernel that you rebuild. However you can do the same thing to the load
module dhu.o (/usr/sys/VAX/BINARY/dhu.o) to incorporate the patch to avoid this
nuisance to reapplying the above patch each time you rebuild the kernel. Just
use the same ?w commands above to dhu.o.
There is another thing that I did: tip as distributed also doesn't
support 38400. Patching tip is a little more tricky because: 1) unlike /vmunix
tip doesn't have a namelist so no symbolic labels in adb, 2) the code to tip
is such that if you enter the code into the speed table within tip, you will
create the possibility that tip will crash/coredump if you later tell tip to
use a bad speed, since it depends on a -1 code to tell its the end of the
speed table and that is the entry you must punch out with 38400.
The alternative, obvious, is to fix it in the source, which I believe
is freely available from the FREEBSD people. However, I went for the quick
patch and don't care much if a later mistake of mine in entering speeds causes
a coredump (it isn't the kernel, after all...). So here is what you do:
# adb -w /usr/bin/tip
?l 4b00 # locate 19200 (hex 4b00)
2e76
<ENTER>
2e78: 3fef
?l 4b00 # locate again, find the right one
9b26
<ENTER>
9b28: 1100
?l 4b00 # which is followed by 0, then -1 (FFFF)
f9ee
<ENTER>
f9f0: 1700
?l 4b00 # and again
15224
<ENTER>
15226: 0 # this is it
<ENTER>
15228: ffff
?w 9600
15228: ffff = 9600 # change -1 to 38400 (hex 9600)
<ENTER>
1522a: ffff
?w 0 # change -1 to 0
1522a: ffff = 0
$q
To enable logins at 38400, obviously you have to edit /etc/gettytab
and /etc/ttys (and kill -1 1). But luckily /etc/getty already supports 38400,
as does stty. To enable dialouts with tip at 38400, you must edit /etc/remote.
With the above patch I have gotten 26400 connects to my ISP with my
USR Sportster 28.8 and everything seems fine. Not 57600, but 38400 is better
than 19200.
Good luck!
next prev parent reply other threads:[~1996-08-17 4:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-12 4:00 DHV-11, DZV-11 speeds ? Dan Ts'o
1996-08-15 4:00 ` Andy Davis
1996-08-16 4:00 ` Jerry Hudgins
1996-08-21 4:00 ` bkort
1996-08-17 4:00 ` Dan Tso [this message]
1996-08-19 4:00 ` zrepachol
1996-08-18 4:00 ` Dan Tso
1996-09-01 4:00 ` Carl Harris
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox