Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Ubuntu Help > How Can we manually add hardware in linux

Forgot Password?
 Ubuntu Help   Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 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
dinkyverma279 is offline  


Reply With Quote
Old 07-02-2009   #2 (permalink)
Linux Guru
 
reed9's Avatar
 
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?
reed9 is offline   Reply With Quote
Old 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.
dinkyverma279 is offline   Reply With Quote
Old 07-03-2009   #4 (permalink)
Linux Engineer
 
D-cat's Avatar
 
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.
__________________
You just WON the game!
D-cat is offline   Reply With Quote
Old 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
dinkyverma279 is offline   Reply With Quote
Old 07-04-2009   #6 (permalink)
Linux Engineer
 
D-cat's Avatar
 
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
__________________
You just WON the game!
D-cat is offline   Reply With Quote
Old 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.
HROAdmin26 is offline   Reply With Quote
Old 07-04-2009   #8 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Panther City, Tx
Posts: 4,059
Quote:
Originally Posted by HROAdmin26 View Post
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.
MikeTbob is offline   Reply With Quote
Old 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
dinkyverma279 is offline   Reply With Quote
Old 07-04-2009   #10 (permalink)
Linux Engineer
 
D-cat's Avatar
 
Join Date: Jan 2009
Location: Dover, NH
Posts: 1,432
Hehe, yep, it's a known bug. Blacklist the isp1761 module... or try running all updates before re-installing the card (might be fixed by now??)...

[regression] modprobe isp1760 triggers kernel oops during bootup in 2.6.27-11
__________________
You just WON the game!
D-cat is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:14 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2