2.4.18 and cd-changer Nakamichi MBR-7

2.4.18 and cd-changer Nakamichi MBR-7

Post by Mathias Koerbe » Sat, 06 Apr 2002 10:44:43



Hi all,

I have just taken out my old Nakamichi MBR-7 7-CD changer from
longtime storage and am trying to use it under RH 7.2
(kernel 2.4 18).

My problem is that while the kernel recognizes the device,
I cannot mount any CD from there, it always tells me there is
no medium, even though I have a CD in the drive.

A second problem is that I also have a Minolta Film Scanner
hanging off the same SCSI bus which does not seem to be detected
at all. It is turned on.
When I try mounting eg platter 2 (/dev/scd1), it also does not
engage the disk-changing mechanism but immediately reports
no medium.

Any help is appreciated.

Here is a detailed description of my setup:

Most SCSI support (except for things like the sg driver)
are compiled in (see kernel-config excerpts below).

Here are the currently loaded modules:

[root@noisy root]# lsmod
Module                  Size  Used by    Tainted: PF
sg                     29252   0  (unused)
cmpci                  29588   0  (autoclean)
soundcore               4004   4  (autoclean) [cmpci]
mga                    99536   1
agpgart                30880   3
binfmt_misc             6020   1
vmnet                  19360   6
vmmon                  18580   0  (unused)
i2c-viapro              3816   0  (unused)
i2c-dev                 3712   0  (unused)
w83781d                17056   0  (unused)
i2c-proc                6240   0  [w83781d]
smbfs                  34048   1  (autoclean)
loop                   40428   6  (autoclean)
ide-scsi                7968   0
nls_iso8859-1           2816   1  (autoclean)
nls_cp437               4320   1  (autoclean)
vfat                    9916   1  (autoclean)
fat                    31672   0  (autoclean) [vfat]

