From owner-freebsd-ppc@FreeBSD.ORG Sun Jan 23 18:21:30 2011 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1ABBC106564A for ; Sun, 23 Jan 2011 18:21:30 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from thalia-smout.broadpark.no (thalia-smout.broadpark.no [80.202.8.21]) by mx1.freebsd.org (Postfix) with ESMTP id C657B8FC14 for ; Sun, 23 Jan 2011 18:21:29 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from ignis-smin.broadpark.no ([80.202.8.11]) by thalia-smout.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTP id <0LFH0066QMZSBRB0@thalia-smout.broadpark.no> for freebsd-ppc@freebsd.org; Sun, 23 Jan 2011 19:21:28 +0100 (CET) Received: from kg-v2.kg4.no ([84.48.120.77]) by ignis-smin.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with SMTP id <0LFH00L7AMZR8670@ignis-smin.broadpark.no> for freebsd-ppc@freebsd.org; Sun, 23 Jan 2011 19:21:28 +0100 (CET) Date: Sun, 23 Jan 2011 19:21:27 +0100 From: Torfinn Ingolfsen To: freebsd-ppc@freebsd.org Message-id: <20110123192127.96d74f0c.torfinn.ingolfsen@broadpark.no> In-reply-to: <322CA234-6D06-4B81-88B3-89B756FD2D85@gromit.dlib.vt.edu> References: <20110123003845.053726a7.torfinn.ingolfsen@broadpark.no> <322CA234-6D06-4B81-88B3-89B756FD2D85@gromit.dlib.vt.edu> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: PowerMac G5 and FreeBSD 9.0-current: no disks? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2011 18:21:30 -0000 On Sat, 22 Jan 2011 22:16:24 -0500 Paul Mather wrote: > On Jan 22, 2011, at 6:38 PM, Torfinn Ingolfsen wrote: > > > Hi, > > > > Nathan's BSDinstaller snapshot[1] for PowerPC is the first image that I have managed to > > boot on my PowerMac G5[2]. This made it possible for me to get dmesg output from > > the machine, see the FreeBSD page[3]. > > When I am looking at the the dmesg, I can see that the hard drive isn't detected. Partial output: > > atapci0: mem 0x80600000-0x80601fff irq 256 at device 12.0 on pci6 > > ata2: on atapci0 > > ata3: on atapci0 > > ata4: on atapci0 > > ata5: on atapci0 > > atapci1: at device 12.1 on pci6 > > pcib1: failed to reserve resource for atapci1 > > atapci1: 0x10 bytes of rid 0x20 res 4 failed (0, 0xffffffff). > > atapci1: unable to map interrupt > > device_attach: atapci1 attach returned 6 > > Is the hard drive not detected every boot? FWIW, on the Xserve G5 I run FreeBSD/powerpc64 9-CURRENT on, sometimes during boot the hard (ad0) drive will fail to be probed and hence the system will fail to > find and mount the root file system. However, if I drop to the debugger and issue a "reboot" at that point then on the subsequent boot the hard drive will usually be probed correctly and the system will boot > fully. (Sometimes I have to iterate this a few times, but eventually the hard drive is probed and the system can boot.) In my case, it seems quite consistent. I just did a little test. For all normal boots I used: set hw.ata.atapi_dma=0 boot for all verbose boots I used: set hw.atapi_dma=0 boot -v after each boot, I used the LiveCD, and 'atacontrol list' and 'atacontrol reinit ata2' to check if drive ad0 (the internal drive with OS X on it) was there. 5 normal boots: no ad0 1 verbose boot: ad0 detected 1 normal boot: no ad0 1 verbose boot: ad0 detected. Perhaps it is a timing issue? Perhaps printing all the extra text lines on the verbose boot gives the drive (or controller) enough time to become ready? I don't know. -- Torfinn