[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:24389] REX5568 ParseTuple: No more items



  こんばんは。寺崎です。

  REX5568 が Anonymous Memory と認識されていたのは
/etc/pcmcia/config.opts に

card "RATOC REX5568 Modem"
  manfid 0x5f43, 0x4143
  bind "serial_cs"

と書き込んできちんと認識されるようになりました。
0x5f43, 0x4143 というのは /var/log/syslog に cardmgr が
書いてくれたのでわかりました。

# /etc/pcmcia/config の "Anonymous Memory" を消したことは
# 前にもあるのに、なぜ今までは書いてくれなかったんだろう?

  だけど、これだけではモデムが使えるようにはなりませんでした。

cardmgr[601]: initializing socket 0
cardmgr[601]: socket 0: RATOC REX5568 Modem
cardmgr[601]: executing: 'modprobe serial_cs'
kernel: serial_cs: ParseTuple: No more items
cardmgr[601]: get dev info on socket 0 failed: Resource temporarily unavailable

とログに残ります。 /etc/pcmcia/cis に REX5568.dat というのを
作ってやれば上手くいくかも、と思って NetBSD の
cardinfo と dumpcis の情報から REX5568.dat を作り、
/etc/pcmcia/config.opts に

card "RATOC REX5568 Modem"
  manfid 0x5f43, 0x4143
  cis "cis/REX5568.dat"
  bind "serial_cs"

と書き込んでやってみたのですが、上手くいきませんでした。

cardmgr[703]: initializing socket 0
cardmgr[703]: socket 0: RATOC REX5568 Modem
cardmgr[703]: executing: 'modprobe serial_cs'
kernel: register_serial(): autoconfig failed
kernel: serial_cs: register_serial() at 0x03f8, irq 3 failed
cardmgr[703]: get dev info on socket 0 failed: Resource temporarily unavailable

と、ログはこのようになります。これは、 REX5568.dat のもとにした
REX5568.cis を私がちゃんと書けていないからなのでしょうか?
それとも他の理由なのでしょうか? REX5568.cis と cardinfo の
結果と dumpcis の結果をつけておきます。どなたかアドバイス
おねがいいたします。 m(__)m

REX5568.cis
------------------------------------------------------------
#
# Replacement CIS for RATOC REX5568
#
manfid 0x0013, 0x0000
funcid serial_port
vers_1 4.1, "AD PC_CARD", "RC288ACL", "003", "A"
config base 0x20000 mask 0x0017 last_index 0x30
cftable_entry 0x20 [default]
  [rdybsy] [pwrdown]
  io 0x03f8-0x03ff [lines=10] [8bit]
cftable_entry 0x21
  io 0x02f8-0x02ff [lines=10] [8bit]
cftable_entry 0x22
  io 0x03e8-0x03ef [lines=10] [8bit]
cftable_entry 0x23
  io 0x02e8-0x02ef [lines=10] [8bit]
cftable_entry 0x30
  io 0x0000-0x000f [lines=3] [8bit]
------------------------------------------------------------

cardinfo
------------------------------------------------------------
PRODUCT: <AD PC_CARD RC288ACL 003 A > (0x00130000)
INTERFACE: IO-CARD flags 0x4<rdybsy>
CLASS: 2 (SERIAL)
CR(0): offset 0x200 lastc 0x30 mask 0x17 ccor 0x20 ccsr 0x28
IO DECODE: lines 12 address mask 0xfff
[Configuration Entry] <index 0x20>
Intr: type(level) irq( 2)
io[0] port 0x3f8, sz 0x8, bus 0x0
[Configuration Entry] <index 0x21>
Intr: type(level) irq( 2)
io[0] port 0x2f8, sz 0x8, bus 0x0
[Configuration Entry] <index 0x22>
Intr: type(level) irq( 2)
io[0] port 0x3e8, sz 0x8, bus 0x0
[Configuration Entry] <index 0x23>
Intr: type(level) irq( 2)
io[0] port 0x2e8, sz 0x8, bus 0x0
[Configuration Entry] <index 0x30>
Intr: type(level) irq( 2)
io[0] port 0x0, sz 0x8, bus 0x1<zone>
------------------------------------------------------------

