LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   PC Cards not recognized on Portege/Amigo (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/pc-cards-not-recognized-on-portege-amigo-321097/)

Grampa 05-07-2005 04:27 PM

PC Cards not recognized on Portege/Amigo
 
I have an old Toshiba Portege 7020 (Win 98) on which I loaded Amigolinux 2.0, kernel 2.4.25, based on Slackware 9.1. I chose that distro because my floppy and CD drives are flaky. This is my first experience with Linux.

I can boot fine, and most things seem to work, but my PCMCIA slot does not recognize any cards (without that, the Toshiba is totally cut off from my other computers, the internet, etc., so it's difficult even to post error messages).

I think the core or socket driver may not be loading. I get the following error messages at bootup:

"can't synthesize pci hotplug events"
"can't synthesize root hub events"

I believe these messages are produced by /etc/hotplug/pci.rc and /etc/hotplug/usb.rc, respectively. When I look at those scripts, they both contain the following text (substitute "usb" for "pci" in usb.rc, and use the second error message above):

LISTER='type -p pcimodules
if [ $LISTER" = "" -o ! -f /proc/bus/pci/devices -o ! -x pci.agent ]; then echo $"** can't synthesize pci hotplug events"
return
fi

Both scripts also refer to a "FIXME" on 2.5 relating to /sys/bus/pci/devices or /sys/bus/usb/devices, the lspci command, and "pcimodules," which they warn may not exist. My version of Linux does not have those directories, the lspci command, or pcimodules.

I did look at /proc/bus/pci and /proc/bus/usb, which I believe are in ram. The /usb directory has a file for "devices" and "drivers," both of which appear to be empty. The /pci directory only has a file for "devices," also empty. I don't know what this means, but it leads me to suspect that the pci driver is not loading. FWIW, the USB port does appear to work, or at least light up.

It does appear that both PCMCIA sockets are recognized. They are correctly identified in /etc/sysconfig/hwconf, which reads as follows:

class: SOCKET
bus: PCI
detached: 0
driver: yenta_socket
desc: "Toshiba ToPIC97"
vendorID: 1179
subDeviceID: 0001
pciType: 1
pcibus: 0
pcidev: b
pcifn: 0

The second socket has an identical listing. I believe they are listed elsewhere as well (e.g., /boot/config.txt).

Other possibly relevant boot-up messages include the following, in order:

PCI: Cannot allocate resource region 4 of device 00:05.1
Limiting direct PCI/PCI transfers.

ppa: Version 2.07 (for Linux 2.4.x)
WARNING - no ppa compatible devices found

kmos: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno=2
kmos: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno=2
kmos: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno=2

proc on /proc type proc (rw)
mount: mount point /proc/bus/usb does not exist

** can't synthesize pci hotplug events

PCI: Found IRQ 11 for device 00:05.2
PCI: Sharing IRQ 11 with 00:0c.0
PCI: Sharing IRQ 11 with 00:0d.0 [I think these are the card slots]

**can't synthesize root hub events


I'm wondering whether the inability to allocate memory resource region 4 could be a factor. Also whether the lack of a mount point at /proc/bus/usb could be a factor.

Anyway, I apologize for the very long post, but I though the information might save a lot of questions. I also want to make clear that I worked pretty hard to figure this out. If anyone has a suggestion of things to check or other steps to take, I'd appreciate the input. I am a total novice where Linux is concerned, but this has been a learning experience.

kaz2100 05-14-2005 08:36 PM

pcimodules is *NOT* in pciutils 2.1.11.

Check if
distro.ibiblio.org/pub/linux/distributions/ uos/sputnik/patches/pcimodules-pciutils-2.1.8.diff
helps.

Grampa 05-15-2005 08:55 PM

Thanks. I will look at this, kaz2100. But my distro does not have pcimodules, pciutils, OR lspci, so I doubt it will work.

I have made some progress since my last post, however. Perhaps someone can offer a suggestion. I found that the modules were not loading automatically.

Specifically, I needed first to change the bios setting in my laptop from PCIC to 16 bit/Cardbus or Automatic, then use modprobe to load yenta_socket (which in turn loads pcmcia_core), and finally use modprobe to load da. THEN, if I insert a 3com575 card into the slot, it automatically loads 3c59x, and the card is recognized as an eth0. This is a great help, because now I can use this card to connect to my network and to the internet.

However, other cards are still not properly recognized. Specifically, I want to use my Orinoco WiFi card. I have tried using modprobe to load orinoco_cs, but it does not turn the card on, and the device is not found by ifconfig. This is strange, because I can run Kudzu, and it sees an Orinoco card in the slot. It is just not configuring that card so that it is recognized as eth0 or whatever.

If anyone has any ideas, I would appreciate the help.

kaz2100 05-16-2005 09:05 AM

pciutil, I found at www.debian.org (actually, I am using Debian woody.)

pcimodules does not exist in that package. :cry:

I found pcimoduels in Slackware 10.1 package. ;)

However, I cannot find its source.:confused:

I only found diff file, which looked similar to the one I posted :(

:study:
:Pengy:

But:
With 2.4.29 kernel, it seems to be okey without pcimodules, (although hotplug complains, it is not an error):eek:

Also:
I have same problem as you have, module does not load automatically. I have to modprobe everytime.:scratch:


All times are GMT -5. The time now is 10:05 AM.