Next-in-Thread Next Message

Question 3.1.8 hangup on startup on Tosh Satellite 4030CDT 

Forum: PCMCIA on Toshiba laptops
Date: 1999, Dec 26
From: Honza Jirousek honzajirousek

Hi, 

I'm running kernel 2.2.12 and PCMCIA 3.1.8 on Satellite
4030CDT, the BIOS PCIC mode setting is set to "Automatic".
Same thing happened with 3.1.4, and not with 3.0.14. 

Up to yesterday I've been running fine with 3Com/Megahertz
3CXEM556 Ethernet/Modem combo card (note: this is *not* a
Cardbus card) in slot 0 (and for a short time before with no
cards, but that was on kernel 2.0.36 and pcmcia 3.0.9). Today
I started to play with my new cards, namely with Adaptec
APA-1480 SCSI and totaly non-name smartmedia (Olympus digital
camera memory) adapter reporting itself as "ATA/IDE Fixed
Disk". Now All these cards in all combinations seem to work
fine (I'll list some configs and logs below), so I tend to
believe they actually don't have much to do with my problem. 

The issue is that pcmci module has some problem loading, which
often results in system hangup on startup, but it also hangs
on /etc/rc.d/init.d/pcmcia stop; /etc/rc.d/init.d/pcmcia
start. The log says about this much when it hangs:

Dec 25 17:28:35 sara pcmcia: Starting PCMCIA services:
Dec 25 17:28:35 sara pcmcia:  modules

There is no special report to the console. Sometimes it gets
through and then everything is great, I can shuffle cards
around and everything. I tried to test it and find some
pattern, but going through these reboots with 4G disk fsck is
long and painful, so I can only offer two incomplete theories:

- it passes on 1 of every 6 attempts
- it passes when the 3com card is in slot 0, but not when it
is in slot 1 or both slots are empty or Adaptec is in slot0
and 3com is in slot 1

I'd like to know what can I do to either fix this, or help
debugging the problem (e.g. compile debugging in and give it a
try (how ?), retrieve kernel dump message (how), give it some 
testing according to better informed methodology. 

Here is a log of succesfull startup:

--------------------------------------------------------------
Dec 25 22:22:13 sara kernel: Linux PCMCIA Card Services 3.1.8 
Dec 25 22:22:13 sara kernel:   kernel build: 2.2.12 #6 Pá pro 3 23:46:35 EST 1999 
Dec 25 22:22:13 sara kernel:   options:  [pci] [cardbus] [apm] 
Dec 25 22:22:13 sara kernel: Intel PCIC probe:  
Dec 25 22:22:13 sara kernel:   Toshiba ToPIC97 PCI-to-CardBus at bus 0 slot 2, mem 0x68000000, 2 sockets 
Dec 25 22:22:13 sara kernel:     host opts [0]: [slot 0xf0] [ccr 0x10] [cdr 0x86] [rcr 0x02] [no pci irq] [lat 168/176] [bus 20/20] 
Dec 25 22:22:13 sara kernel:     host opts [1]: [slot 0xf0] [ccr 0x20] [cdr 0x86] [rcr 0x02] [no pci irq] [lat 168/176] [bus 21/21] 
Dec 25 22:22:13 sara kernel:     ISA irqs (default) = 3,5 polling interval = 1000 ms 
Dec 25 22:22:14 sara pcmcia:  cardmgr.
Dec 25 22:22:14 sara rc: Starting pcmcia succeeded
Dec 25 22:22:14 sara cardmgr[273]: starting, version is 3.1.8
Dec 25 22:22:14 sara cardmgr[273]: config error, file './config.opts' line 14: syntax error
Dec 25 22:22:14 sara cardmgr[273]: watching 2 sockets
Dec 25 22:22:14 sara kernel: cs: IO port probe 0x1000-0x17ff: clean. 
Dec 25 22:22:14 sara kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x378-0x37f 0x4d0-0x4d7 
Dec 25 22:22:14 sara cardmgr[273]: could not adjust resource: IO ports 0x120-0x12f: Device or resource busy
Dec 25 22:22:14 sara cardmgr[273]: could not adjust resource: IO ports 0x2f8-0x2ff: Device or resource busy
Dec 25 22:22:14 sara inet: inetd startup succeeded
Dec 25 22:22:14 sara cardmgr[273]: initializing socket 0
Dec 25 22:22:14 sara kernel: cs: memory probe 0x0d0000-0x0dffff: clean. 
Dec 25 22:22:14 sara cardmgr[273]: socket 0: 3Com/Megahertz 3CXEM556 Ethernet/Modem
Dec 25 22:22:14 sara sshd: Starting sshd: 
Dec 25 22:22:14 sara cardmgr[273]: executing: 'insmod /lib/modules/2.2.12/pcmcia/3c589_cs.o irq_list=3'
Dec 25 22:22:14 sara cardmgr[273]: executing: 'insmod /lib/modules/2.2.12/pcmcia/serial_cs.o irq_list=3'
Dec 25 22:22:14 sara kernel: eth0: 3Com 3c589, io 0x300, irq 3, hw_addr 00:00:86:30:9C:B7 
Dec 25 22:22:14 sara kernel:   8K FIFO split 5:3 Rx:Tx, auto xcvr 
Dec 25 22:22:14 sara kernel: tty01 at 0x02f8 (irq = 3) is a 16550A 
Dec 25 22:22:14 sara cardmgr[273]: executing: './network start eth0'
Dec 25 22:22:15 sara cardmgr[273]: + usage: ifup <device name>
Dec 25 22:22:15 sara cardmgr[273]: start cmd exited with status 1
Dec 25 22:22:15 sara sshd: sshd
Dec 25 22:22:15 sara cardmgr[273]: executing: './serial start ttyS1'
--------------------------------------------------------------

just in case, here is how APA and memory cards are detected when inserted

--------------------------------------------------------------
Dec 25 22:22:41 sara cardmgr[273]: initializing socket 0
Dec 25 22:22:41 sara kernel: ROM image dump: 
Dec 25 22:22:41 sara kernel:   image 0: 0x000000-0x0001ff, signature PCIR 
Dec 25 22:22:41 sara kernel:   image 1: 0x000200-0x0003ff, signature PCIR 
Dec 25 22:22:41 sara cardmgr[273]: socket 0: Adaptec APA-1480 SCSI Host Adapter
Dec 25 22:22:41 sara cardmgr[273]: executing: 'insmod /lib/modules/2.2.12/pcmcia/cb_enabler.o'
Dec 25 22:22:41 sara cardmgr[273]: executing: 'insmod /lib/modules/2.2.12/pcmcia/apa1480_cb.o'
Dec 25 22:22:46 sara kernel: cs: cb_config(bus 20) 
Dec 25 22:22:46 sara kernel:   fn 0 bar 1: io 0x1000-0x10ff 
Dec 25 22:22:46 sara kernel:   fn 0 bar 2: mem 0xa0030000-0xa0030fff 
Dec 25 22:22:46 sara kernel:   fn 0 rom: mem 0xa0020000-0xa002ffff 
Dec 25 22:22:46 sara kernel: cs: cb_enable(bus 20) 
Dec 25 22:22:46 sara kernel:   bridge io map 0 (flags 0x21): 0x1000-0x10ff 
Dec 25 22:22:46 sara kernel:   bridge mem map 0 (flags 0x1): 0xa0020000-0xa0030fff 
Dec 25 22:22:46 sara kernel: apa1480_attach(bus 20, function 0) 
Dec 25 22:22:46 sara kernel: (scsi1) <Adaptec PCMCIA SCSI controller> found at PCI 0/0 
Dec 25 22:22:46 sara kernel: (scsi1) Narrow Channel, SCSI ID=7, 3/255 SCBs 
Dec 25 22:22:46 sara kernel: (scsi1) Downloading sequencer code... 413 instructions downloaded 
Dec 25 22:22:46 sara kernel: scsi1 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.20/3.2.4 
Dec 25 22:22:47 sara kernel:        <Adaptec PCMCIA SCSI controller> 
Dec 25 22:22:47 sara kernel: scsi : 2 hosts. 
Dec 25 22:22:47 sara kernel: (scsi1:0:3:0) Synchronous at 20.0 Mbyte/sec, offset 15. 
Dec 25 22:22:47 sara kernel:   Vendor: COMPAQ    Model: DCHS04Y           Rev: 5555 
Dec 25 22:22:47 sara kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02 
Dec 25 22:22:47 sara kernel: (scsi1:0:5:0) Synchronous at 10.0 Mbyte/sec, offset 15. 
Dec 25 22:22:47 sara kernel:   Vendor: YAMAHA    Model: CRW6416S          Rev: 1.0c 
Dec 25 22:22:47 sara kernel:   Type:   CD-ROM                             ANSI SCSI revision: 02 
Dec 25 22:22:47 sara kernel: Detected scsi disk sda at scsi1, channel 0, id 3, lun 0 
Dec 25 22:22:48 sara kernel: SCSI device sda: hdwr sector= 512 bytes. Sectors= 8386000 [4094 MB] [4.1 GB] 
Dec 25 22:22:48 sara kernel:  sda: sda1 < sda5 sda6 > 
Dec 25 22:22:48 sara kernel: Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0 
Dec 25 22:22:48 sara kernel: Detected scsi CD-ROM sr1 at scsi0, channel 0, id 0, lun 1 
Dec 25 22:22:48 sara kernel: Detected scsi CD-ROM sr2 at scsi0, channel 0, id 0, lun 2 
Dec 25 22:22:48 sara kernel: Detected scsi CD-ROM sr3 at scsi0, channel 0, id 0, lun 3 
Dec 25 22:22:48 sara kernel: Detected scsi CD-ROM sr4 at scsi0, channel 0, id 0, lun 4 
Dec 25 22:22:48 sara kernel: Detected scsi CD-ROM sr5 at scsi0, channel 0, id 0, lun 5 
Dec 25 22:22:48 sara kernel: Detected scsi CD-ROM sr6 at scsi0, channel 0, id 0, lun 6 
Dec 25 22:22:48 sara kernel: Detected scsi CD-ROM sr7 at scsi0, channel 0, id 0, lun 7 
Dec 25 22:22:48 sara kernel: Detected scsi CD-ROM sr8 at scsi1, channel 0, id 5, lun 0 
Dec 25 22:22:48 sara kernel: sr0: scsi3-mmc drive: 24x/24x xa/form2 cdda tray 
Dec 25 22:22:48 sara kernel: Uniform CDROM driver Revision: 2.55 
Dec 25 22:22:48 sara kernel: sr1: scsi3-mmc drive: 24x/24x xa/form2 cdda tray 
Dec 25 22:22:48 sara kernel: sr2: scsi3-mmc drive: 24x/24x xa/form2 cdda tray 
Dec 25 22:22:48 sara kernel: sr3: scsi3-mmc drive: 24x/24x xa/form2 cdda tray 
Dec 25 22:22:48 sara kernel: sr4: scsi3-mmc drive: 24x/24x xa/form2 cdda tray 
Dec 25 22:22:48 sara kernel: sr5: scsi3-mmc drive: 24x/24x xa/form2 cdda tray 
Dec 25 22:22:48 sara kernel: sr6: scsi3-mmc drive: 24x/24x xa/form2 cdda tray 
Dec 25 22:22:48 sara kernel: sr7: scsi3-mmc drive: 24x/24x xa/form2 cdda tray 
Dec 25 22:22:48 sara kernel: sr8: scsi3-mmc drive: 16x/16x writer cd/rw xa/form2 cdda tray 
Dec 25 22:22:48 sara kernel: VFS: Disk change detected on device sr(11,0) 
Dec 25 22:22:48 sara kernel: VFS: Disk change detected on device sr(11,1) 
Dec 25 22:22:48 sara kernel: VFS: Disk change detected on device sr(11,2) 
Dec 25 22:22:48 sara kernel: VFS: Disk change detected on device sr(11,3) 
Dec 25 22:22:49 sara kernel: VFS: Disk change detected on device sr(11,4) 
Dec 25 22:22:49 sara kernel: VFS: Disk change detected on device sr(11,5) 
Dec 25 22:22:49 sara kernel: VFS: Disk change detected on device sr(11,6) 
Dec 25 22:22:49 sara kernel: VFS: Disk change detected on device sr(11,7) 
Dec 25 22:22:55 sara kernel: VFS: Disk change detected on device sr(11,8) 
Dec 25 22:22:55 sara cardmgr[273]: executing: './scsi start sda'
Dec 25 22:22:56 sara cardmgr[273]: executing: './scsi start scd8'
Dec 25 22:22:56 sara cardmgr[273]: + open() failed: No such file or directory
--------------------------------------------------------------
Dec 25 20:14:29 sara cardmgr[273]: initializing socket 0
Dec 25 20:14:29 sara cardmgr[273]: socket 0: ATA/IDE Fixed Disk
Dec 25 20:14:29 sara cardmgr[273]: executing: 'insmod /lib/modules/2.2.12/pcmcia/ide_cs.o'
Dec 25 20:14:31 sara kernel: hde: , ATA DISK drive 
Dec 25 20:14:31 sara kernel: ide2 at 0x100-0x107,0x10e on irq 5 
Dec 25 20:14:31 sara kernel: hde: , 15MB w/0kB Cache, CHS=500/4/16 
Dec 25 20:14:31 sara kernel:  hde: hde1 
Dec 25 20:14:31 sara kernel: ide_cs: hde: Vcc = 5.0, Vpp = 0.0 
Dec 25 20:14:31 sara cardmgr[273]: executing: './ide start hde'
Dec 25 20:14:31 sara kernel: VFS: Disk change detected on device ide2(33,0) 
Dec 25 20:14:31 sara kernel:  hde: hde1 
Dec 25 20:14:31 sara kernel: hde: drive_cmd: status=0x51 { DriveReady SeekComplete Error } 
Dec 25 20:14:31 sara kernel: hde: drive_cmd: error=0x04 { DriveStatusError } 
Dec 25 20:14:38 sara kernel: VFS: Disk change detected on device ide2(33,1) 
Dec 25 20:14:38 sara kernel:  hde: hde1 
Dec 25 20:14:38 sara kernel:  hde: hde1 
--------------------------------------------------------------

and here is my /etc/pcmcia/config.opts (only now I noticed there is a syntax error in (exclude) port line):

--------------------------------------------------------------
#
# Local PCMCIA Configuration File
#
# System resources available for PCMCIA devices
#
include port 0x100-0x4ff, port 0x1000-0x17ff
include memory 0xc0000-0xfffff, memory 0xa0000000-0xa0ffffff
#
# Resources we should not use, even if they appear to be available
#
# First built-in serial port
#
exclude irq 4
port 0x3f8-0x3ff, port 0x3e8-03ef
#
# Second built-in serial port
#
reserve irq  3
include port 0x2f8-0x2ff, port 0x120-0x12f
#
# First built-in parallel port
#
exclude irq 7, irq 9
#
# Options for loadable modules
#
module "3c589_cs" opts "irq_list=3"
module "serial_cs" opts "irq_list=3"

--------------------------------------------------------------


Honza Jirousek <honza@ecn.cz>

Next-in-Thread Next Message

Messages Inline: 1 All Outline: 1 2 All

1. More more details by Honza Jirousek, 1999, Dec 28

Add Message to: "3.1.8 hangup on startup on Tosh Satellite 4030CDT"

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