qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] LSI53C895A, IDE HDD detection under SCO OpenServer 5.0.


From: Craig Ringer
Subject: Re: [Qemu-devel] LSI53C895A, IDE HDD detection under SCO OpenServer 5.0.5
Date: Thu, 06 Nov 2008 21:51:30 +0900
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

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 "<return>28<return>2<return>" 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 "<return>26<return>2<return>" 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]