[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LSPCI shows network card, but the card refuses to come up



Alberto Fuentes wrote:
> for the shake of completesness

I commend your thoroughness.  But...

> lspci -v | grep -A5 -i eth

But why did you stop at five lines?  Aren't most network devices going
to print more lines than that?  And it misses the "kernel driver in
use" line which is useful information.

Example:

  root@fury:~# lspci -v | perl -00 -ne 'm/eth/i && print'
  3f:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755 Gigabit Ethernet PCI Express (rev 02)
          Subsystem: Hewlett-Packard Company Device 280c
          Flags: bus master, fast devsel, latency 0, IRQ 28
          Memory at e0400000 (64-bit, non-prefetchable) [size=64K]
          Expansion ROM at <ignored> [disabled]
          Capabilities: [48] Power Management version 3
          Capabilities: [50] Vital Product Data
          Capabilities: [58] Vendor Specific Information: Len=78 <?>
          Capabilities: [e8] MSI: Enable+ Count=1/1 Maskable- 64bit+
          Capabilities: [d0] Express Endpoint, MSI 00
          Capabilities: [100] Advanced Error Reporting
          Capabilities: [13c] Virtual Channel
          Capabilities: [160] Device Serial Number 00-1b-78-ff-fe-b0-a3-14
          Capabilities: [16c] Power Budgeting <?>
          Kernel driver in use: tg3

  root@fury:~# lspci -v | grep -A5 -i eth
  3f:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755 Gigabit Ethernet PCI Express (rev 02)
          Subsystem: Hewlett-Packard Company Device 280c
          Flags: bus master, fast devsel, latency 0, IRQ 28
          Memory at e0400000 (64-bit, non-prefetchable) [size=64K]
          Expansion ROM at <ignored> [disabled]
          Capabilities: [48] Power Management version 3

> or the even easier
> lspci -v | grep -5 -i eth

Can't leave off the '-A' --after-context part since otherwise -NUM is
the same as --context not --after-context.

  root@fury:~# lspci -v | grep -5 -i eth
          Capabilities: [78] Express Endpoint, MSI 00
          Capabilities: [100] Virtual Channel
          Capabilities: [128] Power Budgeting <?>
          Kernel driver in use: nouveau

  3f:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755 Gigabit Ethernet PCI Express (rev 02)
          Subsystem: Hewlett-Packard Company Device 280c
          Flags: bus master, fast devsel, latency 0, IRQ 28
          Memory at e0400000 (64-bit, non-prefetchable) [size=64K]
          Expansion ROM at <ignored> [disabled]
          Capabilities: [48] Power Management version 3

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: