[LinuxBIOS] [PATCH] lbsysinfo -- tool to gather system information

Uwe Hermann uwe at hermann-uwe.de
Thu Nov 15 18:49:20 CET 2007


here's a small and simple shell script which I've been using for a while
now to gather information about my boards (which might be useful for
LinuxBIOS development).

It's basically just running a list of command line tools and dumps their
output on stdout. Nothing fancy, but it saves lots of time.

Usage (as root for maximum information):

  $ ./lbsysinfo > foo.txt

Also very useful for development is comparing the output of the script from
the vendor BIOS with the output from LinuxBIOS.

If we feel this is useful, we could add it as util/lbsysinfo/lbsysinfo.

NOTE: I do _not_ want this to be used for any kind of automated spamming
of the mailing list or some such thing. It should only be run manually
by users or developers, and the output should only be sent to the
mailing list if explicitly requested by an LB developer (IMO).

We do certainly _not_ want to mention this on Slashdot and be drowned
in useless dumps from random people.

http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
-------------- next part --------------
## lbsysinfo -- Gather system information useful for LinuxBIOS development
## Copyright (C) 2007 Uwe Hermann <uwe at hermann-uwe.de>
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## GNU General Public License for more details.
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA

# Note: Please do _not_ blindly send the output of this script to
# the LinuxBIOS mailing list, only if a developer asks for it!

# Note: This tool should be run as root to get more useful output.

# The more of the following tools you install the better: x86info cpuid
# pnputils flashrom lm-sensors pciutils-dev dmidecode superiotool cpufrequtils

# TODO: Use svn revision as version number.
echo -e "\nlbsysinfo 0.1"

# Try loading some modules for more output.
modprobe msr 2>/dev/null
modprobe cpuid 2>/dev/null
modprobe i2c-dev 2>/dev/null

echo -e "\n$ lspci -tvnn"
lspci -tvnn

# Check if flashrom knows about the chipset/board/chip.
echo -e "\n$ flashrom -V"
flashrom -V

echo -e "\n$ superiotool -dV"
superiotool -dV

echo -e "\n$ sensors-detect"
yes | sensors-detect 2>/dev/null

echo -e "\n$ sensors"
sensors 2>/dev/null

echo -e "\n$ i2cdetect -y -l"
i2cdetect -y -l 2>/dev/null

echo -e "\n$ i2cdetect -y 0"
i2cdetect -y 0 2>/dev/null
echo -e "\n$ i2cdetect -y 1"
i2cdetect -y 1 2>/dev/null
echo -e "\n$ i2cdetect -y 2"
i2cdetect -y 2 2>/dev/null
echo -e "\n$ i2cdetect -y 3"
i2cdetect -y 3 2>/dev/null

# See http://linuxbios.org/EHCI_Debug_Port.
echo -e "\n$ EHCI Debug Port capability:"
lspci -vs $(lspci|grep EHCI|cut -f1 -d' ') 2>/dev/null
lspci -ns $(lspci|grep EHCI|cut -f1 -d' ') 2>/dev/null

echo -e "\n$ lspnp -v"
lspnp -v

echo -e "\n$ cat /proc/cpuinfo"
cat /proc/cpuinfo

echo -e "\n$ cat /proc/ioports"
cat /proc/ioports

echo -e "\n$ cat /proc/interrupts"
cat /proc/interrupts

echo -e "\n$ cat /proc/iomem"
cat /proc/iomem

echo -e "\n$ cat /proc/mtrr"
cat /proc/mtrr

echo -e "\n$ lspci -vvv"
lspci -vvv

echo -e "\n$ lspci -xxx"
lspci -xxx

echo -e "\n$ cpuid -a"
cpuid -a

echo -e "\n$ x86info -a"
x86info -a

echo -e "\n$ cpufreq-info"
cpufreq-info 2>/dev/null

echo -e "\n$ dmidecode"

echo -e "\n$ biosdecode"

echo -e "\n$ vpddecode [-u]"
vpddecode -u

echo -e "\n$ ownership"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20071115/bbf33805/attachment.sig>

More information about the coreboot mailing list