Discussion:
hacking wine to make SCSI-Device work
(too old to reply)
Sven Geggus
2004-02-12 15:42:20 UTC
Permalink
Hi there,

I need to get a SCSI-Device for data-aquisition to work on linux.

Well, Im not quite there yet, but I made a step forward by means of changing
this line in aspi.c

result = fscanf( procfile,
" Type:%*3[ ]%32c%*1[ ]ANSI%*1[ ]SCSI%*1[ ]revision:%*1[ ]%d\n",
dev->type,
&dev->ansirev );

as follows:

result = fscanf( procfile,
" Type:%*3[ ]%32c%*1[ ]ANSI%*1[ ]SCSI%*1[ ]revision:%*1[ ]%x\n",
dev->type,
&dev->ansirev );

This is because the relevant Entry in /proc/scsi/scsi looks like this:

Host: scsi0 Channel: 00 Id: 05 Lun: 00
Vendor: TEAC Model: GX-1 FW 02.28 Rev:
Type: Processor ANSI SCSI revision: ffffffff

Well, ffffffff is not quite %d yet!

Anyway, I still have communication-problems:

Here is the message I get (further debug Output available on request):

err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 2, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 2, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 2, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 2, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 2, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 2, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 2, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 3, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 3, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 3, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 3, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 3, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 3, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 3, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 4, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 4, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 4, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 4, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 4, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 4, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 4, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 5, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 5, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 5, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 5, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 5, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 5, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 5, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 6, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 6, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 6, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 6, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 6, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 6, but we have only 1.
err:aspi:ASPI_ExecScsiCmd Failed: Wanted hostadapter 6, but we have only 1.
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\geg\\.wine\\fake_windows\\Program Files\\Teac\\GXNavigator\\GX1.exe" failed, status c0000142
Wine failed with return code 1

Any hints?

Sven
--
Osama bin Laden might wish to destroy America, but America is too big for
him; he cannot do it. Bush may really do it. (Richard M. Stallman)

/me is ***@ircnet, http://geggus.net/sven/ on the Web
Sven Geggus
2004-02-13 16:40:32 UTC
Permalink
Post by Sven Geggus
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c01, error=2
Debugging this using the --debugmsg +aspi switch it even got more strange!

The device is found properly:

trace:aspi:SCSI_LinuxDeviceIo Writing to Linux sg device
trace:aspi:SCSI_LinuxDeviceIo Reading reply from Linux sg device
trace:aspi:ASPI_PrintCDBArea CDB[12,00,00,00,20,00]
trace:aspi:ASPI_PrintSenseArea Request Sense reports:
trace:aspi:ASPI_PrintSenseArea Invalid sense header: 0x00 instead of 0x70
trace:aspi:ASPI_DebugPrintResult SRB_Status: 0
trace:aspi:ASPI_DebugPrintResult SRB_HaStat: 0
trace:aspi:ASPI_DebugPrintResult SRB_TargStat: 0
trace:aspi:ASPI_DebugPrintResult Vendor: 'TEAC GX-1 FW 02.28'
trace:aspi:WNASPI32_DoPosting Setting event 0x5c
trace:aspi:ASPI_DebugPrintCmd INQUIRY {
trace:aspi:ASPI_DebugPrintCmd EVPD: 0
trace:aspi:ASPI_DebugPrintCmd LUN: 0
trace:aspi:ASPI_DebugPrintCmd PAGE CODE: 0
trace:aspi:ASPI_DebugPrintCmd ALLOCATION LENGTH: 32
trace:aspi:ASPI_DebugPrintCmd CONTROL: 0
trace:aspi:ASPI_DebugPrintCmd }
trace:aspi:ASPI_DebugPrintCmd Host Adapter: 0
trace:aspi:ASPI_DebugPrintCmd Flags: 72
trace:aspi:ASPI_DebugPrintCmd Data transfer: Target to host. Length checked.
trace:aspi:ASPI_DebugPrintCmd Residual byte length reporting disabled
trace:aspi:ASPI_DebugPrintCmd Linking disabled
trace:aspi:ASPI_DebugPrintCmd Posting disabled
trace:aspi:ASPI_DebugPrintCmd Target: 6
trace:aspi:ASPI_DebugPrintCmd Lun: 0
trace:aspi:ASPI_DebugPrintCmd BufLen: 32
trace:aspi:ASPI_DebugPrintCmd SenseLen: 32
trace:aspi:ASPI_DebugPrintCmd BufPtr: 0x10009288
trace:aspi:ASPI_DebugPrintCmd CDB Length: 6
trace:aspi:ASPI_DebugPrintCmd POST Proc: 5c
trace:aspi:ASPI_DebugPrintCmd CDB buffer[12,00,00,00,20,00]
trace:aspi:ASPI_GetNumControllers Returning 1 host adapters
trace:aspi:ASPI_GetNumControllers Returning 1 host adapters

Despite this the Windows Software ist still telling me, that the "GX-1
Recorder" Could not be found on my Computer.

Whats the Story with the "ANSI SCSI revision: ffffffff" stuff?

Do I need to set this to some reasonable default?

Is there any other debugging switch within wine wich could get me somewhat
further?

Sven
--
Osama bin Laden might wish to destroy America, but America is too big for
him; he cannot do it. Bush may really do it. (Richard M. Stallman)

/me is ***@ircnet, http://geggus.net/sven/ on the Web
Loading...