Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2001 22:50:46 -0400 (EDT)
From:      David Miller <dmiller@sparks.net>
To:        freebsd-stable@freebsd.org
Subject:   Re: serial port stuck at 9600
Message-ID:  <Pine.BSF.4.21.0106122229460.59495-100000@search.sparks.net>
In-Reply-To: <Pine.BSF.4.21.0106121330250.59495-100000@search.sparks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 12 Jun 2001, David Miller wrote:

> On Mon, 11 Jun 2001, David Miller wrote:
> 
> > Hi All:)
> > 
> > Is there a problem with setting serial port speeds in 4.3R?  
> 
> After digging through a couple of other "identical" systems, I've
> discovered that the only reason it worked at all was that the BIOS was
> configured with the com port on "auto".  When set to be com1 at IRQ 4 it
> ceased to function at all, matching the other two systems.
> 
> I've tracked the problem down to the port (ttyd0) not having DCD
> input.  Using cuaa0 worked fine, so the serial port is OK.

A kindly reader here mentioned that DCD was an "input only" signal on PC
serial ports.  That is to say they look for it, they don't set it.

Armed with that knowledge I bridged DTR from the remote device, which is
connected to DSR on the local device.  In english, this means you need to
tie pin 6 to pin 1 on the ttyd0 end if you're using a 9 pin port.

Now the only problem I'm having is bumping the console serial speed.  I've
read through the handbook till I'm blind and it won't kick out of 9600
baud.  If I remove /boot.config and reboot so the port isn't the console,
the speed changes as it should when set in /etc/ttys.  So it's not a
hardware issue.

I've added BOOT_COMCONSOLE_SPEED=57600 to /etc/make.conf,
cd /usr/src/sys/boot/i386/boot2/
make

(missing library)

cd /usr/src/sys/boot/i386/btx
make
(works fine except for Warning: Object directory not changed from original
/usr/src/sys/boot/i386/btx/lib) message

cd -
make

- works fine, creates new boot2 image.
Verify image is in /boot

Installed new images with:

cd /boot
disklabel -W ad0
disklabel -B -b boot1 -s boot2 ad0

reboot - still locked at 9600

I also tried installing them on ad0s1, same results.  FreeBSD is installed
without the bootmgr.

I also added options         CONSPEED=57600 to the config file, relinked,
installed, and rebooted.  Still at 9600.

I'm obviously missing something.  Anyone want to tell me what?

Thanks,

--- David



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0106122229460.59495-100000>