From owner-freebsd-stable Mon Dec 11 12:47:43 2000 From owner-freebsd-stable@FreeBSD.ORG Mon Dec 11 12:47:39 2000 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from gw-nl1.origin-it.com (gw-nl1.origin-it.com [193.79.128.34]) by hub.freebsd.org (Postfix) with ESMTP id 2E7E937B400 for ; Mon, 11 Dec 2000 12:47:39 -0800 (PST) Received: from mail.de.origin-it.com (localhost.origin-it.com [127.0.0.1]) by gw-nl1.origin-it.com with ESMTP id VAA07740; Mon, 11 Dec 2000 21:47:31 +0100 (MET) (envelope-from Helge.Oldach@de.origin-it.com) Received: from smtprelay-de1.origin-it.com(172.16.188.53) by gw-nl1.origin-it.com via mwrap (4.0a) id xma007738; Mon, 11 Dec 00 21:47:31 +0100 Received: from mailhub.de.origin-it.com (mailhub.de.origin-it.com [172.16.189.20]) by mail.de.origin-it.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id VAA18426; Mon, 11 Dec 2000 21:47:30 +0100 (MET) Received: from galaxy.de.cp.philips.com (galaxy.de.cp.philips.com [130.143.166.29]) by mailhub.de.origin-it.com (8.11.1/8.11.1/hmo23oct00) with ESMTP id eBBKlSH08050; Mon, 11 Dec 2000 21:47:29 +0100 (CET) (envelope-from Helge.Oldach@de.origin-it.com) Received: (from hmo@localhost) by galaxy.de.cp.philips.com (8.9.3/8.9.3/hmo14aug98) id VAA20173; Mon, 11 Dec 2000 21:47:28 +0100 (MET) Message-Id: <200012112047.VAA20173@galaxy.de.cp.philips.com> Subject: Re: shutdown -r and reboot In-Reply-To: <20001211113141.A880@bucca> from Michael Remski at "Dec 11, 2000 11:31:41 am" To: mremski@ellacoya.com (Michael Remski) Date: Mon, 11 Dec 2000 21:47:27 +0100 (MET) Cc: freebsd-stable@FreeBSD.org From: Helge Oldach X-Address: Atos Origin, Billstrasse 80, D-20539 Hamburg, Germany X-Phone: +49 40 7886 464, Fax: +49 40 7886 235, Mobile: +49 172 4515513 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Michael Remski: >Wondering if anyone else is seeing this: >Fresh install from 4.2 release ISO image >everything installs ok, >custom kernel: Basically GENERIC with ide stripped out (all SCSI system) >boots and runs fine, usually in X >linux emulation loaded at boot time >type in either "shutdown -r now" or "reboot" >and we get the normal messages upto and including the "Uptime:", >then the machine hangs. >If you boot -s, then both commands work, This has been standard behaviour for me on the selection of HP Vectras I have used (currently an XA - P166) since The Early Days (aka FreeBSD 2.0.5). Well, I have seen a little improvement last weekend that may give a hint: I got annoyed by the problems with the pcn driver (which doesn't work very well with the XA's built-in PCI NIC - only the "100" port works on a 10 Mbps hub, and only if it's *not* connected to the hub during boot-up) and decided to revert to the good old lnc driver for an experiment. Indeed the lnc driver worked fine ("using old-style compatability shims"), however the machine consistently got hung doring "reboot" or "shutdown -r". Just as you described. Yes, it even got hung after a "boot -s" and manually ifconfig'ing the NIC. It's definitely related to just the lnc driver; this was the only kernel change I made. I reverted to the pcn driver and things are fine again. The machine reboots as expected, however I still need manual intervention to disconnect it from the hub during device probe. BTW, you need to set the "long PCI device reset" option in the BIOS to force the NIC out of the 32-bit mode used by the pcn driver. Otherwise you'll get another hang-up as the device doesn't revert to 16-bit mode automatically. Unfortunately the BIOS wants the device in 16-bit mode or it gets a hickup. >I put a couple of printfs in kern_shutdown.c and kern_module.c >if linux is loaded at boottime, it seems to hang. >if linux is NOT loaded at boottime, it seems ok (actually reboots) >if linux is loaded at boottime, but manually unloaded (kldunload -n >linux.ko), >it hangs. >hard reset button, the machine reboots fine, no fsck or anything indicating No linux module at all in my case. I think starting X11 once was sufficient to disallow reboot. Helge To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message