WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: lshw update submitted  (Read 2491 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
lshw update submitted
« on: February 29, 2020, 02:32:25 AM »
Updated  lshw.tcz  and a GUI front end  gtk-lshw.tcz  have been submitted in 32 and 64 bit versions for TC10. The 64 bit version
has also been verified to work on TC11.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: lshw update submitted
« Reply #1 on: February 29, 2020, 02:03:39 PM »
The TC10 and TC11 repositories now have X86 and X86_64 versions of  lswh.tcz  and  gtk-lshw.tcz  available. For those of you
who prefer a GUI, this is what the  gtk-lshw  version looks like:

Clicking the  Refresh  button will scan your system.
Double clicking on entries with a  bold font  will will cause them to expand showing more detail.
The yellow icon at the right end of the  wbar  starts  gtk-lshw.

For those who prefer the command line,  lshw  should be run as root (sudo). It also supports the  --help  parameter. The  man
pages are also included.

PiCore

Google suggests this should work on Raspberry Pi. If someone wants to build this for Pi, there is a build script that automates
the entire process. You will need to do so under TC9 since TC10 and TC11 lack the tools and support files. Execute the following:

Code: [Select]
mkdir lshw
cd lshw
wget http://tinycorelinux.net/10.x/x86/tcz/src/lshw/build_lshw.sh
chmod 775 build_lshw.sh
./build_lshw.sh

If all went well, the  package  directory should look similar to this:
Code: [Select]
tc@E310:~/BuildTCZs/lshw$ ls -l package/
total 4756
drwxr-sr-x 3 tc staff    4096 Feb 29 01:47 gtk-lshw/
-rw-r--r-- 1 tc staff  695580 Feb 29 01:49 gtk-lshw.tar.gz
-rw-r--r-- 1 tc staff  696320 Feb 29 01:49 gtk-lshw.tcz
-rw-r--r-- 1 tc staff      18 Feb 29 01:49 gtk-lshw.tcz.dep
-rw-r--r-- 1 tc staff    1146 Feb 29 01:49 gtk-lshw.tcz.info
-rw-r--r-- 1 tc staff    1713 Feb 29 01:49 gtk-lshw.tcz.list
-rw-r--r-- 1 tc staff      47 Feb 29 01:49 gtk-lshw.tcz.md5.txt
-rw-r--r-- 1 tc staff    2233 Feb 29 01:49 gtk-lshw.tcz.zsync
drwxr-sr-x 3 tc staff    4096 Feb 29 01:47 lshw/
-rw-r--r-- 1 tc staff 1607366 Feb 29 01:49 lshw-armv6.tar.gz.bfe
-rw-r--r-- 1 tc staff  906997 Feb 29 01:49 lshw.tar.gz
-rw-r--r-- 1 tc staff  905216 Feb 29 01:49 lshw.tcz
-rw-r--r-- 1 tc staff    1168 Feb 29 01:49 lshw.tcz.info
-rw-r--r-- 1 tc staff     269 Feb 29 01:49 lshw.tcz.list
-rw-r--r-- 1 tc staff      43 Feb 29 01:49 lshw.tcz.md5.txt
-rw-r--r-- 1 tc staff    2837 Feb 29 01:49 lshw.tcz.zsync
-rw-r--r-- 1 tc staff    4468 Feb 29 01:49 submitqc.txt
tc@E310:~/BuildTCZs/lshw$

Notes:
1. Check the  submitqc.txt  file for errors or warnings.
2. The  lshw.tar.gz  is the  lshw  package containing all of the  lshw  extension files.
3. The  gtk-lshw.tar.gz  is the  gtk-lshw  package containing all of the  gtk-lshw  extension files.
4. The  lshw-armv6.tar.gz.bfe  file contains  lshw.tar.gz, gtk-lshw.tar.gz, and build_lshw.sh.
5. The  lshw  and  gtk-lshw  directories are what was placed into  lshw.tcz  and  gtk-lshw.tcz  respectively.

Copy  lshw.tcz, gtk-lshw.tcz, and gtk-lshw.tcz.dep  to your  tce  directory. Then:
Code: [Select]
tce-load -i gtk-lshw.tczYou should see a round yellow icon appear on the  wbar.  Click on it and and the  gtk-lshw  window should appear.

While the  gtk-lshw.tcz  package won't run under PiCore 10 or 11, I believe the  lshw.tcz  package will since it appears to only
use base libraries:
Code: [Select]
tc@E310:~/BuildTCZs/lshw$ ldd `which lshw`
        linux-gate.so.1 (0xb7f59000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb7f33000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7f1f000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7df2000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7dda000)
        libc.so.6 => /lib/libc.so.6 (0xb7cad000)
        libm.so.6 => /lib/libm.so.6 (0xb7bf1000)
        /lib/ld-linux.so.2 (0xb7f5a000)
tc@E310:~/BuildTCZs/lshw$

    [EDIT]: Added  chmod  command to the PiCore build instructions.  Rich
« Last Edit: March 02, 2020, 01:18:47 AM by Rich »