From aecolley@spamcop.net Fri Aug 30 14:33:55 2002 Return-Path: Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44FBE37B400 for ; Fri, 30 Aug 2002 14:33:55 -0700 (PDT) Received: from marklar.elive.net (smtp.elive.ie [212.120.138.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43B1B43E6A for ; Fri, 30 Aug 2002 14:33:53 -0700 (PDT) (envelope-from aecolley@spamcop.net) Received: from cornerstone.colley.ie (1Cust98.tnt2.dub2.ie.uudial.net [213.116.42.98]) by marklar.elive.net (8.11.6/8.11.6) with ESMTP id g7UL4tw28114 for ; Fri, 30 Aug 2002 22:05:01 +0100 Received: by cornerstone.colley.ie (Postfix, from userid 1001) id BC883280; Fri, 30 Aug 2002 22:32:14 +0100 (IST) Message-Id: <20020830213214.BC883280@cornerstone.colley.ie> Date: Fri, 30 Aug 2002 22:32:14 +0100 (IST) From: Adrian Colley Reply-To: Adrian Colley To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: BIOS drive 0x80 (on atapci0) is misnumbered ata2 X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 42228 >Category: kern >Synopsis: BIOS drive 0x80 (on atapci0) is misnumbered ata2 >Confidential: no >Severity: serious >Priority: low >Responsible: sos >State: closed >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Aug 30 14:40:03 PDT 2002 >Closed-Date: Mon Apr 28 11:44:27 PDT 2003 >Last-Modified: Mon Apr 28 11:44:27 PDT 2003 >Originator: Adrian Colley >Release: FreeBSD 4.6.2-RELEASE i386 >Organization: YKYBHTLW, Inc. >Environment: System: FreeBSD cornerstone.colley.ie 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Fri Aug 23 14:09:07 IST 2002 root@:/usr/obj/usr/src/sys/CORNERSTONE i386 This machine is running a slightly hacked kernel (see patch below). Under 4.5-RELEASE the GENERIC kernel booted OK, but under 4.6.2-RELEASE the GENERIC kernel failed to find the root disk as described below. This PR refers to the unfortunate behaviour of the standard GENERIC kernel. This machine is an old Gateway 2000 box with a Neptune chipset and a PC-Tech RZ-1000 PCI/IDE controller (danger Will Robinson). The RZ-1000 has a single IDE channel (selected as the primary in the BIOS). There is a secondary (ISA) IDE controller, but it's unused. dmesg.boot (with patched kernel): Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.6.2-RELEASE #0: Fri Aug 23 14:09:07 IST 2002 root@:/usr/obj/usr/src/sys/CORNERSTONE Timecounter "i8254" frequency 1193182 Hz CPU: Pentium/P54C (90.21-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x524 Stepping = 4 Features=0x1bf real memory = 33554432 (32768K bytes) avail memory = 29437952 (28748K bytes) Preloaded elf kernel "kernel" at 0xc032c000. Intel Pentium detected, installing workaround for F00F bug Using $PIR table, 4 entries at 0xc00f99e0 apm0: on motherboard apm: found APM BIOS v1.1, connected at v1.1 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci.c cornerstone: progif 0 -> 0x81 pci0: on pcib0 atapci0: port 0x3f4-0x3f7,0x1f0-0x1f7 at device 1.0 on pci0 atapci0: Busmastering DMA not supported atapci0: Busmastering DMA disabled atapci0: ata_pci_add_child: masterdev (unit=0x0) atapci0: ata_pci_add_child: masterdev (unit=0x1) ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 isab0: at device 2.0 on pci0 isa0: on isab0 ed0: port 0xfce0-0xfcff irq 11 at device 6.0 on pci0 ed0: address 00:c0:df:f5:d9:07, type NE2000 (16 bit) pci0: at 14.0 orm0: