system freeze at boot ond cardmgr


Forum: Laptops
Topic: system freeze at boot ond cardmgr
started by: seuchato

Posted by seuchato on Dec. 07 2006,14:20
Hi there
I got these sweet single board computers:
- AMD Am5x86-WB stepping 04, 133 MHz, 32MB Ram
- I installed a PC104 PCMCIA module on it, to add some more functionality.
When I boot with DSL 3, it just goes all fine until

PCMCIA detected, starting cardmgr

Then reboots. There are some posts around which describe similar problems. However their solution is not applicable in this case.

I can do the following on command line and reproduce the error systematically:
Quote
insmod pcmcia_core
insmode i82365
insmod ds
lsmod
Module                  Size  Used by    Not tainted
ds                      6228   0  (unused)
i82365                 12388   2
pcmcia_core            39460   0  [ds i82365]
af_packet              13672   0  (autoclean)
...
dmesg
...
eth0: NE2000 found at 0x220, using IRQ 5.
Linux Kernel Card Services 3.1.22
 options:  [pci] [cardbus] [pm]
Intel ISA PCIC probe:
 Ricoh RF5C296/396 ISA-to-PCMCIA at port 0x3e0 ofs 0x00, 2 sockets
   host opts [0]: none
   host opts [1]: none
   ISA irqs (scanned) = 3,4,7,9,10,11,15 status change on irq 15

pcic_probe
PCI bridge probe: not found.
Intel PCIC probe: not found.
Databook TCIC-2 probe: not found.
cardmgr -v
cardmgr[611]: watching 2 sockets


with that it reboots.

So it detects the right pc104 pcmcia controller. IRQS look OK to me as there are (currently) no RS232/LPT ports activated.

Do I need yet other modules before I cand invoke cardmgr?
What else?

greets chris

Posted by roberts on Dec. 07 2006,22:55
Does the boot option pci=assign-busses help?

Have you tried some of these other boot time options:

pnpbios=off
pci=bios

Are you sure no irq conflict?
one way to check is with
dmesg | grep -i irq

Posted by seuchato on Dec. 08 2006,20:08
Hi roberts

Thanks for your reply, here are the results from your suggestions:
First I tested the options you suggetsted isolated, one by one

>Does the boot option pci=assign-busses help?
No it did not
>Have you tried some of these other boot time options:
>pnpbios=off
neither
>pci=bios
neither

>Are you sure no irq conflict?
pretty much yes, see also below

>one way to check is with
>dmesg | grep -i irq
Quote

ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
ne.c: ISAPnP reports Generic PNP at i/o 0x220, irq 5.
eth0: NE2000 found at 0x220, using IRQ 5.
   ISA irqs (scanned) = 3,4,7,9,10,11,15 status change on irq 15


here are the kernel options and combinations I tested:
Quote

#Not working:
#kernel /boot/linux24 root=/dev/hda2 quiet vga=normal noacpi noscsi 3 frugal
#kernel /boot/linux24 root=/dev/hda2 quiet vga=normal noacpi noscsi pci=assign-busses 3 frugal
#kernel /boot/linux24 root=/dev/hda2 quiet vga=normal noacpi noscsi pnpbios=off 3 frugal
#kernel /boot/linux24 root=/dev/hda2 quiet vga=normal noacpi noscsi pci=bios 3 frugal
kernel /boot/linux24 root=/dev/hda2 quiet vga=normal noacpi noscsi pci=bios pci=assign-busses pnpbios=off 3 frugal