My controller is an advansys (not sure which model):
[mathias@noisy linux]$ cat /proc/scsi/advansys/*
AdvanSys SCSI 3.3G: PCI Ultra: IO 0xD400-0xD40F, IRQ 0xB

Device Information for AdvanSys SCSI Host 0:
Target IDs Detected: 3, 7, (7=Host Adapter)
Host: scsi0 Channel: 00 Id: 03 Lun: 00
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 01
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 02
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 03
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 04
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 05
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 06
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02

EEPROM Settings for AdvanSys SCSI Host 0:
 Serial Number: AE54C717D542
 Host SCSI ID: 7, Host Queue Size: 16, Device Queue Size: 8
 cntl 0x7f00, no_scam 0x0
 Target ID:            0 1 2 3 4 5 6 7
 Disconnects:          Y Y Y Y Y Y Y Y
 Command Queuing:      N N N N N N N N
 Start Motor:          Y Y Y Y Y Y Y Y
 Synchronous Transfer: Y Y Y Y Y Y Y Y

Linux Driver Configuration and Information for AdvanSys SCSI Host 0:
 host_busy 0, last_reset 0, max_id 8, max_lun 8, max_channel 0
 unique_id 0, can_queue 16, this_id 7, sg_tablesize 50, cmd_per_lun 0
 unchecked_isa_dma 0, use_clustering 1, loaded_as_module 1
 flags 0x8, last_reset 0x0, jiffies 0x3e1354, asc_n_io_port 0x10
 io_port 0xd400, n_io_port 0x10
 queue_depth: 3:4

Linux Driver Statistics for AdvanSys SCSI Host 0:
 queuecommand 31015, reset 0, biosparam 0, interrupt 61998
 callback 31015, done 31015, build_error 0, build_noreq 0, build_nosg
0
 exe_noerror 31015, exe_busy 0, exe_error 0, exe_unknown 0
 cont_cnt 31015, cont_xfer 10085.0 kb avg_xfer 0.3 kb
 Active and Waiting Request Queues (Time Unit: 100 HZ):
 target 3
   active: cnt [cur 0, max 1, tot 31009], time [min 0, max 1, avg 0.8]
   waiting: cnt [cur 0, max 0, tot 0], time [min 0, max 0, avg 0.0]

Asc Library Configuration and Statistics for AdvanSys SCSI Host 0:
 chip_version 10, lib_version 0x118, lib_serial_no 123, mcode_date
0x12c3
 mcode_version 0x50d, err_code 0
 Total Command Pending: 0
 Command Queuing: 3:N
 Command Queue Pending: 3:0
 Command Queue Limit: 3:4
 Command Queue Full: 3:N
 Synchronous Transfer: 3:N

I also have a SONY IDE CD-RW on this machine, which is seen as SCSI
device also:

[mathias@noisy linux]$ cat /proc/scsi/ide-scsi/*
SCSI host adapter emulation for IDE ATAPI devices

Some info on the CDROM devices:
[mathias@noisy cdrom]$ ls -1 /proc/sys/dev/cdrom/*
/proc/sys/dev/cdrom/autoclose
/proc/sys/dev/cdrom/autoeject
/proc/sys/dev/cdrom/check_media
/proc/sys/dev/cdrom/debug
/proc/sys/dev/cdrom/info
/proc/sys/dev/cdrom/lock

[mathias@noisy cdrom]$ cat /proc/sys/dev/cdrom/*
1
0
0
0
CD-ROM information, Id: cdrom.c 3.12 2000/10/18

drive name:             sr8     sr7     sr6     sr5     sr4     sr3
sr2     sr1     sr0
drive speed:            40      40      1       1       1       1
1       1       1
drive # of slots:       1       1       1       1       1       1
1       1       1
Can close tray:         1       1       1       1       1       1
1       1       1
Can open tray:          1       1       1       1       1       1
1       1       1
Can lock tray:          1       1       1       1       1       1
1       1       1
Can change speed:       1       1       0       0       0       0
0       0       0
Can select disk:        0       0       0       0       0       0
0       0       0
Can read multisession:  1       1       1       1       1       1
1       1       1
Can read MCN:           1       1       1       1       1       1
1       1       1
Reports media changed:  1       1       1       1       1       1
1       1       1
Can play audio:         1       1       1       1       1       1
1       1       1
Can write CD-R:         1       1       0       0       0       0
0       0       0
Can write CD-RW:        1       1       0       0       0       0
0       0       0
Can read DVD:           0       0       0       0       0       0
0       0       0
Can write DVD-R:        0       0       0       0       0       0
0       0       0
Can write DVD-RAM:      0       0       0       0       0       0
0       0       0

1

[mathias@noisy linux]$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 03 Lun: 00
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 01
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 02
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 03
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 04
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 05
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 06
  Vendor: NRC      Model: MBR-7            Rev: 110
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: SONY     Model: CD-RW CRX1611    Rev: TYS7
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 01
  Vendor: SONY     Model: CD-RW CRX1611    Rev: TYS7
  Type:   CD-ROM                           ANSI SCSI revision: 02

here is what happens ehwn I try executing a
        # mount /dev/scd0 /mnt

[root@noisy root]# mount /dev/scd0 /mnt
mount: block device /dev/scd0 is write-protected, mounting read-only
mount: No medium found

And here is the SCSI logging output captured with
        # echo "scsi log all" >/proc/scsi/scsi

Apr  5 07:19:35 noisy kernel: scsi logging level set to 0xffffffff
Apr  5 07:19:38 noisy kernel: Open returning 1
Apr  5 07:19:38 noisy kernel: scsi_do_req (host = 0, channel = 0
target = 3, buffer =00000000, bufflen = 0, done = c01d7070, timeout
 = 3000, retries = 3)
Apr  5 07:19:38 noisy kernel: command : 00  00  00  00  00  00  
Apr  5 07:19:38 noisy kernel: Activating command for device 3 (1)
Apr  5 07:19:38 noisy kernel: Leaving scsi_init_cmd_from_req()
Apr  5 07:19:38 noisy kernel: Adding timer for command c184ce00 at
3000 (c01db930)
Apr  5 07:19:38 noisy kernel: scsi_dispatch_cmnd (host = 0, channel =
0, target = 3, command = c184ce58, buffer = 00000000,
Apr  5 07:19:38 noisy kernel: bufflen = 0, done = c01d7070)
Apr  5 07:19:38 noisy kernel: queuecommand : routine at c01e2730
Apr  5 07:19:38 noisy kernel: leaving scsi_dispatch_cmnd()
Apr  5 07:19:38 noisy kernel: Leaving scsi_do_req()
Apr  5 07:19:38 noisy kernel: Clearing timer for command c184ce00 1
Apr  5 07:19:38 noisy kernel: Command finished 1 0 0x8000002
Apr  5 07:19:38 noisy kernel: Notifying upper driver of completion for
device 3 8000002
Apr  5 07:19:38 noisy kernel: Deactivating command for device 3
(active=0, failed=0)
Apr  5 07:19:38 noisy kernel: Open returning 1
Apr  5 07:19:38 noisy kernel: scsi_do_req (host = 0, channel = 0
target = 3, buffer =00000000, bufflen = 0, done = c01d7070, timeout
 = 3000, retries = 3)
Apr  5 07:19:38 noisy kernel: command : 00  00  00  00  00  00  
Apr  5 07:19:38 noisy kernel: Activating command for device 3 (1)
Apr  5 07:19:38 noisy kernel: Leaving scsi_init_cmd_from_req()
Apr  5
...

read more »

 
 
 

2.4.18 and cd-changer Nakamichi MBR-7

Post by Anton Grap » Sat, 06 Apr 2002 14:57:01



> Hi all,

> I have just taken out my old Nakamichi MBR-7 7-CD changer from
> longtime storage and am trying to use it under RH 7.2
> (kernel 2.4 18).

> My problem is that while the kernel recognizes the device,
> I cannot mount any CD from there, it always tells me there is
> no medium, even though I have a CD in the drive.

> A second problem is that I also have a Minolta Film Scanner
>* off the same SCSI bus which does not seem to be detected
> at all. It is turned on.
> When I try mounting eg platter 2 (/dev/scd1), it also does not
> engage the disk-changing mechanism but immediately reports
> no medium.

> Any help is appreciated.

Since "Any" help is appreciated I would suggest to stick as many data
CDs in the changer as you can so that there are no empty slots left
and try mounting then. Just a guess, I've never seen a CD changer
in a PC.

Did this setup work before or this is the first time you're trying to
get the CD changer to work under Linux or did it work under Linux before?

Also, should not there be an utility a-la eject to control the CD changer?

 
 
 

2.4.18 and cd-changer Nakamichi MBR-7

Post by Mathias Koerbe » Sat, 06 Apr 2002 15:21:22


Quote:>Since "Any" help is appreciated I would suggest to stick as many data
>CDs in the changer as you can so that there are no empty slots left
>and try mounting then. Just a guess, I've never seen a CD changer
>in a PC.

I can try that, sure.

Quote:

>Did this setup work before or this is the first time you're trying to
>get the CD changer to work under Linux or did it work under Linux before?

>Also, should not there be an utility a-la eject to control the CD changer?

It worked waay back in 1997 or so on a 1.2.1 kernel, but I had it
* off a Win98 system (dead now) since then, and then in
storage as I didn''t have space for it.
 
 
 

2.4.18 and cd-changer Nakamichi MBR-7

Post by Mathias Koerbe » Sat, 06 Apr 2002 15:23:49


Quote:>It worked waay back in 1997 or so on a 1.2.1 kernel, but I had it

Sorry, 1.2.11. i obviously neither have the system nor the kernel
config anymore, but I cannot remember any problems setting it up
then.
 
 
 

2.4.18 and cd-changer Nakamichi MBR-7

Post by Mathias Koerbe » Sat, 06 Apr 2002 22:55:05



> Since "Any" help is appreciated I would suggest to stick as many data
> CDs in the changer as you can so that there are no empty slots left and

Ok, I tried that now, and it seems only slot 0 does not work. All other
slots (scd1-6) do work. Even if scd0 is selected after any other of the
slots had been in use, it does not switch (mechanically), but immediately
returns an 'no medium' status.

So this *could* be a mechanical fault. I will try and investigate.

Thanks for all help.

Quote:> try mounting then. Just a guess, I've never seen a CD changer in a PC.

> Did this setup work before or this is the first time you're trying to
> get the CD changer to work under Linux or did it work under Linux
> before?

> Also, should not there be an utility a-la eject to control the CD
> changer?

The changer appears to linux as 7 separate /dev/scdN devices (with N=0-6)
and control happenss simply by access to each platter. Thsi can be
painful if two or more platters are actually accessed at the same time, it will
frequently switch. I am not aware of a way to tune the amount of
data or SCSI commands to do on one platter before allowing a switch,
which could increase throughput at he cost of delaying the other
accesses.

regards

 
 
 

2.4.18 and cd-changer Nakamichi MBR-7

Post by Anton Grap » Sun, 07 Apr 2002 07:27:31




>>Since "Any" help is appreciated I would suggest to stick as many data
>>CDs in the changer as you can so that there are no empty slots left and

> Ok, I tried that now, and it seems only slot 0 does not work. All other
> slots (scd1-6) do work. Even if scd0 is selected after any other of the
> slots had been in use, it does not switch (mechanically), but immediately
> returns an 'no medium' status.

> So this *could* be a mechanical fault. I will try and investigate.

Well, you could install 1.2.X kernel to see if it starts to work.
Could not you? 1.2.X probably has way fewer questions asked by make
config than 2.X does, so should not be much of a pain to try.

Say, did you by any chance switch the SCSI controller in these five
years? I could not see how it could make a difference, but if you did,
why don't you pull your antiquated card out of the old box and try
running the CD changer off it?

 
 
 

1. Searching Driver for Nakamichi CD-changer MBR-7

Hello everyone,

I recently bought a MBR-7 cd-rom changer and installed it under linux.
But the SCSI-driver does not support multi session mode. I always see only
the first session on  the drive. Under DOS all sessions are visible, so the
MBR-7
itselfs supports multi-session mode.

Has somebody found or written a multi-session patch for this drive? Or is
there
a possibility to tweak the kernel code to recognize the MBR-7 ?

Any help would be appreciated.

Sincerely

---
Dipl.-Ing. Frank Hertel
Udicom computer
Bachgasse 15, D-67591 Moerstadt, Germany

2. pcomm

3. Nakamichi MBR-7 (7 disc CD-ROM changer)

4. How to forward packets to internal web server?

5. Linux Kernel Crash - Vanilla 2.4.18/Redhat 2.4.18-5

6. X11R6, NEC 2v & CL5428

7. Linux Kernel Crash - Vanilla 2.4.18/Redhat 2.4.18-5 (2nd try =) )

8. Function to fetch html-pages

9. what is the difference between 2.4.18-14 and 2.4.18-17.8.0

10. Very High Load on Disk Activity in 2.4.18 (and 2.4.18-pre8)

11. Nakamichi MBR-7 seven disk CD-player

12. (Q) Nakamichi CD-Changer MJ-5.16

13. Q: Nakamichi MBR7 CD-changer