ATAPI CDROM/CDRW and ide-cd: kernel command line or lilo stanza?

ATAPI CDROM/CDRW and ide-cd: kernel command line or lilo stanza?

Post by ma.. » Sun, 31 Dec 1899 09:00:00



Hello,

Is there any way of having a ATAPI CDROM (CREATIVE CD5230E, slave ide0, hdb)
recognized as such *and* a ATAPI CDRW (HP9100i, master, alone on ide1, hcd)
with ide-scsi?

[lilo.conf, conf.modules and the relevent lines from the kernel config at
the end...sorry for the log post]

I can have *both* emulated as scsi devices or both as ide-cd, but I'd like
to keep the cdrom as an ide device, not an emulated scsi device.

If I pass the kernel command line 'hdb=ide-cd' at the lilo prompt
I get the cdrom as ide (hdb) but whenever I add the lilo.conf stanza
append="hdb=ide-cd" the cdrom then appears as a scsi device (as the cdrw).
It looks like the ide-scsi is more greedy than ide-cd, or loaded
before ide-cd can get hold of hdb...

Any way of getting around that and achieving my goal?

I running RH6.1 with 2.3.37 kernel and with ide-cd, ide-scsi, sg
and sr_mod as loadable modules. I also tried with ide-cd compiled in
kernel but I get the same behaviour.
Typically with 'hdb=ide-cd' I get a very early 'ide_setup: hdb=ide-cd'
in the boot sequence and the CDRW is then detected as a scsi device:
(some lines wrapped in /var/log/messages)


    (gcc version egcs-2.91.66 19990314/Linux
    (egcs-1.1.2 release)) #4 Wed Mar 29 18:11:33 EST 2000
[...]
Mar 29 19:05:58 fulvia kernel: Initializing CPU#0
Mar 29 19:05:58 fulvia kernel: Detected 551264850 Hz processor.
Mar 29 19:05:58 fulvia kernel: ide_setup: hdb=ide-cd
Mar 29 19:05:58 fulvia kernel: Console: colour VGA+ 80x25

[...]

Mar 29 19:05:59 fulvia kernel: hda: FUJITSU MPE3204AT, ATA DISK drive
Mar 29 19:05:59 fulvia kernel: hdb: CREATIVE CD5230E, ATAPI CDROM drive
Mar 29 19:05:59 fulvia kernel: hdc: Hewlett-Packard CD-Writer Plus 9100,
    ATAPI CDROM drive
Mar 29 19:05:59 fulvia kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Mar 29 19:05:59 fulvia kernel: ide1 at 0x170-0x177,0x376 on irq 15
Mar 29 19:05:59 fulvia kernel: hda: FUJITSU MPE3204AT, 19547MB w/512kB
    Cache, CH

[...]

Mar 29 19:05:59 fulvia kernel: scsi0 : SCSI host adapter emulation for IDE
    ATAPI devices
Mar 29 19:05:59 fulvia kernel: scsi : 1 host.
Mar 29 19:05:59 fulvia kernel:   Vendor: HP        Model: CD-Writer+ 9100
    Rev: 1.0a
Mar 29 19:05:59 fulvia kernel:   Type:   CD-ROM ANSI SCSI revision: 02

--- lilo.conf ---

boot=/dev/hda5
map=/boot/map
install=/boot/boot.b
default=linux
timeout=50
prompt
append="hdb=ide-cd"

image=/boot/vmlinuz-2.3.37
        label=linux
        initrd=/boot/initrd-2.3.37.img
        read-only
        root=/dev/hda9

--- conf.modules ---

options     ide-cd ignore=hdc         # tell ide-cd to ignore hdc
alias       scsi_hostadapter ide-scsi # SCSI host adaptor emulation
pre-install sg     modprobe  ide-scsi # before sg, load ide-scsi
pre-install sr_mod modprobe  ide-scsi # before sr_mod, load ide-scsi

--- kernel config ---

CONFIG_BLK_DEV_IDE=y
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
# CONFIG_IDEDISK_MULTI_MODE is not set
CONFIG_BLK_DEV_IDECD=m
CONFIG_BLK_DEV_IDETAPE=y
CONFIG_BLK_DEV_IDEFLOPPY=y
CONFIG_BLK_DEV_IDESCSI=m
#
# SCSI support
#
CONFIG_SCSI=m

#
# SCSI support type (disk, tape, CD-ROM)
#
# CONFIG_BLK_DEV_SD is not set
# CONFIG_CHR_DEV_ST is not set
CONFIG_BLK_DEV_SR=m
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_CHR_DEV_SG=m

TIA
jf
--
"You are born *, wet and hungry. Then it gets worse" -Woto

 
 
 

ATAPI CDROM/CDRW and ide-cd: kernel command line or lilo stanza?

Post by Giulio Orser » Sun, 31 Dec 1899 09:00:00



Quote:>Is there any way of having a ATAPI CDROM (CREATIVE CD5230E, slave
ide0, hdb)
>recognized as such *and* a ATAPI CDRW (HP9100i, master, alone on ide1,
hcd)
>with ide-scsi?

Try this (not tested):
- ide-cd and ide-scsi as modules
- nothing related to cd or cd-rw in lilo.conf
- /etc/conf.modules
options ide-cd ignore=hdc

then
modprobe ide-cd  (should take hdb)
modprobe ide-scsi (should take hdc)

--

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. ide-cd driver and ATAPI-IDE CDROM

Hi:

I have a TEAC 2X ATAPI IDE CDROM installed on an IBM 755CD Thinkpad.

When I boot my system I often see the following:

hdc: media changed
hdc: status error: status=0x59
hdc: status error: error=0x64
ide1: do_ide_reset: success

Also, when I do an ls -ax I don't seem to get all the data read
properly, only some of the files under a directory will show at
times, but I cannot reproduce the problem with any consistency,
because a second or third invocation of the same command
seems to work fine.

I don't see any error messages, and /var/adm/messages indicates
that the cdrom is accurately identified upon boot:

Jul  7 10:12:52 darkstar kernel: ftape: allocated 3 buffers aligned at: 001e8000
Jul  7 10:12:52 darkstar kernel: hda: DVAA-2810, 773MB w/32KB Cache, LBA, CHS=78
5/32/63, MaxMult=16
Jul  7 10:12:52 darkstar kernel: hdc: DC4-E0, ATAPI, CDROM drive
Jul  7 10:12:52 darkstar kernel: ide1: secondary interface on irq 15
Jul  7 10:12:52 darkstar kernel: ide0: primary interface on irq 14

If anyone is familiar with this problem or has any ideas, please let
me know...

Thanks,
Maureen Lecuona

--
|| maureen  || For this world that men have made, none of us is bad enough.
||          || For the world that made us, none is good enough.    -Edward Abbey
|| lecuona  || Those who dream of the joys of living in a space colony should
||          || live in a space colony.                             -Edward Abbey  

2. Configure X11

3. New IDE-CD/extended IDE driver supports Sony 55E ATAPI CD-ROM!

4. logging out users from .profile

5. how to force kernel (install CD) to find IDE/ATAPI/sec/master CDROM

6. How to make "at" jobs not mail to me even the jobs fail??

7. ATAPI CD: CDROM or CDRW?

8. booting Solaris from an HDS storage device

9. ide-scsi, cdrw, ATAPI ZIP and kernel

10. ATAPI IDE CDROM and SCSI CD Recorder

11. is there an cd-audioplayer which works with ATAPI IDE cdrom's ???

12. Problem with SCSI CD RW and IDE ATAPI CDROM

13. play Audio CD on IDE ATAPI CDROM