PCI Utilities Package (including lspci) for Bering-uClibc 3.x

View: New views
4 Messages — Rating Filter:   Alert me  

PCI Utilities Package (including lspci) for Bering-uClibc 3.x

by davidMbrooke-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Recently I have been trying to get an 802.11g PCI card working with
Bering-uClibc and I found it difficult to work out whether I had the
wrong drivers or whether the card was simply not recognized by my
hardware. (It turned out to be the latter.) On any other Linux
distribution I would have used the "lspci" command but I could not find
a version of this for Bering-uClibc. I therefore created a package
myself from the sources at http://mj.ucw.cz/pciutils.html 

The package is pciutils.lrp and it is available in my LEAF "devel"
directory on SourceForge:
http://leaf.cvs.sourceforge.net/viewvc/leaf/devel/davidmbrooke/bin/packages/uclib-0.9/28/pciutils.lrp 

Package pciutils.lrp includes the command "lspci" as well as "setpci".
It is large (approx 213KB) and relies on libz.lrp (23KB) but it might be
useful for debugging PCI problems. Most of the size is due to the data
file (pci.ids.gz) so if you know which hardware you are expecting to
find you could perhaps install a cut-down pci.ids.gz file.

I compiled the code against Bering-uClibc 3.1.10beta3 but I think it
should work on any Bering-uClibc 3.x release. I have done some testing
with "lspci" and it seems to work OK for me. I have *not* tested
"setpci" at all.


For reference, I found lspci.lrp for older LEAF (non-uClibc)
installations here: http://fritzfam.com/brad/leaftmp/ (mentioned in a
2002 posting to this mailing list).

davidMbrooke



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@...
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Re: PCI Utilities Package (including lspci) for Bering-uClibc 3.x

by Dillabough, Dave :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When I run into a similar situation (trying to get new hardware/drivers working) I usually boot up a LiveCD version of Linux and see what it takes to make the hardware work. Once I know which drivers are needed and have verified that the hardware works etc. I can switch to Bering check that the drivers exist and load the appropriate modules with a lot less futzing around.

-----Original Message-----
From: davidMbrooke [mailto:dmb.leaf-user@...]
Sent: Wednesday, July 29, 2009 12:52 PM
To: leaf-user
Subject: [leaf-user] PCI Utilities Package (including lspci) for Bering-uClibc 3.x


Recently I have been trying to get an 802.11g PCI card working with
Bering-uClibc and I found it difficult to work out whether I had the
wrong drivers or whether the card was simply not recognized by my
hardware. (It turned out to be the latter.) On any other Linux
distribution I would have used the "lspci" command but I could not find
a version of this for Bering-uClibc. I therefore created a package
myself from the sources at http://mj.ucw.cz/pciutils.html 

The package is pciutils.lrp and it is available in my LEAF "devel"
directory on SourceForge:
http://leaf.cvs.sourceforge.net/viewvc/leaf/devel/davidmbrooke/bin/packages/uclib-0.9/28/pciutils.lrp 

Package pciutils.lrp includes the command "lspci" as well as "setpci".
It is large (approx 213KB) and relies on libz.lrp (23KB) but it might be
useful for debugging PCI problems. Most of the size is due to the data
file (pci.ids.gz) so if you know which hardware you are expecting to
find you could perhaps install a cut-down pci.ids.gz file.

I compiled the code against Bering-uClibc 3.1.10beta3 but I think it
should work on any Bering-uClibc 3.x release. I have done some testing
with "lspci" and it seems to work OK for me. I have *not* tested
"setpci" at all.


For reference, I found lspci.lrp for older LEAF (non-uClibc)
installations here: http://fritzfam.com/brad/leaftmp/ (mentioned in a
2002 posting to this mailing list).

davidMbrooke



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@...
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@...
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Re: PCI Utilities Package (including lspci) for Bering-uClibc 3.x

by n22e113 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> When I run into a similar situation (trying to get new hardware/drivers working) I usually boot up a LiveCD version of Linux and see what it takes to make the hardware work. Once I know which drivers are needed and have verified that the hardware works etc. I can switch to Bering check that the drivers exist and load the appropriate modules with a lot less futzing around.
>
Indeed! I use Finnix: http://www.finnix.org/
Highly recommended!


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@...
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Re: PCI Utilities Package (including lspci) for Bering-uClibc 3.x

by Erich Titl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

Dillabough, Dave wrote:
> When I run into a similar situation (trying to get new hardware/drivers working) I usually boot up a LiveCD version of Linux and see what it takes to make the hardware work. Once I know which drivers are needed and have verified that the hardware works etc. I can switch to Bering check that the drivers exist and load the appropriate modules with a lot less futzing around.

Don't forget that there are embedded patforms that don't have the luxury
of a CDROM drive and a video card. A serial console and CF may be the
best you can get.

cheers

Erich



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@...
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/