Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2002 09:32:32 -0800 (PST)
From:      Nobuyoshi Sato <jju@ds.cs.toyo.ac.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/33815: Some pccard.conf entries does not work after pccardd's CIS string comparison fix.
Message-ID:  <200201121732.g0CHWWQ88296@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         33815
>Category:       conf
>Synopsis:       Some pccard.conf entries does not work after pccardd's CIS string comparison fix.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 12 09:40:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Nobuyoshi Sato
>Release:        FreeBSD 5.0-CURRENT-20011230-JPSNAP i386
>Organization:
Toyo University
>Environment:
FreeBSD skuld.ds.cs.toyo.ac.jp 5.0-CURRENT-20011230-JPSNAP FreeBSD 5.0-CURRENT-20011230-JPSNAP #1: Wed Jan 2 06:18:30 JST 2002 root@skuld.ds.cs.toyo.ac.jp:/usr/src/sys/i386/compile/SKULD i386
>Description:
By commit of usr.sbin/pccard/pccardd/cardd.c at Nov 29 (Dec
10 in -STABLE), pccardd's string comparison between
pccard.conf's entry and PC card's CIS tupple became strict
matching.

As influences of this commit, some PC cards don't work since
some /etc/default/pccard.conf's card identifiers entries are
incorrectly described.

For example, in my IO DATA's CBIDE2 has following CIS tupple
(an extract):
Tuple #2, code = 0x15 (Version 1 info), length = 24
    000:  04 01 49 4f 20 44 41 54 41 00 43 42 49 44 45 32
    010:  20 20 20 20 20 20 00 ff
        Version = 4.1, Manuf = [IO DATA], card vers = [CBIDE2      ]

CBIDE2 matched following pccard.conf entry:
# IO DATA CBIDE2 in 16 bit mode
# (bundled with IO DATA CDP-AX24T, Panasonic DVD-ROM LK-RV8171D)
card "IO DATA" "CBIDE2"
        config  default "ata" ?

And ata driver was attached successfully. However, now,
no entries matches with "CBIDE2      ", and it doesn't work.

Other card, Lexar Media's CF card ("CL ATA FLASH CARD LEXAR"
"TIDALWV") dose't work now.

>How-To-Repeat:
Simpley insert IO DATA's CBIDE2 and/or Lexar Media's CF Card
into the PC card slot.

Other cards may occur this problem.

>Fix:
Fix /etc/defaults/pccard.conf's PC card entries as following:
--- pccard.conf.orig    Sun Dec 30 03:10:56 2001
+++ pccard.conf Mon Jan  7 03:49:53 2002
@@ -109,7 +109,7 @@
        logstr  "MCD-601p"

 # Lexar Media compact flash
-card "CL ATA FLASH CARD LEXAR " "TIDALWV"
+card "CL ATA FLASH CARD LEXAR  " "TIDALWV"
 #   auto does not work
        config 0x1 "ata" ?

@@ -181,7 +181,7 @@

 # IO DATA CBIDE2 in 16 bit mode
 # (bundled with IO DATA CDP-AX24T, Panasonic DVD-ROM LK-RV8171D)
-card "IO DATA" "CBIDE2"
+card "IO DATA" "CBIDE2      "
        config  default "ata" ?

 # IO Data PCIDE-II (bundled with CDP-TX6, etc.)

Note that some other card(s) may occur this problem is its
pccard.conf entry differs from its CIS tupple.


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201121732.g0CHWWQ88296>