Buildfile and PCMCIA

I’ve already sent this message to the ‘embedded’ newsgroup with no
answer…
Is it a silly question or was a matter of newsgroup ?


I’m trying to use a PCMCIA ATA flash card on my x86 system and
I’m having some
troubles with (I suppose) pccard-launch utility.

The devp-pccard& command seems to work correctly (see pin
command below) but if I use (in the buildfile)
pccard-launch command with single quotes as in:
pccard-launch -vvv ‘0x0400, devb-eide eide
ioport=0x0200,irq=7,nobios blk automount=hd1t11:/flash:dos’ &
I get a message: “No entries to act on”.
The same command run from the console work fine.


Using the same pccard-launch command (in the buildfile) with double
quotes:

pccard-launch -vvv “0x0400, devb-eide eide
ioport=0x0200,irq=7,nobios blk automount=hd1t11:/flash:dos” &

result in the following error messages:

received pulse
iotype=401 l->type = 400
Loking ioport= 200-20f ioport2=0-ffffffff irq=7 in socket 0
Error, so unlocking

I also tryied some backslash to avoid quotes interpretation but had no
success.

The pin and pin cons commands shows the following:

pin
Sock Func Type Flags PID Base Size IRQ
1 0 Disk C—I-±-------- None 0x200 16 7
1 Empty ----MF---------- None
2 Empty ----MF---------- None
2 Empty ----MF---------- None

\

pin con

