PCMCIA Card trouble

Hi, everyone.
I’m trying to access a PCMCIA card under QNX4.24. I cannot progress!

#pin

Sock Win Type Flags PID Base Size IRQ
Base Size DMA
1 0 ATA C—I-±-------W None 0x360 16 5
2 Empty ----MF---------- None

#Fsys.eide -vv fsys -h4,34 -n0=flash -NFLASH eide -b -l -a0x360 -i5 -S &

Interface Address : 360h
Interface Interrupt : 5

Device 0 : IDE/ATA Direct-Access
Model : Hitachi ATA Card
BIOS Geometry : 4 Heads, 32 Sectors
Drive Geometry : 4 Heads, 978 Tracks, 32 Sectors
LBA Address mode
Multimode Blocks/Interrupt 1
PIO mode 2

[00] SIM=“eide 2.00A” HBA=“EIDE”
[00,0,0] type=00 ver=1 resp=00 flags=00

If I run ‘fdisk’ at it’s status, the output is as follows:

#fdisk -z /dev/flash0
FDISK:’/dev/flash0’ may not be formatted -I/O error reading partition table.

Physical disk characteristics: (/dev/flash0)
Driver : EIDEH
Physical Drive # : 0
Disk type : Removeable (4)
Cylinders : 978
Heads : 4
Sectors/Track : 32
Total Sectors : 125184
Partition table information:
0: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
1: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
2: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
3: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
signature1=0x00, signature2=0x00

Any help will be greatly appreciated.

This could be an interrupt issue. IRQ 5 is normally used by audio on
most laptops. Try changing your /etc/config/pcmcia.cfg file and removing
IRQ 5. IRQs 7 & 9 are normally safe to use. You will also have to create
a partition on the disk with fdisk and then dinit it before you can use
it.

Previously, Green wrote in qdn.public.qnx4:

Hi, everyone.
I’m trying to access a PCMCIA card under QNX4.24. I cannot progress!

#pin

Sock Win Type Flags PID Base Size IRQ
Base Size DMA
1 0 ATA C—I-±-------W None 0x360 16 5
2 Empty ----MF---------- None

#Fsys.eide -vv fsys -h4,34 -n0=flash -NFLASH eide -b -l -a0x360 -i5 -S &

Interface Address : 360h
Interface Interrupt : 5

Device 0 : IDE/ATA Direct-Access
Model : Hitachi ATA Card
BIOS Geometry : 4 Heads, 32 Sectors
Drive Geometry : 4 Heads, 978 Tracks, 32 Sectors
LBA Address mode
Multimode Blocks/Interrupt 1
PIO mode 2

[00] SIM=“eide 2.00A” HBA=“EIDE”
[00,0,0] type=00 ver=1 resp=00 flags=00

If I run ‘fdisk’ at it’s status, the output is as follows:

#fdisk -z /dev/flash0
FDISK:’/dev/flash0’ may not be formatted -I/O error reading partition table.

Physical disk characteristics: (/dev/flash0)
Driver : EIDEH
Physical Drive # : 0
Disk type : Removeable (4)
Cylinders : 978
Heads : 4
Sectors/Track : 32
Total Sectors : 125184
Partition table information:
0: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
1: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
2: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
3: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
signature1=0x00, signature2=0x00

Any help will be greatly appreciated.
\

Hi, Hugh
I follow your advice, but the result(of fdisk) is unchanged.
#pin
Sock Win Type Flags PID Base Size IRQ
Base Size DMA
1 0 ATA C—I-±-------W None 0x320 16 7
2 Empty ----MF---------- None

The Fsys.eide, fdisk commands are as follows:
#Fsys.eide -v fsys -h4,32 -n0=flash -NFLASH eide -b -l -a0x320 -i7 -S &
#fdisk -z /dev/flash0

Previously, Green wrote in qdn.public.qnx4:

Hi, Hugh
I follow your advice, but the result(of fdisk) is unchanged.
#pin
Sock Win Type Flags PID Base Size IRQ
Base Size DMA
1 0 ATA C—I-±-------W None 0x320 16 7
2 Empty ----MF---------- None

The Fsys.eide, fdisk commands are as follows:
#Fsys.eide -v fsys -h4,32 -n0=flash -NFLASH eide -b -l -a0x320 -i7 -S &
#fdisk -z /dev/flash0

So what happens after you zero the partition table?

Dear Hugh.
The output of fdisk is as follows:
#fdisk -z /dev/flash0
FDISK:’/dev/flash0’ may not be formatted -I/O error reading partition table.

Physical disk characteristics: (/dev/flash0)
Driver : EIDEH
Physical Drive # : 0
Disk type : Removeable (4)
Cylinders : 978
Heads : 4
Sectors/Track : 32
Total Sectors : 125184
Partition table information:
0: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
1: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
2: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
3: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
signature1=0x00, signature2=0x00

“Hugh Brown” <hsbrown@qnx.com> wrote in message
news:Voyager.011213075511.5732A@node90.ott.qnx.com

Previously, Green wrote in qdn.public.qnx4:
Hi, Hugh
I follow your advice, but the result(of fdisk) is unchanged.
#pin
Sock Win Type Flags PID Base Size IRQ
Base Size DMA
1 0 ATA C—I-±-------W None 0x320 16 7
2 Empty ----MF---------- None

The Fsys.eide, fdisk commands are as follows:
#Fsys.eide -v fsys -h4,32 -n0=flash -NFLASH eide -b -l -a0x320 -i7 -S &
#fdisk -z /dev/flash0


So what happens after you zero the partition table?

Please can you post the output from ‘pin con’, ‘pin cis’ and ‘pin re’
with Pcmcia.generic running and you flash card inserted.

Thanks, Hugh.


Previously, Green wrote in qdn.public.qnx4:

Dear Hugh.
The output of fdisk is as follows:
#fdisk -z /dev/flash0
FDISK:’/dev/flash0’ may not be formatted -I/O error reading partition table.

Physical disk characteristics: (/dev/flash0)
Driver : EIDEH
Physical Drive # : 0
Disk type : Removeable (4)
Cylinders : 978
Heads : 4
Sectors/Track : 32
Total Sectors : 125184
Partition table information:
0: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
1: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
2: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
3: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
signature1=0x00, signature2=0x00

“Hugh Brown” <> hsbrown@qnx.com> > wrote in message
news:> Voyager.011213075511.5732A@node90.ott.qnx.com> …
Previously, Green wrote in qdn.public.qnx4:
Hi, Hugh
I follow your advice, but the result(of fdisk) is unchanged.
#pin
Sock Win Type Flags PID Base Size IRQ
Base Size DMA
1 0 ATA C—I-±-------W None 0x320 16 7
2 Empty ----MF---------- None

The Fsys.eide, fdisk commands are as follows:
#Fsys.eide -v fsys -h4,32 -n0=flash -NFLASH eide -b -l -a0x320 -i7 -S &
#fdisk -z /dev/flash0


So what happens after you zero the partition table?


\