| |
07-02-2009
|
#1 (permalink)
| | Just Joined!
Join Date: Jun 2009
Posts: 21
| How Can we manually add hardware in linux Hi,
Suppose we have a PCI card that we have to add in PCI slot of motherboard and let linux does not detect this hardware, How can we manually add the hardware in linux? Can somebody explain in detail?
Regards,
dinky |
|
|
07-02-2009
|
#2 (permalink)
| | Linux Guru
Join Date: Feb 2009 Location: Boston, MA
Posts: 2,047
| You're going to have to be more specific. Is this a wireless card? A graphics card? How do you know it's not being detected? Did you run lspci? |
| |
07-02-2009
|
#3 (permalink)
| | Just Joined!
Join Date: Jun 2009
Posts: 21
| Hi,
Yes i did lspci. It is not detecting this card. I have USB Device controller PCI card. When i insert this in PCI slot and restart ubuntu linux, it is hanging while booting as it is not detecting this hardware. If i insert the card after booting and then run lspci, it does not detect the hardware.
Card is detected in Ubuntu 8.10 version but it is not detected in 9.04 version. I have the source code of drivers, but it will work only when linux detects the hardare.
So can you provide how can i add manually hardware to linux if it does not detect?
Regards. |
| |
07-03-2009
|
#4 (permalink)
| | Linux Engineer
Join Date: Jan 2009 Location: Dover, NH
Posts: 1,432
| PCI itself wasn't made to be hot-pluggable. If the card hasn't been initialized by the BIOS at boot, then it will not be seen by any operating system.
If you know the module that's supposed to be loading and is likely locking up the system at boot, you can blacklist it before inserting the card, then manually load the module after the rest of the system has booted. If it still locks up, you can try to compile a new one from your source and load that. If even that still fails, you may have to backtrack to 8.04 (LTS) to make it work right... but let's not jump too far just yet. |
| |
07-04-2009
|
#5 (permalink)
| | Just Joined!
Join Date: Jun 2009
Posts: 21
| Hi,
As you said that "PCI itself wasn't made to be hot-pluggable", But if we see in kernel .config fie there are following config options
#
# PCI Hotplug Support
#
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_FAKE is not set
CONFIG_HOTPLUG_PCI_COMPAQ=m
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
# CONFIG_HOTPLUG_PCI_ACPI is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
CONFIG_HOTPLUG_PCI_PCIE=m
CONFIG_HOTPLUG_PCI_PCIE_POLL_EVENT_MODE=y
CONFIG_HOTPLUG_PCI_SHPC=m
CONFIG_HOTPLUG_PCI_SHPC_POLL_EVENT_MODE=y
Do you think that PCI is not hot pluggable? I tried to manually load the module, the problem is pci driver is not probing the detection of USB device Controller PCI card to the USB device controller PCI driver when it is inserted in the slot may be it is not initialized by bios.
but are u sure PCI is not hot pluggable?
regards,
dinky |
| |
07-04-2009
|
#6 (permalink)
| | Linux Engineer
Join Date: Jan 2009 Location: Dover, NH
Posts: 1,432
| Certain devices that run through a PCI (like PCMCIA) may be hot pluggable since the actual PCI card would still have been addressed prior to boot. PCI operates at a fairly low level in the hardware tree, so even if your BIOS is set up as "Plug and Play OS" (which is the setting that hands the PCI Bus control over the OS, thus a requirement for hotplugging), hotplugging a PCI card after boot presents still the problem how is this card going to be addressed if the OS doesn't already know it's there... since it wasn't initialized by the BIOS, a lspci will return nothing. The OS would have somehow be alerted that the card was installed then send an init to the slot to wake up the card (okay, I'm using bad terms here, but I'm just trying to get a point through), then the OS can determine the card and assign it appropriate addresses and inturrupts. I gather that ACPI is also involved in controlling the the slots, so that'll have to be running.
It is possible depending on your chipset, just not by original design. Things have to take a different path, and to work automagically, the bus has to be polled every so often. I found some info and tools that might be of use: Verify that the Linux, hot-plug PCI tools are installed Linux PCI Hotplug driver stuff
For eeepc sets (still useful info): mjg59: Adventures in PCI hotplug |
| |
07-04-2009
|
#7 (permalink)
| | Linux Engineer
Join Date: Nov 2007
Posts: 1,120
| Unless you paid big money for *server-class* hardware that specifically supports PCI hot-swapping, *no*, you cannot insert PCI cards while the machine is already running. And if you do, you risk frying that card and/or the bus. |
| |
07-04-2009
|
#8 (permalink)
| | Trusted Penguin
Join Date: Apr 2006 Location: Panther City, Tx
Posts: 4,059
| Quote:
Originally Posted by HROAdmin26 Unless you paid big money for *server-class* hardware that specifically supports PCI hot-swapping, *no*, you cannot insert PCI cards while the machine is already running. And if you do, you risk frying that card and/or the bus. | I was thinking the same thing, that you'd fry the machine into the next decade but I wanted to here it from someone else. Thanks HROAdmin26.
__________________
I do not respond to private messages asking for help.
Please keep it on the forums only.
|
| |
07-04-2009
|
#9 (permalink)
| | Just Joined!
Join Date: Jun 2009
Posts: 21
| Hi,
As you said PCI card is initialized by BIOS. But if i insert the Net 2280 PCI card, it is detected during linux boots. But if i insert ISP1761 USB device controller PCI card and restart linux, as i told earlier it hangs. Do you mean that i need to do some setting in BIOS in order to get my card detected. Because Net2280 card is detected but why ISP 1761 card is not detected and other thing is if i run it (ISP1761 on same machine) on Red Hat linux, it detects this card But as you said PCI card is initialized by BIOS. Do i need to do some BIOS setting in order to get it detected or which part i need to change in order to get my hardware detected ?
Regards
dinky |
| |
07-04-2009
|
#10 (permalink)
| | Linux Engineer
Join Date: Jan 2009 Location: Dover, NH
Posts: 1,432
| |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |