From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KwG0t-00058t-Cy for mharc-grub-devel@gnu.org; Sat, 01 Nov 2008 08:55:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwG0s-00058o-CO for grub-devel@gnu.org; Sat, 01 Nov 2008 08:55:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwG0p-00058O-J0 for grub-devel@gnu.org; Sat, 01 Nov 2008 08:55:32 -0400 Received: from [199.232.76.173] (port=47729 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwG0p-00058L-Aq for grub-devel@gnu.org; Sat, 01 Nov 2008 08:55:31 -0400 Received: from aybabtu.com ([69.60.117.155]:34289) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KwG0o-0000WQ-Sv for grub-devel@gnu.org; Sat, 01 Nov 2008 08:55:31 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1KwG0b-0006z1-FJ for grub-devel@gnu.org; Sat, 01 Nov 2008 13:55:17 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1KwG0F-0006J9-Vf for grub-devel@gnu.org; Sat, 01 Nov 2008 13:54:55 +0100 Date: Sat, 1 Nov 2008 13:54:55 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20081101125455.GE14721@thorin> References: <20081009102325.GA856@helfmeier.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081009102325.GA856@helfmeier.de> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: ATAPI Driver problems X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2008 12:55:34 -0000 On Thu, Oct 09, 2008 at 12:23:25PM +0200, Clemens Helfmeier wrote: > Hi everybody, > > I am trying to access the qemu cdrom drive (atapi) with grub2. Unfortunately, > qemu crashes with "triple faults". A bit of google revealed that this would also > reboot a real machine, so qemu has reasons for it. > > This always happens at the same location of code (0xb3a0 in my case) but the > output bofore the crash is not always the same. I don't know if output is > delayed either in qemu or in grub, does anyone know that? > > I also wonder why the qemu cdrom drive is not detected as removable nor as cdrom > drive: > > grub> ls (ata2)/ > ../disk/ata.c:798: opened device ata0 successfully. > ../disk/ata.c:803: using block size 0x200 for device ata0. > ../disk/ata.c:816: closed device ata0,1. > ../disk/ata.c:920: opening ATAPI dev `ata2' > ../disk/scsi.c:261: dev opened > ../disk/scsi.c:270: inquiry: devtype=0x00 removable=0 > qemu: fatal: triple fault This code is known to work on qemu AFAIK. Is that pristine SVN, or your patched version? > How can i debug the running grub2 in the qemu machine? Is there an easy way with > gdb? Did someone already get the ATAPI code working somehow? Where can i find > information on how to access atapi/ata drives? The wiki has some info on that IIRC -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."