Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ky53a-0002zL-Nb for qemu-devel@nongnu.org; Thu, 06 Nov 2008 08:37:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ky53Z-0002yy-7s for qemu-devel@nongnu.org; Thu, 06 Nov 2008 08:37:54 -0500 Received: from [199.232.76.173] (port=42991 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ky53Z-0002yv-1H for qemu-devel@nongnu.org; Thu, 06 Nov 2008 08:37:53 -0500 Received: from web51103.mail.re2.yahoo.com ([206.190.38.145]:47518) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Ky53Y-0000XB-Qf for qemu-devel@nongnu.org; Thu, 06 Nov 2008 08:37:52 -0500 Date: Thu, 6 Nov 2008 05:36:20 -0800 (PST) From: Justin Chevrier Subject: Re: [Qemu-devel] LSI53C895A, IDE HDD detection under SCO OpenServer 5.0.5 In-Reply-To: <4912E852.9050606@postnewspapers.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <483065.13305.qm@web51103.mail.re2.yahoo.com> Reply-To: theburner1@yahoo.com, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Craig Ringer > 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. My md5sums match yours. I used your exact command line and btld options (28 and 2) and it still worked on my end. At this point all I can think of is modifications done by Ubuntu, or it being qemu 0.9.10. It sounds like you're going to try again with a copy of HEAD anyway, hopefully it will work there! Justin