Tiny Core Extensions > TCE Bugs

lshw does not show product or vendor information

(1/4) > >>

GNUser:
Hi, Rich. I just wanted to point out that the latest  lshw  in the TCL11 x86_64 and TCL10 x86 repos is not showing the "product" and "vendor" lines as expected.

These are the expected output lines:
  description: foo
  product: bar
  vendor: baz
  physical id: bang

These are the acual output lines:
  description: foo
  physical id: bang

For example, this is the actual output when using  lshw  on TCL11 64:

--- Code: ---$ sudo /usr/local/sbin/lshw -c network
  *-network                 
       description: Ethernet interface
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: eth0
       version: 03
       serial: 00:1f:16:17:f0:da
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=1.8-3 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:29 memory:e1a00000-e1a1ffff memory:e1a24000-e1a24fff ioport:3000(size=32)
  *-network
       description: Wireless interface
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlan0
       version: 01
       serial: 24:fd:52:18:5b:e5
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=5.4.3-tinycore64 firmware=N/A ip=10.1.86.254 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:17 memory:e1900000-e191ffff memory:e1920000-e192ffff
  *-network DISABLED
       description: Ethernet interface
       physical id: 1
       logical name: dummy0
       serial: 46:e9:67:5b:59:d2
       capabilities: ethernet physical
       configuration: broadcast=yes driver=dummy driverversion=1.0

--- End code ---
But this is the expected output (which is what I see when I use a homebrewed portable version of lshw):

--- Code: ---$ sudo /opt/bin/lshw -c network
  *-network                 
       description: Ethernet interface
       product: 82567LM Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: eth0
       version: 03
       serial: 00:1f:16:17:f0:da
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=1.8-3 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:29 memory:e1a00000-e1a1ffff memory:e1a24000-e1a24fff ioport:3000(size=32)
  *-network
       description: Wireless interface
       product: AR93xx Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlan0
       version: 01
       serial: 24:fd:52:18:5b:e5
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=5.4.3-tinycore64 firmware=N/A ip=10.1.86.254 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:17 memory:e1900000-e191ffff memory:e1920000-e192ffff
  *-network DISABLED
       description: Ethernet interface
       physical id: 1
       logical name: dummy0
       serial: 46:e9:67:5b:59:d2
       capabilities: ethernet physical
       configuration: broadcast=yes driver=dummy driverversion=1.0

--- End code ---

Any idea why the repo version of  lshw  is missing the helpful "product" and "vendor" fields?

Sashank999:
Hi GNUser !

I am sorry if this looks too bad but did you install lshw-dev ?

I have noticed that the files required for lshw to list vendor and product lines (they are the identifier files for each vendor and product
/usr/share/lshw/oui.txt
/usr/share/lshw/pci.ids
/usr/share/lshw/usb.ids
) are in -dev. So, I suggest trying it.

GNUser:
There is no  lshw-dev.tcz  in the repo.

Also, I noticed that  lshw.tcz  includes these files:


--- Code: ---/usr/local/share/lshw/pci.ids.gz             
/usr/local/share/lshw/pnp.ids.gz             
/usr/local/share/lshw/pnpid.txt.gz
/usr/local/share/lshw/usb.ids.gz
--- End code ---

Sashank999:
You should have oui.txt and all the above said files.

Oh ! I saw x86 repo before  :P . I think you are using x64. Just now saw that they are in -doc in x64. Try it.

Rich:
Hi GNUser
I did a little poking around and this is what I found.

Checking the CPU produces product and vendor in the output:

--- Code: ---tc@E310:~$ sudo lshw -c cpu
  *-cpu                     
       description: CPU
       product: Intel(R) Pentium(R) 4 CPU 2.80GHz
       vendor: Intel Corp.
       physical id: 400
       bus info: cpu@0
       version: 15.4.9
       serial: 0000-0F49-0000-0000-0000-0000
       slot: Microprocessor
       size: 2800MHz
       capacity: 4GHz
       width: 64 bits
       clock: 800MHz
       capabilities: boot fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe x86-64 constant_tsc pebs bts cpuid pni dtes64 monitor ds_cpl cid cx16 xtpr lahf_lm
       configuration: id=0
     *-logicalcpu:0
          description: Logical CPU
          physical id: 0.1
          width: 64 bits
          capabilities: logical
     *-logicalcpu:1
          description: Logical CPU
          physical id: 0.2
          width: 64 bits
          capabilities: logical
tc@E310:~$
--- End code ---

Checking the network with the  -numeric  option produces product and vendor in the output:

--- Code: ---tc@E310:~$ sudo lshw -numeric -c network
  *-network                 
       description: Ethernet interface
       product: [8086:1064]
       vendor: [8086]
       physical id: 8
       bus info: pci@0000:03:08.0
       logical name: eth0
       version: 04
       serial: 00:13:20:c4:4a:20
       size: 100Mbit/s
       capacity: 100Mbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e100 driverversion=3.5.24-k2-NAPI duplex=full ip=192.168.1.35 latency=64 link=yes maxlatency=56 mingnt=8 multicast=yes port=MII speed=100Mbit/s
       resources: irq:20 memory:dfcff000-dfcfffff ioport:dcc0(size=64)
  *-network DISABLED
       description: Ethernet interface
       physical id: 1
       logical name: dummy0
       serial: ee:f4:2f:68:6e:22
       capabilities: ethernet physical
       configuration: broadcast=yes driver=dummy driverversion=1.0
tc@E310:~$
--- End code ---

This is from the  pci.ids.gz  file. The  8086:1064  shows up, but without the  8086  prefix. Maybe that's why its not listing those fields.

--- Code: --- 1060  82571EB Gigabit Ethernet Controller
8086 0060  PRO/1000 PB Dual Port Server Connection
8086 1060  PRO/1000 PB Dual Port Server Connection
1064  82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version