From owner-freebsd-hackers Thu Apr 30 17:14:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA18017 for freebsd-hackers-outgoing; Thu, 30 Apr 1998 17:14:12 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from tnt.isi.edu (tnt.isi.edu [128.9.128.128]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA18010 for ; Thu, 30 Apr 1998 17:14:05 -0700 (PDT) (envelope-from touch@ISI.EDU) Received: from rum.isi.edu (rum-s.isi.edu [128.9.192.237]) by tnt.isi.edu (8.8.7/8.8.6) with ESMTP id RAA26981; Thu, 30 Apr 1998 17:14:05 -0700 (PDT) From: Joe Touch Received: (from touch@localhost) by rum.isi.edu (8.8.7/8.8.6) id RAA22830; Thu, 30 Apr 1998 17:14:05 -0700 (PDT) Date: Thu, 30 Apr 1998 17:14:05 -0700 (PDT) Message-Id: <199805010014.RAA22830@rum.isi.edu> To: freebsd-hackers@FreeBSD.ORG Subject: ATAPI probe hanging Cc: touch@ISI.EDU Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have a problem booting a laptop with a detachable CDROM base unit, when the unit is attached. The configuration is: Hitachi VisionBook Elite 2.2.5 kernel, PAO patches (970616) installed The symptom is that, during boot: finds fd0 finds wdc0 (wd0) finds wdc1 (CDROM) finds info about the CDROM at wcd0 - 1722 Kb/s... finds info about the CDROM at wcd0 - no disc inside, unlocked (hangs here) This problem prevents me from using a boot floppy (the PAO floppy, e.g.) to boot install from the CDROM. In attempting to trace the problem, I turned on debugging, and noticed that the kernel dealt fine with the first ATAPI device (#0), but it was hanging in the probe of the second device (#1), which does not exist on this machine. I found a temporary fix, which is: Change "/usr/src/sys/i386/isa/wd.c" : /* * Probe all free IDE units, searching for ATAPI drives. */ for (unit=0; unit<2; ++unit) { To: for (unit=0; unit<1; ++unit) { (the full patch is below) I would like to know if there is a configuration change that would avoid the need for this patch. (alternately, if anyone might be able to build a 2.2.5 or 2.2.6 PAO boot floppy with that patch, I would be very grateful) Thanks, Joe -------- (patch file follows) -------- *** wd.c Fri Feb 20 11:14:22 1998 --- wd.c-old Fri Feb 20 12:56:33 1998 *************** *** 736,743 **** /* * Probe all free IDE units, searching for ATAPI drives. */ ! /* for Joe for (unit=0; unit<2; ++unit) { */ ! for (unit=0; unit<1; ++unit) { #if NCRD > 0 for (lunit=0; lunit 0 for (lunit=0; lunit