[ Next-in-Thread ]  [ Next Message ] 

Question: RH6.1 with 2.2.14 

Forum: PCMCIA Installation and Configuration Issues
Date: 2000, Mar 14
From: Duane Gustavus duane

Hello,

I am having problems getting PCMCIA services to work on my Redhat 6.1 Linux desktop system. I recently bought a "DataChute" ISA-PCMCIA controller which uses a VIA VT83C469. First, I did a new installation of RH6.1 on a spare pentium system, booted the new install and edited the /etc/sysconfig/pcmcia file to say yes. I then shutdown, put the adapter in the system and rebooted. The pcmcia services were started correctly, and I made a file system on a flash card just to make sure. Everything worked as advertised.

Next I put the same adapter into my "development" system which is also RH6.1 but upgraded to kernel 2.2.14 and pcmcia-cs-3.1.12. This system has the identical motherboard, but a faster K6 processor. Also, this system has had several different kernel builds done on it (ie is not pristine with the distribution kernel). When I install the 2.2.14 kernel with modules and then the 3.1.12 modules, I have the following results from dmesg:

Linux PCMCIA Card Services 3.1.12
  kernel build: 2.2.14 #2 Sun Mar 12 15:36:18 CST 2000
  options:  [pci] [cardbus] [pnp]
PCI routing table version 1.0 at 0xf0b40
  unknown PCI interrupt router 10b9:1533
PnP: PNP BIOS installation structure at 0xc00fcfb0
PnP: PNP BIOS version 1.0, entry at f0000:cfe0, dseg at f0000
Intel PCIC probe: 
  VIA VT83C469 ISA-to-PCMCIA at port 0x3e0 ofs 0x00
    host opts [0]: none
    host opts [1]: none
    ISA irqs (default) = 10 polling interval = 1000 ms

I have the PnP OS BIOS value set to no, and the secondary IDE controller disabled (the DC wants to use that). If I issue an lsmod command, it shows:

 Module                  Size  Used by
 ds                      6088   0  (unused)
 i82365                 21328   2 
 pcmcia_core            47712   0  [ds i82365]

Here is the portion of /var/log/messages that matches the boot messages shown above:

Mar 12 16:07:56 marvin pcmcia: Starting PCMCIA services:
Mar 12 16:07:56 marvin pcmcia:  modules
Mar 12 16:07:56 marvin kernel: Linux PCMCIA Card Services 3.1.12 
Mar 12 16:07:56 marvin kernel:   kernel build: 2.2.14 #2 Sun Mar 12 15:36:18 CST
 2000 
Mar 12 16:07:56 marvin kernel:   options:  [pci] [cardbus] [pnp] 
Mar 12 16:07:56 marvin kernel: PCI routing table version 1.0 at 0xf0b40 
Mar 12 16:07:56 marvin kernel:   unknown PCI interrupt router 10b9:1533 
Mar 12 16:07:56 marvin kernel: PnP: PNP BIOS installation structure at 0xc00fcfb
0 
Mar 12 16:07:56 marvin kernel: PnP: PNP BIOS version 1.0, entry at f0000:cfe0, d
seg at f0000 
Mar 12 16:07:56 marvin kernel: Intel PCIC probe:  
Mar 12 16:07:56 marvin kernel:   VIA VT83C469 ISA-to-PCMCIA at port 0x3e0 ofs 0x
00 
Mar 12 16:07:56 marvin kernel:     host opts [0]: none 
Mar 12 16:07:56 marvin kernel:     host opts [1]: none 
Mar 12 16:07:57 marvin kernel:     ISA irqs (default) = 10 polling interval = 10
00 ms 
Mar 12 16:07:56 marvin pcmcia:  cardmgr.
Mar 12 16:07:57 marvin rc: Starting pcmcia succeeded
Mar 12 16:07:56 marvin cardmgr[366]: starting, version is 3.1.12
Mar 12 16:07:57 marvin cardmgr[366]: open_sock(socket 0) failed: Permission deni
ed
Mar 12 16:07:57 marvin cardmgr[366]: no sockets found!
Mar 12 16:07:57 marvin cardmgr[366]: exiting

Finally, since this controller is a PnP device, I used pnpdump to build /etc/isapnp.conf that looks like this:

# Trying port address 0203
# Board 1 has serial identifier 21 05 00 00 00 18 30 21 59

# (DEBUG) (READPORT 0x0203) (ISOLATE PRESERVE) (IDENTIFY *) (VERBOSITY 2) (CONFLICT (IO FATAL)(IRQ FATAL)(DMA FATAL)(MEM FATAL)) # or WARNING