dumpcis
------------------------------------------------------------
Configuration data for card in slot 1
Tuple #1, code = 0x0 (Null tuple), length = 2
    000:  00 ff
Tuple #2, code = 0x15 (Version 1 info), length = 29
    000:  04 01 41 44 20 50 43 5f 43 41 52 44 00 52 43 32
    010:  38 38 41 43 4c 00 30 30 33 00 41 00 ff
	Version = 4.1, Manuf = [AD PC_CARD],card vers = [RC288ACL]
	Addit. info = [003],[A]
Tuple #3, code = 0x20 (Manufacturer ID), length = 4
    000:  13 00 00 00
	PCMCIA ID = 0x13, OEM ID = 0x0
Tuple #4, code = 0x21 (Functional ID), length = 2
    000:  02 00
	Serial port/modem
Tuple #5, code = 0x22 (Functional EXT), length = 4
    000:  00 01 0f 1c
	Serial interface extension:
		16450 UART, Parity - Space,Mark,Odd,Even,
Tuple #6, code = 0x22 (Functional EXT), length = 9
    000:  05 1f 0d 00 03 00 00 03 00
	Modem interface capabilities:
Tuple #7, code = 0x22 (Functional EXT), length = 9
    000:  06 1f 0d 00 40 00 00 40 00
	Modem interface capabilities:
Tuple #8, code = 0x22 (Functional EXT), length = 13
    000:  02 03 00 3f 0c 03 03 0f 07 00 00 b5 ff
	Data modem services available:
Tuple #9, code = 0x22 (Functional EXT), length = 8
    000:  13 03 00 0f 00 00 00 b5
Tuple #10, code = 0x22 (Functional EXT), length = 8
    000:  23 03 00 0f 00 00 00 b5
Tuple #11, code = 0x1a (Configuration map), length = 5
    000:  01 30 00 02 17
	Reg len = 2, config register addr = 0x200, last config = 0x30
	Registers: XXX-X--- 
Tuple #12, code = 0x1b (Configuration entry), length = 19
    000:  e0 41 9d 78 5d 1e 26 1d e7 5f aa 60 f8 03 07 30
    010:  bc 86 28
	Config index = 0x20(default)
	Interface byte = 0x41 (I/O)  +RDY/-BSY active
	Vcc pwr:
		Continuous supply current: 5.5 x 10mA
		Max current average over 1 second: 1.5 x 100mA
		Max current average over 10 ms: 2 x 100mA
		Power down supply current: 1.5 x 10mA
	RDY/BSY scale Speed = 5.0 x 10 ms, scaled by 10
	Card decodes 10 address lines, 8 Bit I/O only
		I/O address # 1: block start = 0x3f8 block length = 0x8
		IRQ modes: Level
		IRQs:  2 3 4 5 7 9 10 15
	Max twin cards = 0
	Misc attr: (Audio-BVD2) (Power down supported)
Tuple #13, code = 0x1b (Configuration entry), length = 7
    000:  21 08 aa 60 f8 02 07
	Config index = 0x21
	Card decodes 10 address lines, 8 Bit I/O only
		I/O address # 1: block start = 0x2f8 block length = 0x8
Tuple #14, code = 0x1b (Configuration entry), length = 7
    000:  22 08 aa 60 e8 03 07
	Config index = 0x22
	Card decodes 10 address lines, 8 Bit I/O only
		I/O address # 1: block start = 0x3e8 block length = 0x8
Tuple #15, code = 0x1b (Configuration entry), length = 7
    000:  23 08 aa 60 e8 02 07
	Config index = 0x23
	Card decodes 10 address lines, 8 Bit I/O only
		I/O address # 1: block start = 0x2e8 block length = 0x8
Tuple #16, code = 0x1b (Configuration entry), length = 3
    000:  30 08 23
	Config index = 0x30
	Card decodes 3 address lines, 8 Bit I/O only
Tuple #17, code = 0xff (Terminator), length = 0
------------------------------------------------------------
-- 
寺崎彰洋 京都大学理学部物理学教室