From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 16:38:57 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 9D22937B401 for ; Mon, 14 Apr 2003 16:38:57 -0700 (PDT) Received: from mail.blarg.net (floyd.blarg.net [206.124.128.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3F9E43F93 for ; Mon, 14 Apr 2003 16:38:56 -0700 (PDT) (envelope-from jhagen@haushagen.org) Received: from haushagen.org (vp209.dmp02.sea.blarg.net [206.124.131.209]) by mail.blarg.net (Postfix) with ESMTP id BB63D3858D for ; Mon, 14 Apr 2003 16:38:54 -0700 (PDT) Sender: john@mail.blarg.net Message-ID: <3E9B320B.838A7C51@haushagen.org> Date: Mon, 14 Apr 2003 15:11:23 -0700 From: John Hagen Organization: None to speak of X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.5 i586) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Can't set serial console line speed higher than default 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: Mon, 14 Apr 2003 23:38:57 -0000 Hi all, I've been trying to set my serial console line speed on a FreeBSD 4.7-RELEASE installation on a Dell P200 Optiplex GXi PC higher than the default 9600 baud with a VT520 terminal. I am using the single serial port on the system mainboard. I am having no luck at all increasing line speed during boot or running getty later, though using 9600 baud on PC and terminal works fine for everything, though it's a little slow. Here's what I did: Per the Handbook (printed copy, section 15.6.2 and 15.6.4), I initially set the ttyd0 line in /etc/ttys to the following to get a login prompt: ttyd0 "/usr/libexec/getty std.9600" vt520 on secure With this option set, "-h" in /boot.config and a "kill -1 1" sent to init I get boot messages sent to the terminal and subsequently a login prompt. All works fine, I can log in and do work. Then I changed /etc/ttys to the following: ttyd0 "/usr/libexec/getty std.38400" vt520 on secure After changing the terminal config to use a 38400 baud send and receive speed, kicking init and resetting the terminal, I just get garbage on the screen (upside down question marks, etc). The terminal is set to 8 bits, no parity, 1 stop bit and XON/XOFF flow control in full duplex mode. I then attempted to recompile a kernel that would allow a higher line speed. I set the following in my kernel build config file: device sio0 at isa? port IO_COM1 flags 0x10 irq 4 options CONSPEED=38400 I recompiled and installed the kernel the tradional way (w/o using buildkernel). I rebooted and cannot get anything but garbage on the terminal with the terminal's line speed set any higher than 9600 baud. I rebooted and added the following to /etc/make.conf: BOOT_COMCONSOLE_SPEED=38400 Then I ran through a kernel rebuild, install and reboot with no luck and still garbage on the screen. Then I noticed that the Handbook recommends to rebuild the boot blocks in certain cases, so I tried that as well. I tried running a make in /sys/boot/i386/boot2 and I get: /usr/libexec/elf/ld: cannot open /usr/sys/src/boot/i386/boot/../btx/crt0.o: No such file or directory *** Error code 1 I went to /usr/sys/src/boot/i386/btx/lib and sure enough, crt0.o is missing. At this point, I have no idea what else to try. How can I increase my serial line speed correctly? TIA, -- john hagen ~ jhagen haushagen.org ======================================