Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2000 10:50:58 -0500 (EST)
From:      yossman <yossman@nonline.net>
To:        freebsd-mobile@freebsd.org
Cc:        yossman@nonline.net
Subject:   dual PCI cardbus PC Card controllers and PCCards
Message-ID:  <Pine.BSF.4.10.10003291028510.43854-100000@yoss.nonline.net>

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


i've been doing testing, attempting to get two exact-same PCI cardbus PC
Card controllers to work in the same FreeBSD system, with two PC Cards
inserted that are also exactly the same.  so far, FreeBSD recognizes both
controllers, but it only brings up one PCCard properly.  this is on an
intel p200MMX system, 64M RAM, 2G HDD.  everything about the system except
for the PCCard controllers are built on-board, such as the intel pro
on-board network card (fxp0).

i think the main difficulty is being caused by the fact that the two
PCCards are exactly the same -- pccardd keeps reporting 'no free
configuration' for the second card.  if i try to manually configure the
card using 'pccardc enabler', it either reports 'device not configured' if
i hit the 'wrong' card slot number, or 'operation not supported by device'
if i hit the right slot, to enable the second card that won't come up.

the system also sees a total of THREE PCCards if i boot with both PC Cards
already put into the system, even though there's only two inserted.  if i
take both cards out after the system has booted, and re-insert them one at
a time, it brings one up fine every time, but it never brings up the
second one, always quoting 'no free configuration' from pccardd.

i've tried FreeBSD3.4-RELEASE, and FreeBSD3.4-RELEASE-PAO.  i am planning
on trying FreeBSD4.0-RELEASE next, but i'm not sure that this is a
'unsupported' issue -- i think i just have to tell the system more
specifically how to assign resources to the cards, yet i don't know how to
do that.

any assistance i could get in figuring out how to manually assign
everything some address space to work with would be awesome, i've been
working on this for a few days now on and off. ;)  there has been talk
about trying this with linux as well as FreeBSD, and i'd like to see if i
can't get it working with FreeBSD first. ;)


relevant sections of config files follow.  more of the dmesg report can be
obtained, i was just trying to limit the size of this post.  thanks for
your time!



/etc/rc.conf:
-----
pccard_enable="YES"
pccardd_flags=" -i 1 -i 2 -i 4 -i 5 -i 6 -i 8 "
pccard_mem="DEFAULT"
pccard_beep="2"




/etc/pccard.conf:
-----
# Generally available IO ports
io      0x200-0x23F
io      0x240-0x27f
# Available memory slots
memory  0xd0000 16k
memory  0xd4000 16k

# Lucent WaveLAN/IEEE
card "Lucent Technologies" "WaveLAN/IEEE"
        config  default "wi0" 3
        insert  logger -s Lucent WaveLAN/IEEE inserted
        insert  /etc/pccard_ether $device
        remove  logger -s Lucent WaveLAN/IEEE removed
        remove  /etc/pccard_ether_remove $device

# Lucent WaveLAN/IEEE
card "Lucent Technologies" "WaveLAN/IEEE"
        config  default "wi1" 9
        insert  logger -s Lucent WaveLAN/IEEE inserted
        insert  /etc/pccard_ether $device
        remove  logger -s Lucent WaveLAN/IEEE removed
        remove  /etc/pccard_ether_remove $device




/usr/src/sys/i386/conf/PAO.2000-03-28:
-----
# You may need to reset all pccards after resuming
options         PCIC_RESUME_RESET
controller      pnp0                    # PnP support for ISA
controller      pci0
# PCCARD (PCMCIA) support - do not remove.
#pseudo-device  card    1
pseudo-device   card    3
device          pcic0   at isa? port 0x3e0 irq 11
device          pcic0   at isa? port 0x3e4 irq 11
device          pcic1   at isa?         # for HiNote Ultra II
device          pcic1   at isa?         # for Chandra II
device          pcic2   at isa? port 0x3e2 irq 10       # for HiNote Ultra
II
device          pcic2   at isa? port 0x3e4 irq 10       # for Chandra II
device          pcic3   at isa? 
device          pcic3   at isa? 
# Power management support
device          apm0    at isa?         # Advanced Power Management
device          wi0     at isa? port 0x200 net irq 3
device          wi1     at isa? port 0x240 net irq 9



dmesg goes like this:
-----
pcic0: <TI PCI-1225 PCI-CardBus Bridge> rev 0x01 int a irq 11 on pci0.18.0
TI12XX PCI Config Reg: [pwr save][pci only]
pcic1: <TI PCI-1225 PCI-CardBus Bridge> rev 0x01 int a irq 11 on pci0.18.1
TI12XX PCI Config Reg: [pwr save][pci only]
vga0: <SiS model 0200 VGA-compatible display device> rev 0x68 on pci0.19.0
pcic2: <TI PCI-1225 PCI-CardBus Bridge> rev 0x01 int a irq 10 on pci0.20.0
TI12XX PCI Config Reg: [pwr save][pci only]
pcic3: <TI PCI-1225 PCI-CardBus Bridge> rev 0x01 int a irq 10 on pci0.20.1
TI12XX PCI Config Reg: [pwr save][pci only]
[...]
wi1 not found at 0x240
[...]
pcic0 at 0x3e0-0x3e1 irq 11 on isa
PC-Card ctlr(0) TI PCI-1225 [CardBus bridge mode] (5 mem & 2 I/O windows)
pcic0: slot 0 controller I/O address 0x3e0
pcic0: slot 1 controller I/O address 0x3e0
pcic1: sharing irq 11 with other pcic
pcic1 not found
pcic1: sharing irq 11 with other pcic
pcic1 not found
pcic2 at 0x3e2-0x3e3 irq 10 on isa
PC-Card ctlr(1) TI PCI-1225 [CardBus bridge mode] (5 mem & 2 I/O windows)
pcic1: slot 0 controller I/O address 0x3e2
pcic1: slot 1 controller I/O address 0x3e2
pcic2: sharing irq 11 with other pcic
pcic3 not found
pcic2: sharing irq 11 with other pcic
pcic3 not found
[...]
apm0 on isa
apm: found APM BIOS version 1.2
Initializing PC-card drivers: awi aic gp cnw ed ep fe sn wi wlp xe joy sio wdc
Intel Pentium detected, installing workaround for F00F bug
changing root device to wd0s1a
Card inserted, slot 0
Card inserted, slot 2
Card inserted, slot 3
card0: assign wi0 iobase 0x200 irq 3
wi0: <WaveLAN/IEEE 802.11> at 0x200-0x23f irq 3 on isa
wi0: Ethernet address: 00:60:1d:1d:0d:58




yossman

-----------------------------------------------------------------------
yossarian holmberg                                  yossman@nonline.net
systems administrator                           http://www.nonline.net/
national online inc.                    national computers and supplies




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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10003291028510.43854-100000>