Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Nov 2005 13:19:46 +0900
From:      Jay <jayp.ml@gmail.com>
To:        Brian McCann <bjmccann@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Serial Console Help Needed
Message-ID:  <d43918300511282019s4ea307aak6de97b72ed71ce93@mail.gmail.com>
In-Reply-To: <2b5f066d0511281249r46f4be5fh9b46f843c49a39ac@mail.gmail.com>
References:  <2b5f066d0511281249r46f4be5fh9b46f843c49a39ac@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/29/05, Brian McCann <bjmccann@gmail.com> wrote:
> Hi all.  I'm having a heck of a time trying to get a serial console
> setup on 5.4.  I've recompiled the boot blocks to set the speed to
> 19200, added "set console=3D"comconsole" " to /boot/loader.rc, turned on
> /dev/ttyd0 and ttyd1 in /etc/ttys, and added -P to /boot.config.  I
> can see the kernel messages, then it looks like when rc runs, it
> stops.  I don't see anything beyond "Mounting root from
> ufs:/dev/da0s1a", until I get my getty (which, for some reason is
> ttyd1, not ttyd0).  The config for sio0 in dmesg shows "sio0:
> <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on
> acpi0".
>
> Any ideas?  I'm out of good ones...
>
> Thanks,
> --Brian
>
> _-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_
> Brian McCann
> Systems & Network Administrator, K12USA
>
> "I don't have to take this abuse from you -- I've got hundreds of
> people waiting to abuse me."
>                 -- Bill Murray, "Ghostbusters"

try add nc flag(no carrier) to gettytab entry
like this..
/etc/gettytab:
serialcon:\
        :np:nc:hw:tc=3D19200-baud:

/etc/ttys:
ttyd0   "/usr/libexec/getty serialcon"  vt100   on  secure
(or ttyd1..?)

it fixed same trouble on mine.

btw, I don't know why your sio0 is 0x2f8 irq3 .. isn't it supposed to
be detected as sio1?
If you are going to use boot0sio too, you need to add
'BOOT_COMCONSOLE_PORT=3D0x2F8' to /etc/make.conf then
recompile/install /sys/boot then install boot0sio using boot0cfg(8).



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