HP M820e CDRW - nsp32 driver.

cga2000 cga2000 at optonline.net
Sat Oct 20 20:01:14 EDT 2007


On Wed, Oct 10, 2007 at 11:56:04AM EDT, Matthew Wilcox wrote:

[..]

I upgraded to linux 2.6.23 for a number of reasons and the nice thing is
that ...

# wodim -scanbus

now "finds" my device.

I have also been able to burn a a CD via mkisofs/wodim and was able to
mount it off of the same device:

# mount -t iso9660 /dev/scd0 /media/cdrom0

But some grey areas remain .. 

I am still getting the IRQ-related messages when I boot.

Something is still asking me to upgrade the driver.

Just after booting the new kernel for the first time, I had to eject and insert
the scsi PC card a couple times and fiddle the 16 bit/cardbus switch on the
card before it started to work.

As if this were not a stateless device.

Or would this indicate that this card is dying on me?

Another worry is that ..

# pccardctl info|ident|status 

basically knows nothing about this device.

Here's a a quick roundup:

__________________________________________________________________________

[18:44:15][root at turki:~]# wodim -scanbus
scsibus0:
        0,0,0     0) *
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) 'hp      ' 'CD-Writer+ M820 ' '1.23' Removable CD-ROM
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *

[18:44:17][root at turki:~]# pccardctl info
PRODID_1="3Com"
PRODID_2="Megahertz 3CCFEM556"
PRODID_3="LAN + 56k Modem"
PRODID_4="001"
MANFID=0101,0556
FUNCID=0
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255

[18:58:44][root at turki:~]# pccardctl status
Socket 0:
  5.0V 16-bit PC Card
  Subdevice 0 (function 0) bound to driver "3c574_cs"
  Subdevice 1 (function 1) bound to driver "serial_cs"
Socket 1:
  3.3V 32-bit PC Card

[18:58:49][root at turki:~]# pccardctl ident
Socket 0:
  product info: "3Com", "Megahertz 3CCFEM556", "LAN + 56k Modem", "001"
  manfid: 0x0101, 0x0556
  function: 0 (multifunction)
Socket 1:
  no product info available
__________________________________________________________________________

Here's what the semi-obsolete cardctl says on the same system:

__________________________________________________________________________

[18:58:54][root at turki:~]# cardctl info
PRODID_1="3Com"
PRODID_2="Megahertz 3CCFEM556"
PRODID_3="LAN + 56k Modem"
PRODID_4=""
MANFID=0101,0556
FUNCID=0
PRODID_1="KME    "
PRODID_2="SCSI-CARD-001"
PRODID_3="1"
PRODID_4=""
MANFID=0032,2604
FUNCID=255

[19:29:44][root at turki:~]# cardctl status
Socket 0:
  5V 16-bit PC Card
  function 0: [ready]
  function 1: [ready]
Socket 1:
  3.3V CardBus card
  function 0: [ready]

[19:29:55][root at turki:~]# cardctl ident
Socket 0:
  product info: "3Com", "Megahertz 3CCFEM556", "LAN + 56k Modem", ""
  manfid: 0x0101, 0x0556
  function: 0 (multifunction)
Socket 1:
  product info: "KME    ", "SCSI-CARD-001", "1"
  manfid: 0x0032, 0x2604

[19:30:01][root at turki:~]# cardctl config
Socket 0:
  Vcc 5.0V  Vpp1 0.0V  Vpp2 0.0V
  interface type is "memory and I/O"
  function 0:
    config base 0x1000
      option 0x47 status 0x00 pin 0x00
    io 0x0300-0x031f [16bit]
  function 1:
    config base 0x1100
      option 0x67 status 0x08 pin 0x00 ext 0x00
    io 0x02f8-0x02ff [8bit]
Socket 1:
  Vcc 3.3V  Vpp1 3.3V  Vpp2 3.3V
  interface type is "cardbus"
  irq 11 [exclusive] [level]
  function 0:
__________________________________________________________________________

As you can see from the above, cardctl finds all the info while
pccardctl apparently knows nothing about the PC card.

Another thing I noticed is that regarding this device /etc/fstab is no
longer updated by debian when I boot.

Since other devices such as my internal CD/DVD and floppy drives are
there in /etc/fstab, this would suggest that one of the debian init
scripts is not able to detect/configure this device.

I have to specify all the parms (file type /dev device .. etc. ) to the
mount command.

Is there additional tweaking that needs to be added to the default
setup?

Since pccardctl is supposed to replace cardctl at some point, I'm just
concerned my setup is incorrect and might break if I have to upgrade at
some point or other.

I am not a technical person, but all these unexplained behaviors look like an
accident waiting to happen.

I have tried to figure this out from the pcmcia howto document, but the
version I found appeared to be more relevant to 2.4 linux kernels and
did not say anything about udev/hotplug etc. and everything I checked
on my laptop left me with the impression some of the information at
least no longer applied (?)

So any comments or pointers from anyone who understands PCMCIA hardware
are welcome.

Thanks,
cga



More information about the linux-pcmcia mailing list