Borsenkow Andrej wrote:

>� ���, 13.03.2002, � 08:48, Doug McClendon �������:
>
>>Why yes!
>>
>>The only way I have found so far is to compile ide-cd as a module.
>>
>>The problem (without kernel arguments 'hdx=ide-scsi') is that if the ide-cd
>>driver is compiled in, then it will claim the device during 
>>boot/initialization, and
>>AFAICT there is no way to tell the idecd driver to release the device so 
>>that
>>the ide-scsi driver can take it.  (the kernel argument is what prevents 
>>the ide-cd
>>driver from claiming it at boot time)
>>
>>If however, ide-cd is a module, then it can be unloaded (or not loaded 
>>in the first
>>place), after which loading ide-scsi will successfully take over the device.
>>
>
>Have you actually tried it?
>
yes

>
>When ide-scsi is loaded it takes over only those devices that declare
>they are using ide-scsi driver. And the only known to me way to set hdc
>to use ide-scsi driver is to pass hdc=ide-scsi on boot.
>
I am pretty sure you are mistaken.  My understanding is that the cmd 
line args
(hdc=ide-scsi) are for the benefit of the _ide-cd_ driver, to tell it to 
back off
of that device.  It is not an argument to the ide-scsi driver telling it 
what
to use.  Both drivers simply take over all devices that they were not 
specifically
told to stay away from.  There are only two ways I know to prevent the 
ide-cd
driver from taking over a device, one is to tell it to stay away from it 
via a
cmd line arg, the other is to have it be a module and remove it from the 
face
of the kernel.

>
>ide-scsi driver is horrible hack. It badly needs rewrite. But I am
>always scared by the fact that it touches SCSI subsystem that is
>anything but easy to ubderstand.
>
>Ideally ide-scsi should be on top of IDE not replace original IDE
>driver. May be when I have enough courage :-)
>

This confirms my anecdotal experience, which is why for my bootable
cdrom, I load the ide-cd driver from initrd for the general purpose of
booting, and then unload it and load ide-scsi in the case that I want to
use the cdburner.  This much is hard fact, I use my cdburner and ide-cd
without any ugly (hard coded) kernel command line args.  But so far
as I know, there is no way to do it if ide-cd is compiled into the kernel.

-dmc



Reply via email to