Hugh Brown <hsbrown@qnx.com> wrote in article
<Voyager.010123150055.8791B@node90.ott.qnx.com>…
Previously, Ed Theobald wrote in qdn.public.qnx4:
I’ve searched the KnowledgeBase for help on this problem and found
nothing.
I’m attempting to use 2 pcmcia slots to load/mount ATA flash cards. I
have
the following 2 lines in sysinit:
Pcmcia.generic -a3e0 -i0 -F /etc/config/pcmcia.cards
PcmciaLaunch -v ‘0x401,PcSkt$SOCKET $ioport $IRQ’ &
PcSkt1 and PcSkt2 are my programs used to run Fsys.ata and mount the
cards.
All of this works great - PcmciaLaunch runs my program when the card is
inserted and signals it with SIGTERM when the card is removed - but
only
for 1 slot at a time.
MY PROBLEM:
If I have a card is one of the slots, PcmciaLaunch will not call one of
my
programs again until I have removed the first card - PcmciaLaunch will
only
work with 1 slot at a time!
Has anyone seen this problem or know of a work-around?
Thanks for any help.
I tested this will 2 modems and 2 shell scripts. When I insert a modem
into
socket 1, shell script 1 is run. If I insert a card into socket 2, shell
script 2 is run. I can remove both cards and re-insert them without any
problems. What is the output from PcmciaLaunch when you insert your
cards?
Also what is the date of your PcmciaLaunch?
Hugh Brown (613) 591-0931 ext. 209 (voice)
QNX Software Systems Ltd. (613) 591-3579 (fax)
175 Terence Matthews Cres. email: > hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
Hugh,
Thanks for the reply.
The date of my PcmciaLaunch is May 06 1998.
Hugh, are your 2 modem cards the same ‘type’ (i.e. 0x401 in my case). If
both your modems are the same ‘type’ do you make the script that runs
differ by using the $SOCKET variable to change the script name?
The output from my PcmciaLaunch is as follows:
//2/>PcmciaLaunch -v ‘0x401,/home/qcu/bin/pc_skt $SOCKET $IOPORT $IRQ’
received proxy
received proxy
iotype=401 |->type=401
Locking ioport=320-32f ioport2=0-ffffffff irq=5 in socket 0
spawned //2/home/qcu/bin/pc_skt
received proxy
iotype=401 |->type=401
Locking ioport=330-33f ioport2=0-ffffffff irq=7 in socket 1
Notice that PcmciaLaunch did not spawn a process when the second card was
inserted. If I hadn’t inserted the first card, the second one would have
resulted in a spawned process.
(Note that I’ve changed my executable from being 2 separate ones with the
$SOCKET changing the exe name. Now I have one executable with $SOCKET as a
parameter - the result is the same, however).
Thanks in advance for any further insight,
Ed Theobald
minnetronix inc
etheobald@minnetronix.com