Jasper Lievisse Adriaanse wrote:
On Tue, 21 Mar 2006 23:26:05 +0100
Matthieu Herrb <[EMAIL PROTECTED]> wrote:

Hi,

I recently had to produce 'lspci -v' output for a machine running OpenBSD for some vendor. So I ported pciutils... Here's the result. It has some problems on macppc and sparc64 because of limitations in our /dev/pci implementation. I hope to be able to fix that in the future.

--
Matthieu Herrb


--- Makefile.orig       Wed Mar 22 08:44:03 2006
+++ Makefile    Wed Mar 22 08:44:29 2006
@@ -1,12 +1,8 @@
-# $OpenBSD: Makefile.template,v 1.46 2005/11/12 00:07:22 sturm Exp $
+# $OpenBSD$

CVS will take care of that on commit.

NOT_FOR_ARCHS= sparc zaurus COMMENT= "PCI bus configuration register access tools"
-
-#
-# What port/package will be created
-#

Oops thanks.

 DISTNAME=              pciutils-2.2.1
 CATEGORIES=            sysutils

Apart from that, this is what I get on sgi:

$ lspci
pcilib: Cannot open /dev/pci
lspci: Cannot find any working access method.

# /usr/local/sbin/lspci lspci: obsd_init: /dev/pci open failed

# file /dev/pci
/dev/pci: character special (29/0)


Yes, you need a kernel with option USER_PCICONF, which is not in sgi's GENERIC.

--
Matthieu Herrb

Reply via email to