The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 TWO PCCARDS ON SAME DESKTOP
Author: Francisco Miralha da Silveira 
Date:   27-03-05 18:44

Hi.

I'm trying to put 2 pccards (orinoco wavelan) on my desktop, using PCMCIA->ISA adapter.

FreeBSD 4.11 stable insists in cosider the second card in "slot0", ie
every time I insert a card in, it says: "pccard inserted in slot0"
so wi1 never is configured.

#***************************
# PCCARD.CONF
#***************************
# Generally available IO ports
io 0x240-0x360
# Generally available IRQs (Built-in sound-card owners remove 5)
irq 3 4 7 10 11 13 15
# Available memory slots
memory 0xd0000 96k
memory 0xd4000 96k


# Lucent WaveLAN/IEEE
card "Lucent Technologies" "WaveLAN/IEEE"
config auto "wi0"
config auto "wi1"
insert /etc/pccard_ether_wi0
insert /etc/pccard_ether_wi1
remove /sbin/ifconfig wi0 delete
remove /sbin/ifconfig wi1 delete
#***************************


#***************************
# /etc/pccard_ether_wi0
#***************************
wicontrol -i wi0 -p 1
wicontrol -i wi0 -c 1
wicontrol -i wi0 -n server
wicontrol -i wi0 -s router1
wicontrol -i wi0 -t 1
wicontrol -i wi0 -f 1

#***************************
# /etc/pccard_ether_wi1
#***************************
wicontrol -i wi1 -p 1
wicontrol -i wi1 -n internal-net
wicontrol -i wi1 -s int-net
wicontrol -i wi1 -t 3

Someone have some "tip" for me?

thank you in advance
FMS

Reply To This Message
 
 Re: TWO PCCARDS ON SAME DESKTOP
Author: Francisco Miralha da Silveira 
Date:   29-03-05 19:15

I got it !!!!

#
# [========================================================]
# [ station1 (10.0.0.5-pccard) ]
# [ `-wireless----------> +-----------------------+ ]
# [ | (10.0.0.5-wi0) | ]
# [ | this machine | ]
# [ | (250.200.150.100-wi1) | ]
# [ <-----wireless------ +-----------------------+ ]
# [ ISP(250.200.150.254) ]
# [========================================================]
# 1. I'm using 2 adapters PCMCIA->ISA Vadem 469
# 2. The first one has no jumper seted
# 3. The second one, has the first position jumper closed [:] : :
# 4. Reset the machine, press DEL, enter in BIOS
# and RESERV 2 IRQs for LEGACY/ISA !!!
# I used IRQ 3 and 4, and I disabled everything I'll not use:
# USB, COM1, COM2, PRINTER, INFRARED, etc.

# gateway
defaultrouter="250.200.150.254"

# hostname
hostname="home_fms.myisp.com"

# my ethernet board
ifconfig_rl0="inet 192.168.0.1 netmask 255.255.255.0"

# Wireless
pccard_enable="YES"
pccard_conf="/etc/pccard.conf"
ifconfig_wi0="inet 10.0.0.1 netmask 255.255.255.0"
ifconfig_wi1="inet 250.200.150.100 netmask 255.255.255.0"

natd_enable="YES"
natd_interface="250.200.150.100"

gateway_enable="YES"
router_enable="YES"
router="/sbin/routed"
router_flags="-q"

nfs_reserved_port_only="YES"
sshd_enable="YES"
kern_securelevel_enable="NO"
usbd_enable="NO"
################
# end of rc.conf
################

# Let's start modifying the kernel-configuration

cd /usr/src/sys/i386/conf
ee mykernel

# 5. Insert this four lines in your kernel-conf:

# PCCARD (PCMCIA) support
device card
device pcic0 at isa? irq 0 port 0x3e0 iomem 0xd0000
device pcic1 at isa? irq 0 port 0x3e2 iomem 0xd4000

# 6. Now you need to recompile the kernel
# ONE TIP: NEVER compile the kernel with the pccards inserted in ISA/PCMCIA boards!!!

config mykernel; cd ../../compile/mykernel; make depend; make; make install; reboot

# 7. I'm using this /etc/pccard.conf:

#####################
# /etc/pccard.conf
#####################
io 0x210-0x360
irq 5 7 10 11
memory 0xd0000 96k

# Lucent WaveLAN/IEEE
card "Lucent Technologies" "WaveLAN/IEEE"
config 0x1 "wi0" ?
insert /etc/pccard_ether wi0 start
insert /etc/pccard_cfgwi0
remove /etc/pccard_ether wi0 stop

config auto "wi1" ?
insert /etc/pccard_ether wi1 start
insert /etc/pccard_cfgwi1
remove /etc/pccard_ether wi1 stop
# Avaya
card "Avaya Communication" "Avaya Wireless PC Card"
config 0x1 "wi0" ?
insert /etc/pccard_ether wi0 start
insert /etc/pccard_cfgwi0
remove /etc/pccard_ether wi0 stop

config auto "wi1" ?
insert /etc/pccard_ether wi1 start
insert /etc/pccard_cfgwi1
remove /etc/pccard_ether wi1 stop


####################
# end of pccard.conf
####################

# 8. Settings for wi0 pccard (it will be used to my internal network)
ee /etc/pccard_cfgwi0

####################
# /etc/pccard_cfgwi0
####################
wi=wi0
wicontrol -i ${wi} -t 3
wicontrol -i ${wi} -n "homenet"
wicontrol -i ${wi} -s mygateway
wicontrol -i ${wi} -p 1
wicontrol -i ${wi} -f 1
# X1y32 is the password for your internal network
# it should have 5 chars (silver pccards)
wicontrol -i ${wi} -k X1y32 -v 1
wicontrol -i ${wi} -T 1
wicontrol -i ${wi} -e 0
wicontrol -i ${wi} -c 1

wicontrol -i ${wi}
ifconfig ${wi}
######################
# end of pccard_cfgwi0
######################

# 9. Settings for wi1 pccard
# (will connect this machine to my ISP)

ee /etc/pccard_cfgwi1

######################
# /etc/pccard_cfgwi1
######################
wi=wi1
wicontrol -i ${wi} -t 3
wicontrol -i ${wi} -n "ISP_wireless_network_name"
wicontrol -i ${wi} -s home_fms
wicontrol -i ${wi} -p 1
wicontrol -i ${wi} -f 1
# 8a23b is the password on the ISP network
# If your ISP do not use passwords, put a '#' at the beggining of next line
wicontrol -i ${wi} -k 8a23b -v 1
wicontrol -i ${wi} -T 1
wicontrol -i ${wi} -e 0
wicontrol -i ${wi} -c 1
wicontrol -i ${wi} | grep -i com
wicontrol -i ${wi}
ifconfig ${wi}
######################
# end of pccard_cfgwi1
######################

# That's all folks. I hope this can be useful for you.
#
# Tips to remember:
# - reserve IRQS for Legacy/ISA on Bios
# - do not compile kernel with the pccards inserted in
# - be sure to use free IRQs on pccard.conf
# - this should work, if it does not,
# try to put your HD on other machine
# - the second card delays a little to get active when
# you reset, but, don't worry.
#
# My permanent thanks to: Luis Pfau and Alexandre Brito
##################################################################

fms@hy.com.br



Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org