*BSD News Article 29387


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!foxhound.dsto.gov.au!fang.dsto.gov.au!yoyo.aarnet.edu.au!news.adelaide.edu.au!news.cs.su.oz.au!metro!ultima!kralizec.zeta.org.au!not-for-mail
From: bde@kralizec.zeta.org.au (Bruce Evans)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: FreeBSD 1.1 Beta, panic in sio
Date: 13 Apr 1994 03:15:51 +1000
Organization: Kralizec Dialup Unix Sydney - +61-2-837-1183, v.32bis v.42bis
Lines: 20
Message-ID: <2oel07$57h@kralizec.zeta.org.au>
References: <Co3Irp.F2@pegasus.com>
NNTP-Posting-Host: kralizec.zeta.org.au

In article <Co3Irp.F2@pegasus.com>, Richard Foulk <richard@pegasus.com> wrote:
>Attempts to manipulate nonexistant sio ports causes a panic.
>
>I was swapping some boards around and removed a two-port serial
>card without removing the related entries in /etc/ttys.  The system
>paniced as soon as the first getty was started.
>
>After removing the offending /etc/ttys entries I found that stty
>directed towards the missing ports also caused a panic.

This is fixed in FreeBSD-current.  For 1.1-Beta, remove the lines
controlled by "if NSIO > 0" in /usr/src/sys/i386/i386/cons.c.

The probe for the serial console doesn't check for serial port hardware
hardware, and does bogus initialization.  The probe for the
corresponding serial non-console fixes the initializion if the hardware
exists.  Serial consoles don't really work in 1.0 or 1.1-Beta and were
disabled for sio in 1.0, so no one noticed the bug.
-- 
Bruce Evans  bde@kralizec.zeta.org.au