Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BTYha-00008w-Le for qemu-devel@nongnu.org; Fri, 28 May 2004 00:10:38 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BTVRV-0002ic-9w for qemu-devel@nongnu.org; Thu, 27 May 2004 20:42:21 -0400 Received: from [212.63.36.242] (helo=gwyn.kn-bremen.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BTTY7-0008Ff-5Y for qemu-devel@nongnu.org; Thu, 27 May 2004 18:40:31 -0400 From: Juergen Lock Date: Fri, 28 May 2004 00:17:31 +0200 Subject: Re: [Qemu-devel] FreeBSD status Message-ID: <20040528001731.A65448@saturn.kn-bremen.de> References: <20040524232328.A69576@saturn.kn-bremen.de> <40B3C9FC.2010105@bellard.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <40B3C9FC.2010105@bellard.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabrice Bellard Cc: qemu-devel@nongnu.org On Wed, May 26, 2004 at 03:56:18PM +0000, Fabrice Bellard wrote: > Juergen Lock wrote: > > As mentioned on irc I was having some success with FreeBSD: > > > > 4.10RC3 install cd: boots, but kernel doesnt see any disks > > (error message when trying to partition, -hda with empty image) > > 4.10-RELEASE boot.flp can be found using http://mirrorlist.freebsd.org/ btw. (yes 4.10-RELEASE is out, i'm currently ftp'ing it. 4.10 is off the -stable branch so its also important to get working.) > > 5.2.1 install cd and boot.flp: boot now with the fixes in cvs, > > but panic when trying to write to disk (same empty image). > > to repeat: at the mountroot prompt type: > > ufs:md0 > > then in sysinstall select custom install, partition, `c', > > enter slice (partition) size, hit `w' to write immediately, > > confirm, select mbr -> panic writing to disk > > I found the problem : it seems that FreeBSD expects the IDE READY status > bit just after the IDE WRITE command. It is weird as it is not > mentionned in the IDE specs. I would like to be sure it is a standard > IDE behaviour. > Hmm. I since built a debug kernel and it looks like the panic is in sys/dev/ata/ata-lowlevel.c line 276: if (request->device->channel->dma->flags & ATA_DMA_ACTIVE) request->device->channel->dma is NULL. The 5.2.1 ata-lowlevel.c can be viewed here: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/ata/ata-lowlevel.c?annotate=1.24.2.3 (to see other 5.2.1 sources look for the RELENG_5_2_1_RELEASE tag.) This seems to have something to do with the fact that qemu doesn't support ata (ide) dma (right?), but it is a bit strange as i do have seen 5.2.1 running on an old 486 about which i doubt that it has ide dma hardware, and anyway i'm pretty sure such a bug would have been known by now... Btw can you post or send me your patch so i can test it? > > I also get: npx0: WARNING: no FPU! from the kernel (kernel > > messages can be viewed with scroll-lock and then page-up/down, > > cursur-up/down), Fabrice says that the FPU error comes from the fact > > that FreeBSD uses FPU interrupts to test the FPU exception reporting. > > I made a fix (not commited yet). > Eagerly awaiting that one also... :) Juergen