Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Jan 2004 16:41:03 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        nate@root.org
Cc:        current@freebsd.org
Subject:   Re: Serial console only works after reboot?
Message-ID:  <20040104.164103.03383403.imp@bsdimp.com>
In-Reply-To: <20040104150929.Y19715@root.org>
References:  <20040103233044.N17367@root.org> <20040104.003330.54786488.imp@bsdimp.com> <20040104150929.Y19715@root.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20040104150929.Y19715@root.org>
            Nate Lawson <nate@root.org> writes:
: On Sun, 4 Jan 2004, M. Warner Losh wrote:
: > In message: <20040103233044.N17367@root.org>
: >             Nate Lawson <nate@root.org> writes:
: > : On Sat, 3 Jan 2004, M. Warner Losh wrote:
: > : > In message: <20040103184934.V16815@root.org>
: > : >             Nate Lawson <nate@root.org> writes:
: > : > : I have a laptop (IBM T23) and use sio0 as my console/gdb port.  One thing
: > : > : I noticed is if I power up the laptop and boot -h, I get garbage out the
: > : > : serial port.  However, if I boot fully and then just warm reboot, the
: > : > : serial console works fine.  I'm only using 9600 bps.  Ideas?
: > : >
: > : > weird.  Is the garbage data at some different rate?
: > :
: > : Nope, checked everything from 1200 up to 38400, different garbage but
: > : always garbage.  This is with -current as of 2003/12/30, no patches.
: >
: > Try 115200.
: 
: That works.  Now the question is "why".  Note that I have no "options
: CONSPEED" so according to /sys/dev/sio/sioreg.h, it should default to 9600
: and indeed does, after a reboot.  But not on a cold startup.

Somewhere along the way, it gets set to 115200.  Maybe it is
initialized to 115200 by the boot blocks?  I think once there's a
divisor programmed into the serial port, the kernel console code
doesn't change it.  I could be wrong about this, however....

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040104.164103.03383403.imp>