Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ky4Mh-0002Jc-RC for qemu-devel@nongnu.org; Thu, 06 Nov 2008 07:53:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ky4Mg-0002JP-RW for qemu-devel@nongnu.org; Thu, 06 Nov 2008 07:53:35 -0500 Received: from [199.232.76.173] (port=55224 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ky4Mg-0002JM-PG for qemu-devel@nongnu.org; Thu, 06 Nov 2008 07:53:34 -0500 Received: from www.postnewspapers.com.au ([202.61.230.242]:48941) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ky4Mf-0002UO-Sb for qemu-devel@nongnu.org; Thu, 06 Nov 2008 07:53:34 -0500 Message-ID: <4912E852.9050606@postnewspapers.com.au> Date: Thu, 06 Nov 2008 21:51:30 +0900 From: Craig Ringer MIME-Version: 1.0 Subject: Re: [Qemu-devel] LSI53C895A, IDE HDD detection under SCO OpenServer 5.0.5 References: <471237.86381.qm@web51110.mail.re2.yahoo.com> In-Reply-To: <471237.86381.qm@web51110.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: theburner1@yahoo.com, qemu-devel@nongnu.org Justin Chevrier wrote: > Hey again, > > I realized that my patch was malformed (diffing the wrong way). Here it is again, hopefully in a usable format. Sorry for the confusion. OK, I had a chance to test your patch - correctly, this time. It gets a lot further into detection but on my 5.0.5 system still fails at: lsi_scsi: SCRIPTS dsp=f20021ec opcode 88080000 arg f000ff53 lsi_scsi: Call 0xf000ff53 lsi_scsi: SCRIPTS dsp=f000ff53 opcode ff0720ff arg ff0720ff lsi_scsi: Load reg 0x7 size 7 addr 0x000720ff = 00000000 lsi_scsi: Write reg 7 = 00 lsi_scsi: Write reg 8 = 00 lsi_scsi: Write reg 9 = 00 lsi_scsi: error: Unhandled writeb 0x9 = 0x0 ... which looks like execution of a script from la-la land to me. The dodgy value comes from here, a few operations earlier: lsi_scsi: SCRIPTS dsp=f200256c opcode f1dc0004 arg 00000024 lsi_scsi: Load reg 0xdc size 4 addr 0x00000024 = f000e987 lsi_scsi: Write reg dc = 87 lsi_scsi: Write reg dd = e9 lsi_scsi: Write reg de = 00 lsi_scsi: Write reg df = f0 lsi_scsi: SCRIPTS dsp=f2002574 opcode f1640004 arg 00000000 lsi_scsi: Load reg 0x64 size 4 addr 0x00000000 = f000ff53 <--**-- lsi_scsi: Write reg 64 = 53 lsi_scsi: Write reg 65 = ff lsi_scsi: Write reg 66 = 00 lsi_scsi: Write reg 67 = f0 lsi_scsi: SCRIPTS dsp=f200257c opcode e0640004 arg 0101e080 lsi_scsi: Store reg 0x64 size 4 addr 0x0101e080 lsi_scsi: Read reg 64 lsi_scsi: Read reg 65 lsi_scsi: Read reg 66 lsi_scsi: Read reg 67 That's tested with: qemu \ -fda /archive/cdimages/SCO_5_0_5_LSI53C895A_BTLD_FLOPPY.img \ -cdrom /archive/cdimages/SCO_5_0_5.iso \ -drive file=/var/VMs/alder/alder.img,if=scsi,bus=0,unit=0 \ -boot d where the disk image is a 4GB empty (sparse) file. The other two files have md5sums: SCO_5_0_5_LSI53C895A_BTLD_FLOPPY.img: 22c45122239892fefaf911caa8954bc9 SCO_5_0_5.iso: b2a13770f7e1b46aad4ff601a56f492c The boot command line was "defbootstr link=slha". At the BTLD prompt "282" is entered. I get the same result with: qemu \ -no-fd-bootchk \ -fda /mnt/tmp/images/boot/install.img \ -fdb /archive/cdimages/SCO_5_0_5_LSI53C895A_BTLD_FLOPPY.img \ -drive file=/var/VMs/alder/alder.img,if=scsi,bus=0,unit=0 \ -boot a and the boot string "defbootstr link=slha btld=fd(65)" . I enter "262" at the BTLD prompt, as the kernel hints. /mnt/tmp/images/boot/install.img: 5297c59e1cd7ba9d098bfa4a929dd28f (from the OpenServer 5.0.5 CD media) I'm currently testing with a patched qemu 0.9.1 from Ubuntu 8.10, though I'll test with HEAD shortly in case something else has changed; there was some fuzz required when applying the patch so something's clearly been altered either by Ubuntu patches to qemu 0.9.1 or by changes between 0.9.1 and the copy of HEAD you're working on. -- Craig Ringer