Date: Mon, 14 Apr 2003 15:11:23 -0700 From: John Hagen <jhagen@haushagen.org> To: freebsd-questions@freebsd.org Subject: Can't set serial console line speed higher than default Message-ID: <3E9B320B.838A7C51@haushagen.org>
next in thread | raw e-mail | index | archive | help
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 <at> haushagen.org ======================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E9B320B.838A7C51>