From owner-freebsd-stable@FreeBSD.ORG Fri Aug 10 16:39:22 2007 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6416B16A417 for ; Fri, 10 Aug 2007 16:39:22 +0000 (UTC) (envelope-from shannon@widomaker.com) Received: from wilma.widomaker.com (wilma.widomaker.com [204.17.220.5]) by mx1.freebsd.org (Postfix) with ESMTP id 3761813C45D for ; Fri, 10 Aug 2007 16:39:21 +0000 (UTC) (envelope-from shannon@widomaker.com) Received: from [69.72.99.174] (helo=escape.goid.lan) by wilma.widomaker.com with esmtp (Exim 3.36 #1) id 1IJWni-000DKy-00 for stable@freebsd.org; Fri, 10 Aug 2007 11:53:22 -0400 Received: from daydream (daydream.goid.lan [192.168.1.10]) by escape.goid.lan (Postfix) with ESMTP id 69B6DA503 for ; Fri, 10 Aug 2007 11:53:21 -0400 (EDT) Received: by daydream (Postfix, from userid 1000) id 360426ADCB; Fri, 10 Aug 2007 11:53:21 -0400 (EDT) Date: Fri, 10 Aug 2007 11:53:21 -0400 To: stable@freebsd.org Message-ID: <20070810155321.GA20708@widomaker.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) From: shannon@widomaker.com (Charles Shannon Hendrix) Content-Transfer-Encoding: quoted-printable Cc: Subject: boot logo/menu corruption X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 16:39:22 -0000 I am creating boot menus for an embedded project, and appliance machine that runs FreeBSD and some custom software. The machine has a serial-video BIOS so we can run the machine headless. Serial console support works great, but for one problem: When the second stage boot loader starts, the text output to the serial console is corrupted. Characters are doubled, control characters frequently don't work or get turned into null, etc. For example, here is the basic FreeBSD menu and how it looks when I boot using the serial console: +-----------------------------------------++=EF=BF=BD22;3 ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD Welcome to FreeBSD!oo FFrreeee|BSSDD!! ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD1. Boot FreeBSD [default]BSSDD [[ddeef|aauulltt]] ||=EF=BF=BD2. Boot FreeBSD with ACPI disablediitth| AACCPPII ddiissaab= blleedd ||=EF=BF=BD3. Boot FreeBSD in Safe ModeDD iinn S|aaffee MMooddee ||=EF=BF=BD4. Boot FreeBSD in single user moden s|iinnggllee uusseerr = mmooddee ||=EF=BF=BD5. Boot FreeBSD with verbose loggingtth| vveerrbboossee llo= oggggiinngg ||=EF=BF=BD6. Escape to loader promptllooaaddeerr |pprroommpptt ||=EF=BF=BD7. Rebootebboooott ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BD ||=EF=BF=BDSelect option, [Enter] for defaultEnntt|err]] ffoorr ddeeff= aauulltt ||=EF=BF=BDor [Space] to pause timer H00 ussee| ttiimmeerr =20 +-----------------------------------------++=EF=BF=BD[6;13 Some strings come out normaly, others are doubled, and some just don't come out at all or come out as nulls or something else. When the boot loader starts the spinner is doubled. Especially before the menu goes up, I get doubled strings, kind of line this: FFrreeBBSSDD 66..22 ...just as an example. >From this menu I picked the option I want, and then everything is fine. It seems that once the kernel gets control of the console, everything works as I expect. Does anyone have any idea why the second/third stage has trouble? Is it possible this is because the loader is writing to the console and the video BIOS is doing it also? Thanks. --=20 shannon / Asus A8N5X - Opteron 170@2.5GHz | But you know, a little Sun Ul= tra 1 -------' 2GB RAM - nVidia 7900GS | is doing all the hard work...