FreeBSD Port: k3b-0.11.20_1

Gregory Crosswhite cog at umd.edu
Mon Mar 21 11:56:38 PST 2005


I got k3b to work under 5.2.1, but after upgrading to 5.3 I've started getting 
the following error message (using the k3b 0.11.20_1 port):

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
k3b: (K3bCdDevice) /dev/cd0: init()
k3b: (K3bCdDevice::ScsiCommand) open device /dev/pass1 succeeded.
k3b: (K3bCdDevice::ScsiCommand) transport command 12, length: 6
k3b: (K3bCdDevice::ScsiCommand) transport command 46, length: 9
k3b: (K3bCdDevice::ScsiCommand) transport failed (4): 336896
k3b: (K3bCdDevice::ScsiCommand) failed:
k3b:                            command:    GET CONFIGURATION (46)
k3b:                            errorcode:  70
k3b:                            sense key:  ILLEGAL REQUEST (5)
k3b:                            asc:        24
k3b:                            ascq:       0
k3b: (K3bCdDevice) /dev/cd0: GET_CONFIGURATION failed.
k3b: (K3bCdDevice::ScsiCommand) open device /dev/pass1 succeeded.
k3b: (K3bCdDevice::ScsiCommand) transport command 5a, length: 9
k3b: (K3bCdDevice::ScsiCommand) transport failed (4): 336896
k3b: (K3bCdDevice::ScsiCommand) failed:
k3b:                            command:    MODE SENSE (5a)
k3b:                            errorcode:  70
k3b:                            sense key:  ILLEGAL REQUEST (5)
k3b:                            asc:        24
k3b:                            ascq:       0
k3b: (K3bCdDevice::CdDevice) /dev/cd0: MODE SENSE length det failed.
k3b: (K3bCdDevice::ScsiCommand) device /dev/pass1 closed.
k3b: (K3bCdDevice::CdDevice) /dev/cd0: modeSense 0x05 failed!
k3b: (K3bCdDevice::CdDevice) /dev/cd0: Cannot check write modes.
k3b: (K3bCdDevice::ScsiCommand) open device /dev/pass1 succeeded.
k3b: (K3bCdDevice::ScsiCommand) transport command 5a, length: 9
k3b: (K3bCdDevice::ScsiCommand) transport failed (4): 336896
k3b: (K3bCdDevice::ScsiCommand) failed:
k3b:                            command:    MODE SENSE (5a)
k3b:                            errorcode:  70
k3b:                            sense key:  ILLEGAL REQUEST (5)
k3b:                            asc:        24
k3b:                            ascq:       0
k3b: (K3bCdDevice::CdDevice) /dev/cd0: MODE SENSE length det failed.
k3b: (K3bCdDevice::ScsiCommand) device /dev/pass1 closed.
k3b: (K3bCdDevice) /dev/cd0: read mode page 2A failed!
k3b: (K3bCdDevice::ScsiCommand) open device /dev/pass1 succeeded.
k3b: (K3bCdDevice::ScsiCommand) transport command 5a, length: 9
k3b: (K3bCdDevice::ScsiCommand) transport failed (4): 336896
k3b: (K3bCdDevice::ScsiCommand) failed:
k3b:                            command:    MODE SENSE (5a)
k3b:                            errorcode:  70
k3b:                            sense key:  ILLEGAL REQUEST (5)
k3b:                            asc:        24
k3b:                            ascq:       0
k3b: (K3bCdDevice::CdDevice) /dev/cd0: MODE SENSE length det failed.
k3b: (K3bCdDevice::ScsiCommand) device /dev/pass1 closed.
k3b: (K3bCdDevice::ScsiCommand) open device /dev/pass1 succeeded.
k3b: (K3bCdDevice::ScsiCommand) transport command 5a, length: 9
k3b: (K3bCdDevice::ScsiCommand) transport failed (4): 336896
k3b: (K3bCdDevice::ScsiCommand) failed:
k3b:                            command:    MODE SENSE (5a)
k3b:                            errorcode:  70
k3b:                            sense key:  ILLEGAL REQUEST (5)
k3b:                            asc:        24
k3b:                            ascq:       0
k3b: (K3bCdDevice::CdDevice) /dev/cd0: MODE SENSE length det failed.
k3b: (K3bCdDevice::ScsiCommand) device /dev/pass1 closed.
k3b: (K3bCdDevice::ScsiCommand) device /dev/pass1 closed.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

The end result is that although it detects my cdrw as a Reader, it doesn't 
detect it as a Writer.  It worked just fine, though under 5.2.1.  (Although I 
wipe and reinstalled the system and then recompiled the kernel, so maybe I 
changed something else without realizing it.)

The kernel should have all the correct modules and everything loaded,

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# SCSI peripherals
device  scbus  # SCSI bus (required for SCSI)
device  ch  # SCSI media changers
device  da  # Direct Access (disks)
device  sa  # Sequential Access (tape etc)
device  cd  # CD
device  pass  # Passthrough device (direct SCSI access)
device  ses  # SCSI Environmental Services (and SAF-TE)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

and these problems were all reported under "root" so I know it's not an access 
control error.  Running "camcontrol" gives,

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
su-2.05b# camcontrol devlist
<IBM DDYS-T18350N S96H>            at scbus0 target 0 lun 0 (da0,pass0)
<YAMAHA CRW2100S 1.0K>             at scbus0 target 5 lun 0 (cd0,pass1)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Running cdrecord gives

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
su-2.05b# cdrecord -scanbus
Cdrecord 2.00.3 (i386-unknown-freebsd5.3) Copyright (C) 1995-2002 Jörg 
Schilling
Using libscg version 'schily-0.7'
scsibus0:
        0,0,0     0) 'IBM     ' 'DDYS-T18350N    ' 'S96H' Disk
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) 'YAMAHA  ' 'CRW2100S        ' '1.0K' Removable CD-ROM
        0,6,0     6) *
        0,7,0     7) *
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

I have also successfully burned CDs with cdrecord, so I know that the hardward 
itself is fine, and the cd driver in the kernel is fine.

I know practically nothing about SCSI, but it looks to me as if the cd driver 
in kernel doesn't like something about the commands that k3b is sending to 
it.  I don't know, however, whether this means I've screwed something up in 
the kernel (which seems unlikely since I can burn using cdrecord), or whether 
k3b is sending the wrong command.  (Or whether there's some third option 
which I'm missing in my ignorance. :-) )

If you get a chance, could you advise me as to what might be causing this 
problem?

Thank you very much for your time.

- Greg


More information about the freebsd-ports mailing list