Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Apr 1997 11:40:04 +0000
From:      Gianmarco Giovannelli <gmarco@scotty.masternet.it>
To:        mobile@freebsd.org
Subject:   I need help for Usr Sportser v34 :-)
Message-ID:  <334A2E94.41C67EA6@scotty.masternet.it>

next in thread | raw e-mail | index | archive | help
Hello to everyone...

After a long war with kernel config file, /etc/sysconfig and pccard.conf
I am finally succeded in using my 3c589c pcmcia card , but I am still
not able to configure the usr sportser v34 (33.6).


Here is the pccardc dumpcis output :

--- begin ---

Configuration data for card in slot 0
[...]
Configuration data for card in slot 1
Tuple #1, code = 0x1 (Common memory descriptor), length = 3
    000:  00 00 ff
	Common memory device information:
		Device number 1, type No device, WPS = OFF
		Speed = No speed, Memory block size = 512b, 1 units
Tuple #2, code = 0x15 (Version 1 info), length = 43
    000:  05 00 55 2e 53 2e 20 52 6f 62 6f 74 69 63 73 00
    010:  31 36 32 36 00 53 70 6f 72 74 73 74 65 72 20 56
    020:  2e 33 34 20 4d 6f 64 65 6d 00 ff
	Version = 5.0, Manuf = [U.S. Robotics],card vers = [1626]
	Addit. info = [Sportster V.34 Modem],[]
Tuple #3, code = 0x20 (Manufacturer ID), length = 4
    000:  02 01 2c 00
	PCMCIA ID = 0x102, OEM ID = 0x2c
Tuple #4, code = 0x1a (Configuration map), length = 5
    000:  01 23 00 03 03
	Reg len = 2, config register addr = 0x300, last config = 0x23
	Registers: XX------ 
Tuple #5, code = 0x1b (Configuration entry), length = 16
    000:  e0 41 99 49 55 26 25 aa 60 f8 03 07 30 ff ff 28
	Config index = 0x20(default)
	Interface byte = 0x41 (I/O)  +RDY/-BSY active
	Vcc pwr:
		Nominal operating supply voltage: 5 x 1V
		Continuous supply current: 2 x 100mA
		Power down supply current: 2 x 10mA
	Card decodes 10 address lines, 8 Bit I/O only
		I/O address # 1: block start = 0x3f8 block length = 0x8
		IRQ modes: Level
		IRQs:  4 5 8 9 10 11 12 13 14 15
	Max twin cards = 0
	Misc attr: (Audio-BVD2) (Power down supported)
Tuple #6, 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
Tuple #7, 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 #8, 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 #9, code = 0x21 (Functional ID), length = 2
    000:  02 01
	Serial port/modem - POST initialize
Tuple #10, code = 0x22 (Functional EXT), length = 4
    000:  00 02 0f 7c
	Serial interface extension:
		16550 UART, Parity - Space,Mark,Odd,Even,
Tuple #11, code = 0x22 (Functional EXT), length = 9
    000:  01 1f 0d 00 03 00 00 03 00
	Modem interface capabilities:
Tuple #12, code = 0x22 (Functional EXT), length = 12
    000:  02 06 00 3f 1c 03 03 0f 07 00 02 b5
	Data modem services available:
Tuple #13, code = 0x22 (Functional EXT), length = 8
    000:  13 06 00 0f 00 02 00 b5
Tuple #14, code = 0x22 (Functional EXT), length = 8
    000:  23 06 00 0f 00 02 00 b5
Tuple #15, code = 0x0 (Null tuple), length = 10
    000:  02 01 2c 00 01 00 00 00 00 ff
Tuple #16, code = 0x14 (No link), length = 0
Tuple #17, code = 0xff (Terminator), length = 0
2 slots found

--- end ---

and here is /etc/pccard.conf

--- begin ---

# Sample PCCARD configuration file
[...]
# Generally available IO ports
io	0x240-0x360
# Generally available IRQs (Built-in sound-card owners remove 5)
irq	9 10 11 15
# Available memory slots
memory	0xd4000  96k

# 3Com Etherlink III 3C589B, 3C589C
card "3Com Corporation" "3C589"
	config	0x1 "ep0" ?
	insert	echo 3Com Etherlink III inserted
#	insert	/etc/pccard_ether ep0 -link0 link1
	insert	/etc/pccard_ether ep0 link0 -link1
	remove	echo 3Com Etherlink III removed
	remove	/sbin/ifconfig ep0 delete

# US Robotics COURIER PCMCIA V.34
card "U.S. Robotics" "1626"
	config  0x20 "sio2" ?
	insert  echo USRobotics PCMCIA Modem inserted
	remove  echo USRobotics PCMCIA Modem removed


--- end --- 

and here there is the relevant part of the kernel config file

--- begin ---

#
# Laptop support (see LINT for more options)
#
device		apm0    at isa?	disable	# Advanced Power Management
options		APM_BROKEN_STATCLOCK	# Workaround some buggy APM BIOS

# PCCARD (PCMCIA) support
controller	crd0
device		pcic0	at crd?
device		pcic1	at crd?

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
 siointr
device		psm0	at isa? disable port "IO_KBD" conflicts tty irq 12 vector
psmintr

device ep0 at  isa ? port 0x300 net irq 10 vector epintr


--- end ---


The laptop is a IBM 365XD , with an intel pcmcia controller.
FreeBSD is 2.2.1 (ctm #215)

Only few questions now :-)

1) What I wrong for the usr modem card ? Everytime I insert it says
:"Resource allocation failure for U.S. Robotics ...."
Is the config 0x20 the right one ? Any hints ?
I am sorry, but I am not still able to find a little documentation. I
understand a little more reading the PAO readme files, but I don't use
it... 

2) When the kernel boots it first complains about the lack of the ep0
(it presumes it is an isa card, as I can seen from the kernel). Then it
recognizes as pcmcia card. Is it a correct way of doing thing ? I am
trying to explain better... Is there any way to tell the kernel that my
ep0 is only a pcmcia card and not an isa one so it can prove it only
after loading the pccard ? 

3) When it recognizes it as card it outputs the string on the boot
screen in a random position. Is it correct ? Or have I to modify
something to have things goes like so : "Slot 0 : ep0 , address ....etc
etc" . Yes I know the important thing is that card works but ....

4) For use the modem pcmcia must I compile my kernel with a more sio
added ...? In other words have I to add the line of the sio that will
use the modem after it is recognized ... ?

I am sorry for my long messages, and I think it will be a little obscure
in some parts, but it is the best thing I can do with my school-english. 

Thanks again to everyone for attention...

-- 

Regards...

Gianmarco 
"Unix expert since yesterday"

http://www2.masternet.it



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?334A2E94.41C67EA6>