From owner-freebsd-questions@FreeBSD.ORG Wed Aug 20 11:59:50 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF23916A4BF for ; Wed, 20 Aug 2003 11:59:50 -0700 (PDT) Received: from mail.seekingfire.com (coyote.seekingfire.com [24.72.10.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 388CA43F75 for ; Wed, 20 Aug 2003 11:59:50 -0700 (PDT) (envelope-from tillman@seekingfire.com) Received: from blues.seekingfire.prv (blues.seekingfire.prv [192.168.23.211]) by mail.seekingfire.com (Postfix) with ESMTP id 9FDA692 for ; Wed, 20 Aug 2003 12:59:49 -0600 (CST) Received: (from tillman@localhost) by blues.seekingfire.prv (8.11.6/8.11.6) id h7KIxn306656 for freebsd-questions@freebsd.org; Wed, 20 Aug 2003 12:59:49 -0600 Date: Wed, 20 Aug 2003 12:59:49 -0600 From: Tillman Hodgson To: FreeBSD-Questions Message-ID: <20030820125949.I2526@seekingfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Urban-Legend: There is lots of hidden information in headers Subject: 38400 serial boot console through all stages of boot? (reposting from sparc64 list) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 18:59:51 -0000 Howdy, I originally posted this to the sparc64 mailing list and haven't received a response. It occurs to me that this might not be sparc specific and so I'm reposting it on -questions@. It's a -CURRENT sparc64 system, so I'm not sure that -questions@ covers all the territory either :-) I have the serial boot console and a login getty working, and I wanted to move them to 38400 from the default 9600. The short story is that it works until it mounts root, then I get garbage like this: xx|xx@x|@x@xxx@@|xxxxx@x||x|x@xxx|x@x@|x|x||x|@x|x|xx|xx@x|@|x|x| (etc) Which I assume is due a serial speed mismatch. After a little bit of time, the computer finishes booting and I'm presented with a working serial login (i.e., the speed matches again). Here's a rough synopsis of what happens: ... Timecounters tick every 0.976 msec IPsec: Initialized Security Association Processing. IP Filter: v3.4.31 initialized. Default = pass all, Logging = enabled ad0: 8223MB [16708/16/63] at ata2-master WDMA2 acd0: CDROM at ata3-master PIO4 Mounting root from ufs:/dev/ad0a |xx@x|x|x@x@x|@xx|x@xxxx|@@|@xx@|xpx@@xx|xx@ (etc for several lines) FreeBSD/sparc64 (caliban.rospa.ca) (ttyb) login: The parts that work at 38400: * Getting into the Sparc firmware via ~# in tip (this is /so/ handy!) * Getting into the loader (this is /so/ handy!) * The kernel messages reporting detected hardware * The getty to login To set this up, I've: * Set ttyb setenv'd as the input and output devices and the speed set to 38400 in the Sparc firmware (this part is sparc64 specific) * Set BOOT_COMCONSOLE_SPEED= 38400 in /etc/make.conf * Set options CONSPEED=38400 in my kernel config file * cd /usr/src && time make buildkernel && make installkernel * cd /usr/src/sys/boot && make all install clean * sunlabel -B ad0 (sparc64 specific - sunlabel rather than bsdlabel) Am I missing something? -T -- Page 2: Unix today is nothing less than a worldwide culture, comprising many tools, ideas and customs. - Harley Hahn, _The Unix Companion_