#!/bin/sh ## ## lbsysinfo -- Gather system information useful for LinuxBIOS development ## ## Copyright (C) 2007 Uwe Hermann ## ## 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 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## 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 echo 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" dmidecode echo -e "\n$ biosdecode" biosdecode echo -e "\n$ vpddecode [-u]" vpddecode -u vpddecode echo -e "\n$ ownership" ownership