This is a ready-made script which gathers all information about a system
we could want to evaluate whether porting is possible and/or easy.
The idea behind it is to get loads of people to run the script and help
us analyze coverage of flashrom and superiotool, together with board
distribution among willing testers.
In the future, this could include the ICH GPIO dumper, the K8 resource
dumper, the MCP55 configuration dumper and a few other utilities.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
--
http://www.hailfinger.org/
#!/bin/bash
# Coreboot system information gathering script
# This is very Linux-specific right now.
#
# This script is Copyright (C) 2008 Carl-Daniel Hailfinger
#
# 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
mkdir coreboot_data
parentdir=`pwd`
cd coreboot_data
lspci -vvvnnxxx >lspci-vvvnnxxx.txt
lspci -t >lspci-t.txt
dmidecode >dmidecode.txt
svn co svn://linuxbios.org/repos/trunk/util/flashrom
cd flashrom
make
cd -
./flashrom/flashrom -V >flashrom.txt
rm -rf flashrom
svn co svn://linuxbios.org/repos/trunk/util/superiotool
cd superiotool
make
cd -
./superiotool/superiotool -d -e -V >superiotool.txt
rm -rf superiotool
cat /proc/ioports >ioports.txt
cat /proc/iomem >iomem.txt
cat /proc/interrupts >interrupts.txt
cat /proc/cpuinfo >cpuinfo.txt
acpidump >acpidump.txt
cd $parentdir
tar cjf coreboot_data.tar.bz2 coreboot_data/
echo
echo All done. Please send coreboot_data.tar.bz2 to dumps@coreboot.org. Thanks.