Article View: ch.comp.os.linux
Article #20503Re: Trouble with ide-scsi
From: -
Date: Fri, 24 Sep 1999 00:00
Date: Fri, 24 Sep 1999 00:00
285 lines
10646 bytes
10646 bytes
Daniel wrote:
>
> I am trying to work with my HP CD-Writer (Atapi intern, supported by Kernel)
> using the ide-scsi module. After having configured the lilo.conf file for it
> (adding the line "hdc=ide-scsi", slave of first ide-controller) and loaded
> the module with insmod ide-scsi (everything worked fine until then), i typed
> cat /proc/scsi/scsi and... nothing. The CD-Writer was not recognized. Can
> someone help me?
> Thanx
> Daniel
Perhaps it's a bug?!
I had exactly the same problem as you; but after change the Hardware
installation as follows it works very well:
=========================================================
** ** Install and setup
** All before:
IDE0: master: Harddisk (/dev/hda<n>)
slave: CDROM (/dev/hdb)
IDE1: master: <no device>
slave: <no device>
** After install / kernel config for ide-scsi emulation:
New installation:
IDE0: master: Harddisk (/dev/hda<n>)
slave: CDROM (/dev/hdb)
IDE1: master: CDRW (/dev/scd0)
slave: <no device>
** Cook a new kernel
Auszug von: http://www.informatik.hu-berlin.de/~sefrin/lintips.html
- - - -
SCSI emulation
Will man mit einem IDE-Brenner unter Linux was anfangen, wird man um
SCSI emulation nicht herumkommen. Dazu mu� man den Kernel mit einigen
SCSI-Optionen rekompilieren. Folgende Kernel-Optionen sind dazu
notwendig:
[n] Include IDE/ATAPI CDROM support (unter Block devices)
[y] SCSI emulation support (unter Block devices)
[y] SCSI support (unter SCSI support)
[y] SCSI CD-ROM support (unter SCSI support)
[y] SCSI generic support (unter SCSI support)
Dabei bedeutet [y], das direkt in den Kernel einkompiliert wird -
nicht etwa als Modul! Schaltet man den ATAPI CDROM support nicht mit
[n] aus, wird die ganze SCSI-Emulation nicht funktionieren.
Ist der Kernel an seinem Platz und war der Neustart erfolgreich, sind
in etwa folgende SCSI-Meldungen zu sehen:
- - -
hdc: YAMAHA CRW4261, ATAPI CDROM drive
hdd: CDA66801I, ATAPI CDROM drive
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 1 host.
Vendor: YAMAHA Model: CRW4261 Rev: 1.0q
Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Vendor: AZT Model: 66801I Rev: 1.03
Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
scsi : detected 2 SCSI cdroms total.
sr0: scsi3-mmc drive: 6x/6x writer cd/rw xa/form2 cdda tray
Uniform CDROM driver Revision: 2.52
sr1: scsi3-mmc drive: 6x/6x xa/form2 tray
Ebenso sollte die Ausgabe von �cdrecord -scanbus� nun alle korrekt
installierten CD-ROMs und CD-Writer anzeigen.
[NOTE: Das scheint bei der Installation von Michael Mustun nicht
zu funktionieren?!]
Diese Ger�te werden nun
als SCSI-Ger�te (/dev/scd0, /dev/scd1) angesehen, also nicht
vergessen /dev/cdrom neu zu linken.
- - - -
Bootup message, dmesg:
dmesg; _does_ not work:
- - -
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 1 host.
Vendor: MITSUMI Model: CD-ROM FX320M !B Rev: m02
Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Vendor: ATAPI Model: CD-R/RW CRW6206A Rev: 1.3A
Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 32x/32x cd/rw xa/form2 cdda tray
Uniform CDROM driver Revision: 2.55
sr1: scsi3-mmc drive: 2x/6x writer cd/rw xa/form2 cdda tray
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
- - -
Does not work: (boot message ok,
but cdrecord -scanbus reports only the first (CDROM) device)
# cdrecord -scanbus
Cdrecord release 1.6 Copyright (C) 1995-1998 J�rg Schilling
scsibus0:
0) 'ATAPI ' 'CD-ROM FX320M !B' 'm02' CD-ROM
1) *
2) *
3) *
4) *
5) *
6) *
7) *
#
Hmmm...but which IDE device should be emulated?
We should be able to tell (set) this!
Which IDE-Device is ide-scsi emulation?
NOTE: The following does _not_ seems to work (don't know why):
lilo: append="mem=128M hdc=ide-scsi"
--> So, change the Hardware!!!
** After changed the Hardware:
IDE0: master: Harddisk (/dev/hda<n>)
slave: <none>
IDE1: master: CDRW (/dev/scd0)
slave: CDROM (/dev/scd1)
dmesg, bootup message
dmesg, works fine:
- - -
PIIX4: IDE controller on PCI bus 00 dev 39
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
hda: ST38641A, ATA DISK drive
hdc: CRW6206A, ATAPI CDROM drive
hdd: FX320M, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: ST38641A, 8207MB w/128kB Cache, CHS=1046/255/63, UDMA
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 1 host.
Vendor: ATAPI Model: CD-R/RW CRW6206A Rev: 1.3A
Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Vendor: MITSUMI Model: CD-ROM FX320M !B Rev: m02
Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
scsi : detected 2 SCSI cdroms total.
sr0: scsi3-mmc drive: 2x/6x writer cd/rw xa/form2 cdda tray
Uniform CDROM driver Revision: 2.55
sr1: scsi3-mmc drive: 32x/32x cd/rw xa/form2 cdda tray
- - -
proc output; ok, all devices are there :)
- - -
# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATAPI Model: CD-R/RW CRW6206A Rev: 1.3A
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: MITSUMI Model: CD-ROM FX320M !B Rev: m02
Type: CD-ROM ANSI SCSI revision: 02
#
- - -
All works find, even if cdrecord -scanbus reports only the first
ide-scsi device, the CD Writer.
# cdrecord -scanbus
Cdrecord release 1.6 Copyright (C) 1995-1998 J�rg Schilling
scsibus0:
0) 'ATAPI ' 'CD-R/RW CRW6206A' '1.3A' Removable CD-ROM
1) *
2) *
3) *
4) *
5) *
6) *
7) *
#
** devices
$ la /dev/sg*
crw------- 1 root root 21, 0 Sep 4 13:21 /dev/sg0
crw------- 1 root root 21, 1 Sep 4 13:21 /dev/sg1
crw------- 1 root root 21, 10 Sep 4 13:21 /dev/sg10
crw------- 1 root root 21, 11 Sep 4 13:21 /dev/sg11
crw------- 1 root root 21, 12 Sep 4 13:21 /dev/sg12
crw------- 1 root root 21, 13 Sep 4 13:21 /dev/sg13
crw------- 1 root root 21, 14 Sep 4 13:21 /dev/sg14
crw------- 1 root root 21, 15 Sep 4 13:21 /dev/sg15
crw------- 1 root root 21, 16 Sep 4 13:21 /dev/sg16
crw------- 1 root root 21, 2 Sep 4 13:21 /dev/sg2
crw------- 1 root root 21, 3 Sep 4 13:21 /dev/sg3
crw------- 1 root root 21, 4 Sep 4 13:21 /dev/sg4
crw------- 1 root root 21, 5 Sep 4 13:21 /dev/sg5
crw------- 1 root root 21, 6 Sep 4 13:21 /dev/sg6
crw------- 1 root root 21, 7 Sep 4 13:21 /dev/sg7
crw------- 1 root root 21, 8 Sep 4 13:21 /dev/sg8
crw------- 1 root root 21, 9 Sep 4 13:21 /dev/sg9
$
$ ls -al /dev/sc*
br--r----- 1 root cdrom 11, 0 Sep 4 13:21 /dev/scd0
br--r----- 1 root cdrom 11, 1 Sep 4 13:21 /dev/scd1
br--r----- 1 root cdrom 11, 10 Sep 4 13:21 /dev/scd10
br--r----- 1 root cdrom 11, 11 Sep 4 13:21 /dev/scd11
br--r----- 1 root cdrom 11, 12 Sep 4 13:21 /dev/scd12
br--r----- 1 root cdrom 11, 13 Sep 4 13:21 /dev/scd13
br--r----- 1 root cdrom 11, 14 Sep 4 13:21 /dev/scd14
br--r----- 1 root cdrom 11, 15 Sep 4 13:21 /dev/scd15
br--r----- 1 root cdrom 11, 16 Sep 4 13:21 /dev/scd16
br--r----- 1 root cdrom 11, 2 Sep 4 13:21 /dev/scd2
br--r----- 1 root cdrom 11, 3 Sep 4 13:21 /dev/scd3
br--r----- 1 root cdrom 11, 4 Sep 4 13:21 /dev/scd4
br--r----- 1 root cdrom 11, 5 Sep 4 13:21 /dev/scd5
br--r----- 1 root cdrom 11, 6 Sep 4 13:21 /dev/scd6
br--r----- 1 root cdrom 11, 7 Sep 4 13:21 /dev/scd7
br--r----- 1 root cdrom 11, 8 Sep 4 13:21 /dev/scd8
br--r----- 1 root cdrom 11, 9 Sep 4 13:21 /dev/scd9
$
** creat links
# ln -s /dev/scd0 /dev/cdwriter
# ln -s /dev/scd1 /dev/cdrom
**
/etc/fstab
- - -
/dev/scd0 /cdwriter iso9660 ro,user,noauto,unhide 0 0
/dev/scd1 /cdrom iso9660 ro,user,noauto,unhide 0 0
#/dev/hdb /cdrom iso9660 ro,user,noauto,unhide 0 0
- - -
# mount /cdrom
# mount /cdwriter
** Frontend
http://sites.inka.de/~W1752/cdrecord/frontend.html
** Links
http://ftp.nchu.edu.tw/LDP/HOWTO/CD-Writing-HOWTO-2.html
http://www.informatik.hu-berlin.de/~sefrin/lintips.html
=========================================================
Bye!
______________________________________
Michael Mustun <mustunm@befree.ch>
http://www.flagsoft.ch
Technical Details
Message-ID:
<37EB32F5.B342AE4C@yahoo.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7sf8ff$boe$1@news1.sunrise.ch>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 102b32,a11a77ae2f78e5a0 X-Google-Attributes: gid102b32,public X-Google-Thread: f4b73,a11a77ae2f78e5a0 X-Google-Attributes: gidf4b73,public X-Google-Thread: 105861,a11a77ae2f78e5a0 X-Google-Attributes: gid105861,public From: - <*@yahoo.com> Subject: Re: Trouble with ide-scsi Date: 1999/09/24 Message-ID: <37EB32F5.B342AE4C@yahoo.com> X-Deja-AN: 528965788 Content-Transfer-Encoding: 8bit References: <7sf8ff$boe$1@news1.sunrise.ch> To: Daniel <menna@parametrix.ch> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@sunrise.ch X-Trace: news1.sunrise.ch 938160646 10675 194.230.225.67 (24 Sep 1999 08:10:46 GMT) Organization: - Mime-Version: 1.0 NNTP-Posting-Date: 24 Sep 1999 08:10:46 GMT Newsgroups: ch.comp.os.linux,comp.os.linux.hardware,linux.dev.scsi