I am interested in another experiment with CD drive hot-swapping and ask 
you for testing something.

Can you try the whether also the following works for bay swapping or 
after-boot cd recognition when it was booted with the floppy:

Put the floppy or no module at all into your notebook.

Boot with a standard kernel where ide-cd is compiled in and with no 
"ide-scsi=..." in the kernel command line.

Insert a CD drive.

Use Andrej's ide-scsi hot-loading trick:

-------------Ripped out of a message from Andrej-----------

[...]

Anyway, here is brute force method to force ide-scsi
after boot:

echo -n ide_scsi:1 > /proc/ide/hdc/settings
rmmod ide-scsi
echo -n ide-scsi > /proc/ide/hdc/driver
modprobe ide-scsi

dmesg would look like

scsi : 0 hosts left.
ide-cd: passing drive hdc to ide-scsi emulation.
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
   Vendor: CREATIVE  Model: DVD1240E          Rev: 3X14
   Type:   CD-ROM                             ANSI SCSI revision: 02
   Vendor: PHILIPS   Model: CDD3610 CD-R/RW   Rev: 3.09
   Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi1, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 20x/40x cd/rw xa/form2 cdda tray
sr1: scsi3-mmc drive: 6x/6x writer cd/rw xa/form2 cdda tray

and if you do not use hdX=ide-scsi on boot you probably do not even need
to rmmod.

ide_scsi=1 is currently needed because ide-scsi module executes init
only once and replacing driver (echo ide-scsi > .../driver) tries to
call module init function to claim device that does not work so drive is
taken back by ide-cd unless we tell it to keep away

[...]

----------------------------------------------------------

Can you mount a CD in the CD drive now?

Swap the CD drive (and reload ide-scsi). Can you mount a CD in the other 
CD drive?

Try to switch back to ide-cd (by reverting the changes in 
/proc/ide/hdc/...). Can you access your drives also in ide-cd mode?

Repeat this experiment, but now booting with a CD drive. Are the results 
different? Can you do what you could not do before or can't you do 
something what was possible before?

Thank you in advance for your cooperation.

    Till


SI Reasoning wrote:

> --- Borsenkow Andrej <[EMAIL PROTECTED]>
> 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?
>>
>>
> I made ide-cd a module and rmmod ide-cd after boot
> then modprob ide-scsi. So far I have not noticed any
> bad things happen, but I did find that it was tolerent
> of switching the cdrw and floppy bay while the system
> was still running, whereas ide-cd would lock up the
> system.
> 
> 
>>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.
>>
>>
> actually, after making ide-cd a module, when I rmmod
> ide-cd then modprobe ide-scsi, it took over both the
> cd/DVD and the cdrw.
> 
> 
>>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 :-)
>>
>>-andrej
>>
>>
> 
> =====
> SI Reasoning
> [EMAIL PROTECTED]
> 
> A requirement of creativity is that it contributes to change.  Creativity keeps
> the creator alive.
> 
> -FRANK HERBERT, unpublished notes
> 
> __________________________________________________
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free email!
> http://mail.yahoo.com/
> 
> 


Reply via email to