# Card 1: (serial identifier 21 05 00 00 00 18 30 21 59)
# Vendor Id VIA3018, Serial Number 83886080, checksum 0x21.
# Version 1.0, Vendor version 0.0
# ANSI string -->VIA PCMCIA CARD<--
#
# Logical device id PNP0e00
#     Device support I/O range check register
#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if required
# Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE VIA3018/83886080 (LD 0
#     Compatible device id PNP0e00
#     Logical device decodes 16 bit IO address lines
#         Minimum IO base address 0x03e0
#         Maximum IO base address 0x03e3
#         IO base alignment 2 bytes
#         Number of IO addresses required: 2
#  (IO 0 (SIZE 2) (BASE 0x03e2) (CHECK))
 (NAME "VIA3018/83886080[0]{VIA PCMCIA CARD     }")
  (ACT Y)
))
# End tag... Checksum 0x00 (OK)

# Returns all cards to the "Wait for Key" state (WAITFORKEY)

I commented out the (IO ...) line above because it seemed to always have problems checking the device range (causing isapnp to abort execution).

Obviously, the distribution RH kernel (2.2.12-20) has some option turned on that I am unaware of, or there is some configuration I have done incorrectly. Sorry for the length of this message; I just wanted to provide enough information to encourage someone knowledgeable to give me some pointers. I really need to have confidence I can build new kernels with the pcmcia services working as I want to put Linux on a PC/104 computer on my robot which will only have pcmcia periperhals.

Thanks, Duane duane@denton.com

[ Next-in-Thread ]  [ Next Message ] 

Messages Inline: [ 0 ]  [ 1 ] 

That's a new one

Re: Question: RH6.1 with 2.2.14 (Duane Gustavus)
Date: 2000, Mar 14
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I have not seen that error message before.

Could you try doing "strace -f cardmgr" and send me the output?  Were
you invoking cardmgr as root?  Is there anything else "odd" about this
system setup?

-- Dave

It was a filesystem permissions issue

Re: Question: RH6.1 with 2.2.14 (Duane Gustavus)
Date: 2000, Mar 15
From: David Hinds <dhinds@pcmcia.sourceforge.org>

The problem was that /var was mounted "nodev", and cardmgr attempts to
create a device file in /tmp, which was linked to /var/tmp.

I will either fix cardmgr to do this differently or at least document
the requirement in the man page.

-- Dave

Ok: Antec DataChute notes

Re: Question: RH6.1 with 2.2.14 (Duane Gustavus)
Date: 2000, Mar 15
From: Duane Gustavus duane

Hello,

I just spent a long weekend and more getting pcmcia services running on my RedHat Linux system using the 2.2.14 kernel and pcmcia-services 3.1.12. I thought I would relate a few issues that might be of help to others (a trail of crumbs in the darksome forest as it were).

I am using an Antec DataChute ISA-PCMCIA device in my desktop. This device uses a VIA VT83C469 chip which is evidently compatible with the i82365 (ie it seems to work with the flash card I am using). It also expects to be the secondary IDE controller, so you will need to disable the secondary IDE controller on your motherboard to make it happy (yes that means you will have to move any IDE devices currently on the secondary channel off). My /etc/sysconfig/pcmcia file looks like:

 PCMCIA=yes
 PCIC=i82365
 PCIC_OPTS="irq_list=10,11 has_ring=0"
 CORE_OPTS=
 CARDMGR_OPTS=

The PCIC_OPTS line is set to the IRQs I want the adapter to use (in other words, you may well wish to change this). This is a PnP board, so while I set my BIOS to answer NO to the PnP OS question, I built an entry for isapnp.conf using pnpdump. I was able to comment out the IO line because it was causing problems during boot. If you don't use a PnP card, you will avoid this hassle.

Through the good offices of David Hinds, the last problem squashed was the mount specification for /tmp. I always use a separate partition for /tmp with the nosuid and nodev mount options for security purposes. The cardmgr makes a couple of device files in /tmp which will of course fail if you use the nodev option. David is considering the relocation of those files, but if you use the nodev mount option, you will need to make sure cardmgr doesn't try to open it's device files in that particular partition.

I would like to thank David Hinds for his speedy response to my m'aidez, not to mention the quick isolation of my problem. I hope these notes are of use to the next person down this path.

Cheers, Duane

RH6.1 with 2.2.14


[ Add Message ]  to: "RH6.1 with 2.2.14"

[ Members ]  [ Subscribe ]  [ Admin Mode ] 
[ Show Frames ]  [ Help for HyperNews at pcmcia-cs.sourceforge.net 1.10 ]