; socket 1
[device]
manufacturer = “HITACHI”
product = “FLASH”
info1 = “4.0”
regbase = 0x200
, mem any+0x800
config = 0x01, 0x0400, irq any, io any+16 (width=16)
config = 0x01, 0x0400, irq any, io any+16 (width=16)
config = 0x02, 0x0400, irq 14, io 0x1f0-0x1f7 (width=16), io
0x3f6-0x3f7 (width=16)
config = 0x02, 0x0400, irq 14, io 0x1f0-0x1f7 (width=16), io
0x3f6-0x3f7 (width=16)
config = 0x03, 0x0400, irq 14, io 0x170-0x177 (width=16), io
0x376-0x377 (width=16)
config = 0x03, 0x0400, irq 14, io 0x170-0x177 (width=16), io
0x376-0x377 (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts

To avoid time related problems I put after the “devp-pccard &”
command
a “waitfor” command.

Can someone help ?
Thanks in advance
Alberto

Dear Alberto,

I had a similar problem on a PC104 system with PCMCIA controller and a
wireless ethernet PCMCIA card.

If I started the pccard resource manager and io-net from command line,
everything OK. If I used the same sequence of commands in a bootfile the
ethernet card was not found (even if a waitfor was in place before the two
commands).

I have discovered that placing a “sleep 1” after “waitfor” fixes the problem
(you need to put the sleep command in your image as well).

I guess this could help you.

Un saluto,

Andrea.

P.S. Has anybody else experienced similar problems ? Do anybody else know a
better solution ?




“Alberto Catoni” <catoni@pisa.intecs.it> wrote in message
news:3D2154EE.35B3FCC7@pisa.intecs.it

I’ve already sent this message to the ‘embedded’ newsgroup with no
answer…
Is it a silly question or was a matter of newsgroup ?


I’m trying to use a PCMCIA ATA flash card on my x86 system and
I’m having some
troubles with (I suppose) pccard-launch utility.

The devp-pccard& command seems to work correctly (see pin
command below) but if I use (in the buildfile)
pccard-launch command with single quotes as in:
pccard-launch -vvv ‘0x0400, devb-eide eide
ioport=0x0200,irq=7,nobios blk automount=hd1t11:/flash:dos’ &
I get a message: “No entries to act on”.
The same command run from the console work fine.


Using the same pccard-launch command (in the buildfile) with double
quotes:

pccard-launch -vvv “0x0400, devb-eide eide
ioport=0x0200,irq=7,nobios blk automount=hd1t11:/flash:dos” &

result in the following error messages:

received pulse
iotype=401 l->type = 400
Loking ioport= 200-20f ioport2=0-ffffffff irq=7 in socket 0
Error, so unlocking

I also tryied some backslash to avoid quotes interpretation but had no
success.

The pin and pin cons commands shows the following:

pin
Sock Func Type Flags PID Base Size IRQ
1 0 Disk C—I-±-------- None 0x200 16 7
1 Empty ----MF---------- None
2 Empty ----MF---------- None
2 Empty ----MF---------- None

\

pin con

; socket 1
[device]
manufacturer = “HITACHI”
product = “FLASH”
info1 = “4.0”
regbase = 0x200
, mem any+0x800
config = 0x01, 0x0400, irq any, io any+16 (width=16)
config = 0x01, 0x0400, irq any, io any+16 (width=16)
config = 0x02, 0x0400, irq 14, io 0x1f0-0x1f7 (width=16), io
0x3f6-0x3f7 (width=16)
config = 0x02, 0x0400, irq 14, io 0x1f0-0x1f7 (width=16), io
0x3f6-0x3f7 (width=16)
config = 0x03, 0x0400, irq 14, io 0x170-0x177 (width=16), io
0x376-0x377 (width=16)
config = 0x03, 0x0400, irq 14, io 0x170-0x177 (width=16), io
0x376-0x377 (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts

To avoid time related problems I put after the “devp-pccard &”
command
a “waitfor” command.

Can someone help ?
Thanks in advance
Alberto

Dear Alberto
“Alberto Catoni” <catoni@pisa.intecs.it> wrote in message
news:3D2154EE.35B3FCC7@pisa.intecs.it

I’ve already sent this message to the ‘embedded’ newsgroup with no
answer…
Is it a silly question or was a matter of newsgroup ?


I’m trying to use a PCMCIA ATA flash card on my x86 system and
I’m having some
troubles with (I suppose) pccard-launch utility.

The devp-pccard& command seems to work correctly (see pin
command below) but if I use (in the buildfile)
pccard-launch command with single quotes as in:
pccard-launch -vvv ‘0x0400, devb-eide eide
ioport=0x0200,irq=7,nobios blk automount=hd1t11:/flash:dos’ &
I get a message: “No entries to act on”.
The same command run from the console work fine.


Using the same pccard-launch command (in the buildfile) with double
quotes:

pccard-launch -vvv “0x0400, devb-eide eide
ioport=0x0200,irq=7,nobios blk automount=hd1t11:/flash:dos” &

result in the following error messages:

received pulse
iotype=401 l->type = 400
Loking ioport= 200-20f ioport2=0-ffffffff irq=7 in socket 0
Error, so unlocking

I also tryied some backslash to avoid quotes interpretation but had no
success.

The pin and pin cons commands shows the following:

pin
Sock Func Type Flags PID Base Size IRQ
1 0 Disk C—I-±-------- None 0x200 16 7
1 Empty ----MF---------- None
2 Empty ----MF---------- None
2 Empty ----MF---------- None

\

pin con

; socket 1
[device]
manufacturer = “HITACHI”
product = “FLASH”
info1 = “4.0”
regbase = 0x200
, mem any+0x800
config = 0x01, 0x0400, irq any, io any+16 (width=16)
config = 0x01, 0x0400, irq any, io any+16 (width=16)
config = 0x02, 0x0400, irq 14, io 0x1f0-0x1f7 (width=16), io
0x3f6-0x3f7 (width=16)
config = 0x02, 0x0400, irq 14, io 0x1f0-0x1f7 (width=16), io
0x3f6-0x3f7 (width=16)
config = 0x03, 0x0400, irq 14, io 0x170-0x177 (width=16), io
0x376-0x377 (width=16)
config = 0x03, 0x0400, irq 14, io 0x170-0x177 (width=16), io
0x376-0x377 (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts

To avoid time related problems I put after the “devp-pccard &”
command
a “waitfor” command.

Can someone help ?
Thanks in advance
Alberto

Hi Andrea,
thanks very much for your reply.
Unfortunately it does not seem a time related
problem in fact I’ve already tryed delaying the start of
pccard-launch program with no success.
Grazie ,
Bye
Alberto

Andrea Borsic wrote:

Dear Alberto
“Alberto Catoni” <> catoni@pisa.intecs.it> > wrote in message
news:> 3D2154EE.35B3FCC7@pisa.intecs.it> …
I’ve already sent this message to the ‘embedded’ newsgroup with no
answer…
Is it a silly question or was a matter of newsgroup ?


I’m trying to use a PCMCIA ATA flash card on my x86 system and
I’m having some
troubles with (I suppose) pccard-launch utility.

The devp-pccard& command seems to work correctly (see pin
command below) but if I use (in the buildfile)
pccard-launch command with single quotes as in:
pccard-launch -vvv ‘0x0400, devb-eide eide
ioport=0x0200,irq=7,nobios blk automount=hd1t11:/flash:dos’ &
I get a message: “No entries to act on”.
The same command run from the console work fine.


Using the same pccard-launch command (in the buildfile) with double
quotes:

pccard-launch -vvv “0x0400, devb-eide eide
ioport=0x0200,irq=7,nobios blk automount=hd1t11:/flash:dos” &

result in the following error messages:

received pulse
iotype=401 l->type = 400
Loking ioport= 200-20f ioport2=0-ffffffff irq=7 in socket 0
Error, so unlocking

I also tryied some backslash to avoid quotes interpretation but had no
success.

The pin and pin cons commands shows the following:

pin
Sock Func Type Flags PID Base Size IRQ
1 0 Disk C—I-±-------- None 0x200 16 7
1 Empty ----MF---------- None
2 Empty ----MF---------- None
2 Empty ----MF---------- None

\

pin con

; socket 1
[device]
manufacturer = “HITACHI”
product = “FLASH”
info1 = “4.0”
regbase = 0x200
, mem any+0x800
config = 0x01, 0x0400, irq any, io any+16 (width=16)
config = 0x01, 0x0400, irq any, io any+16 (width=16)
config = 0x02, 0x0400, irq 14, io 0x1f0-0x1f7 (width=16), io
0x3f6-0x3f7 (width=16)
config = 0x02, 0x0400, irq 14, io 0x1f0-0x1f7 (width=16), io
0x3f6-0x3f7 (width=16)
config = 0x03, 0x0400, irq 14, io 0x170-0x177 (width=16), io
0x376-0x377 (width=16)
config = 0x03, 0x0400, irq 14, io 0x170-0x177 (width=16), io
0x376-0x377 (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts

To avoid time related problems I put after the “devp-pccard &”
command
a “waitfor” command.

Can someone help ?
Thanks in advance
Alberto


Alberto Catoni
Intecs HRT S.p.A.
V. Gereschi 32,
56127 Pisa - Italia
Tel: +39 050 545256 Fax: +39 050 545200