all above: no success :-[
this one boots actually
Quote

kernel /boot/linux24 root=/dev/hda2 quiet vga=normal noacpi noscsi 3 nopcmcia frugal


This is my /etc/pcmcia/config.opts, I left /etc/pcmcia/config untouched
Quote

cat /etc/pcmcia/config.opts
#


include port 0x100-0x4ff, port 0x800-0x8ff, port 0xc00-0xcff
include memory 0xc0000-0xfffff
include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff


include port 0xa00-0xaff


exclude irq 4
exclude irq 5
exclude irq 7

if I do
Quote

insmod pcmcia_core
insmod i82365

dmesg lists above output still showing irq 4 and 7. Is that right?

Posted by seuchato on Dec. 11 2006,23:02
Hi there

Got it resolved, thought it was worth while to feed back my experiences:

Your friends are:

tataaa:

Quote

insmod pcmcia_core
insmod i82365
dmesg


After insmod i82365, demsg will show you what  ports it has used. Before you continue, edit your /etc/pcmcia/config.opts correspondingly. That means :

- set ports
- memory
- in / exclude irqs accordingly

HTH
chris

Posted by edmastro on Jan. 03 2007,19:32
Hi Chris,

I am having the same problem that you were having by not being able to boot with PCMCIA hardware detection.  I can boot fine with the dsl nopcmcia commandline option, however my NIC is a pcmcia device so I need DSL to detect my NIC so i can enable networking, etc.  I am kind of a linux noob so i was hoping that you could describe in just a little bit more detail how you figured out which ports are being used and how you edited your /etc/pcmcia/config.opts file.  

Entering
Code Sample
dmesg | grep -i irq

gets me:

Code Sample

ACPI:  IRQ9 SCI: Edge set to Level Trigger.
ACPI:  PCI Interrupt Link [LNKA] (IRQs 9 10 *11)
ACPI:  PCI Interrupt Link [LNKB] (IRQs 5 *7)
ACPI:  PCI Interrupt Link [LNKC] (IRQs 9 10 11)
ACPI:  PCI Interrupt Link [LNKD] (IRQs 5 7 *10 11)
ACPI:  PCI Interrupt Link [LNKD] enabled at IRQ 10
ACPI:  PCI Interrupt Link [LNKA] enabled at IRQ 11
ACPI:  PCI Interrupt Link [LNKB] enabled at IRQ 5
PCI:  Using ACPI for IRQ routing
ICH2M: not 100% native mode: will probe irqs later
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
usb-uhci.c: USB UHCI at I/O 0xdce0, IRQ 10
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
parport0: irq 7 detected
maestro3: Configuring ESS Maestro3(i) found at IO 0xEC00 IRQ 5


This is what my /etc/pcmcia/config.opts file looks like:
Code Sample

include port 0x100-0x4ff , port 0x800-0x8ff, port 0xc00-0xcff
include memory 0xc000-0xfffff
include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff

include port 0xa00-0xaff

exclude irq 4
exclude irq 7


Any help is GREATLY appreciated!!! Thanks in advance!  :)

Posted by seuchato on Jan. 07 2007,19:46
Dear edmastr

In addition to my previous post my suggestion is you do have your port and memory statements wrong in  /etc/pcmcia/config.opts.

I had one system where DSL booted OK but no cards detected. Finally proofed to be that the right memery area was not included (IBM TP240). In my industrial single board PCs (SBC) I had both port an memory wrong. So far I did not run into IRQ problemns though. Should you have a (arrgh) win95 or later installation at hand that works with your hardware, it can give you hints hat memory and port ranges you should include in  /etc/pcmcia/config.opts. That solved or at leasted shortened the seeking on one of my SBCs a great deal.

definetly: if your hardware is supported by the kernel, you willl be able to use it as soon as you set the  /etc/pcmcia/config.opts right.

When the system finally boots. cardctl info should indicate the type of cards detected. after that you will still require to set up your nic.

HTH
Chris

Posted by edmastro on Jan. 08 2007,22:14
Thanks for the info, Chris!

I got things to work out, and in case anyone else runs into this problem, here is how I solved it.

I found another < website > where a guy was trying to install a Debian-based Linux distro on a newer Dell machine and to get wireless to work via PCMCIA.  I followed what he did and this is what I ended up with.

Edit /etc/pcmcia/config.opts file to not include port 0x800-0x8ff.  It should look like this:

Code Sample

#include port 0x100-0x4ff , port 0x800-0x8ff, port 0xc00-0xcff
include port 0x100-0x4ff, port 0xc00-0xcff
include memory 0xc000-0xfffff
include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff

include port 0xa00-0xaff

exclude irq 4
exclude irq 7



Then, I edited /etc/default/pcmcia so that it looks like this:

Code Sample

PCMCIA=yes
PCIC=i82365
PCIC_OPTS=do_scan=0
CORE_OPTS=
CARDMGR_OPTS=-f


I then rebooted with PCMCIA hardware detection (switched on by default) and it DIDN'T freeze when trying to run cardmgr!!

Now I just have to figure out how to load a driver... (I am definitely a noob  :p )

Hope that helps!!

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.