summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/i2c-tools/README8
-rw-r--r--system/i2c-tools/i2c-tools.SlackBuild99
-rw-r--r--system/i2c-tools/i2c-tools.info10
-rw-r--r--system/i2c-tools/patches/changeset_r6063.diff42
-rw-r--r--system/i2c-tools/patches/changeset_r6069.diff129
-rw-r--r--system/i2c-tools/slack-desc19
6 files changed, 307 insertions, 0 deletions
diff --git a/system/i2c-tools/README b/system/i2c-tools/README
new file mode 100644
index 0000000000..5ad715d2b8
--- /dev/null
+++ b/system/i2c-tools/README
@@ -0,0 +1,8 @@
+i2c-tools (utilities for I2C)
+
+The I2C tools that used to be part of the lm-sensors package have been
+split to a separate package.
+The i2c-tools package contains a heterogeneous set of I2C tools for
+Linux: a bus probing tool, a chip dumper, register-level SMBus access
+helpers, EEPROM decoding scripts, EEPROM programming tools, and a
+python module for SMBus access.
diff --git a/system/i2c-tools/i2c-tools.SlackBuild b/system/i2c-tools/i2c-tools.SlackBuild
new file mode 100644
index 0000000000..6073aa6d82
--- /dev/null
+++ b/system/i2c-tools/i2c-tools.SlackBuild
@@ -0,0 +1,99 @@
+#!/bin/sh
+
+# Slackware build script for i2c-tools
+# Copyright Matteo Bernardini <ponce@slackbuilds.org>, 2012
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=i2c-tools
+VERSION=${VERSION:-3.1.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+DOCS="CHANGES COPYING README"
+
+set -e # Exit on most errors
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# Recommended patches
+for i in $CWD/patches/* ; do patch -p1 < $i ; done
+
+sed -i \
+ -e "s|/local||" \
+ -e "s|-O2|${SLKCFLAGS}|" \
+ -e "s|/share||" \
+ Makefile
+
+make
+make install DESTDIR=$PKG
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/i2c-tools/i2c-tools.info b/system/i2c-tools/i2c-tools.info
new file mode 100644
index 0000000000..921b7e4269
--- /dev/null
+++ b/system/i2c-tools/i2c-tools.info
@@ -0,0 +1,10 @@
+PRGNAM="i2c-tools"
+VERSION="3.1.0"
+HOMEPAGE="http://lm-sensors.org/wiki/I2CTools"
+DOWNLOAD="http://dl.lm-sensors.org/i2c-tools/releases/i2c-tools-3.1.0.tar.bz2"
+MD5SUM="f15019e559e378c6e9d5d6299a00df21"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Matteo Bernardini"
+EMAIL="ponce@slackbuilds.org"
diff --git a/system/i2c-tools/patches/changeset_r6063.diff b/system/i2c-tools/patches/changeset_r6063.diff
new file mode 100644
index 0000000000..59c56d0b33
--- /dev/null
+++ b/system/i2c-tools/patches/changeset_r6063.diff
@@ -0,0 +1,42 @@
+Index: /i2c-tools/branches/i2c-tools-3.1/eeprom/decode-dimms
+===================================================================
+--- /i2c-tools/branches/i2c-tools-3.1/eeprom/decode-dimms (revision 6043)
++++ /i2c-tools/branches/i2c-tools-3.1/eeprom/decode-dimms (revision 6063)
+@@ -1740,5 +1740,5 @@
+ sub get_dimm_list
+ {
+- my (@dirs, $dir, $file, @files);
++ my (@dirs, $dir, $opened, $file, @files);
+
+ if ($use_sysfs) {
+@@ -1750,4 +1750,5 @@
+ foreach $dir (@dirs) {
+ next unless opendir(local *DIR, $dir);
++ $opened++;
+ while (defined($file = readdir(DIR))) {
+ if ($use_sysfs) {
+@@ -1770,10 +1771,10 @@
+ }
+
+- if (@files) {
+- return sort { $a->{file} cmp $b->{file} } @files;
+- } elsif (! -d '/sys/module/eeprom') {
+- print "No EEPROM found, are you sure the eeprom module is loaded?\n";
++ if (!$opened) {
++ print STDERR "No EEPROM found, try loading the eeprom or at24 module\n";
+ exit;
+ }
++
++ return sort { $a->{file} cmp $b->{file} } @files;
+ }
+
+Index: /i2c-tools/branches/i2c-tools-3.1/CHANGES
+===================================================================
+--- /i2c-tools/branches/i2c-tools-3.1/CHANGES (revision 6048)
++++ /i2c-tools/branches/i2c-tools-3.1/CHANGES (revision 6063)
+@@ -5,4 +5,5 @@
+ decode-dimms: Decode module configuration type of DDR2 SDRAM
+ Decode bus width extension of DDR3 SDRAM
++ Don't choke when no EEPROM is found
+ i2c-dev.h: Minimize differences with kernel flavor
+ Move SMBus helper functions to include/i2c/smbus.h
diff --git a/system/i2c-tools/patches/changeset_r6069.diff b/system/i2c-tools/patches/changeset_r6069.diff
new file mode 100644
index 0000000000..c89f2ae6d4
--- /dev/null
+++ b/system/i2c-tools/patches/changeset_r6069.diff
@@ -0,0 +1,129 @@
+Index: /i2c-tools/trunk/eeprom/decode-dimms
+===================================================================
+--- /i2c-tools/trunk/eeprom/decode-dimms (revision 6068)
++++ /i2c-tools/trunk/eeprom/decode-dimms (revision 6069)
+@@ -65,9 +65,9 @@
+ "Tristar", "Visic", "Intl. CMOS Technology", "SSSI",
+ "MicrochipTechnology", "Ricoh Ltd.", "VLSI", "Micron Technology",
+- "Hyundai Electronics", "OKI Semiconductor", "ACTEL", "Sharp",
++ "Hynix Semiconductor Inc. (former Hyundai Electronics)", "OKI Semiconductor", "ACTEL", "Sharp",
+ "Catalyst", "Panasonic", "IDT", "Cypress",
+ "DEC", "LSI Logic", "Zarlink (former Plessey)", "UTMC",
+ "Thinking Machine", "Thomson CSF", "Integrated CMOS (Vertex)", "Honeywell",
+- "Tektronix", "Sun Microsystems", "SST", "ProMos/Mosel Vitelic",
++ "Tektronix", "Oracle Corporation (former Sun Microsystems)", "Silicon Storage Technology", "ProMos/Mosel Vitelic",
+ "Infineon (former Siemens)", "Macronix", "Xerox", "Plus Logic",
+ "SunDisk", "Elan Circuit Tech.", "European Silicon Str.", "Apple Computer",
+@@ -75,5 +75,5 @@
+ "Seiko Instruments", "Samsung", "I3 Design System", "Klic",
+ "Crosspoint Solutions", "Alliance Semiconductor", "Tandem", "Hewlett-Packard",
+- "Intg. Silicon Solutions", "Brooktree", "New Media", "MHS Electronic",
++ "Integrated Silicon Solutions", "Brooktree", "New Media", "MHS Electronic",
+ "Performance Semi.", "Winbond Electronic", "Kawasaki Steel", "Bright Micro",
+ "TECMAR", "Exar", "PCMCIA", "LG Semi (former Goldstar)",
+@@ -85,5 +85,5 @@
+ "Aster Electronics", "Bay Networks (Synoptic)", "Zentrum or ZMD", "TRW",
+ "Thesys", "Solbourne Computer", "Allied-Signal", "Dialog",
+- "Media Vision", "Level One Communication"],
++ "Media Vision", "Numonyx Corporation (former Level One Communication)"],
+ ["Cirrus Logic", "National Instruments", "ILC Data Device", "Alcatel Mietec",
+ "Micro Linear", "Univ. of NC", "JTAG Technologies", "BAE Systems",
+@@ -120,5 +120,5 @@
+ ["Camintonn Corporation", "ISOA Incorporated", "Agate Semiconductor", "ADMtek Incorporated",
+ "HYPERTEC", "Adhoc Technologies", "MOSAID Technologies", "Ardent Technologies",
+- "Switchcore", "Cisco Systems, Inc.", "Allayer Technologies", "WorkX AG",
++ "Switchcore", "Cisco Systems, Inc.", "Allayer Technologies", "WorkX AG (Wichman)",
+ "Oasis Semiconductor", "Novanet Semiconductor", "E-M Solutions", "Power General",
+ "Advanced Hardware Arch.", "Inova Semiconductors GmbH", "Telocity", "Delkin Devices",
+@@ -130,5 +130,5 @@
+ "ADTEC Corporation", "Kentron Technologies", "Win Technologies", "Tachyon Semiconductor (former ASIC Designs Inc.)",
+ "Extreme Packet Devices", "RF Micro Devices", "Siemens AG", "Sarnoff Corporation",
+- "Itautec Philco SA", "Radiata Inc.", "Benchmark Elect. (AVEX)", "Legend",
++ "Itautec SA (former Itautec Philco SA)", "Radiata Inc.", "Benchmark Elect. (AVEX)", "Legend",
+ "SpecTek Incorporated", "Hi/fn", "Enikia Incorporated", "SwitchOn Networks",
+ "AANetcom Incorporated", "Micro Memory Bank", "ESS Technology", "Virata Corporation",
+@@ -172,5 +172,5 @@
+ "Terawave Communications", "IceFyre Semiconductor", "Primarion", "Picochip Designs Ltd",
+ "Silverback Systems", "Jade Star Technologies", "Pijnenburg Securealink",
+- "TakeMS International AG", "Cambridge Silicon Radio",
++ "takeMS - Ultron AG (former Memorysolution GmbH)", "Cambridge Silicon Radio",
+ "Swissbit", "Nazomi Communications", "eWave System",
+ "Rockwell Collins", "Picocel Co., Ltd.", "Alphamosaic Ltd", "Sandburst",
+@@ -179,5 +179,5 @@
+ "Marvell Semiconductors", "Netergy Microelectronic", "NVIDIA", "Internet Machines",
+ "Peak Electronics", "Litchfield Communication", "Accton Technology", "Teradiant Networks",
+- "Europe Technologies", "Cortina Systems", "RAM Components", "Raqia Networks",
++ "Scaleo Chip (former Europe Technlogies)", "Cortina Systems", "RAM Components", "Raqia Networks",
+ "ClearSpeed", "Matsushita Battery", "Xelerated", "SimpleTech",
+ "Utron Technology", "Astec International", "AVM gmbH", "Redux Communications",
+@@ -186,10 +186,10 @@
+ "Runcom Technologies", "RedSwitch", "Dotcast", "Silicon Mountain Memory",
+ "Signia Technologies", "Pixim", "Galazar Networks", "White Electronic Designs",
+- "Patriot Scientific", "Neoaxiom Corporation", "3Y Power Technology", "Europe Technologies",
++ "Patriot Scientific", "Neoaxiom Corporation", "3Y Power Technology", "Scaleo Chip (former Europe Technologies)",
+ "Potentia Power Systems", "C-guys Incorporated", "Digital Communications Technology Incorporated", "Silicon-Based Technology",
+ "Fulcrum Microsystems", "Positivo Informatica Ltd", "XIOtech Corporation", "PortalPlayer",
+- "Zhiying Software", "Direct2Data", "Phonex Broadband", "Skyworks Solutions",
++ "Zhiying Software", "Parker Vision, Inc. (former Direct2Data)", "Phonex Broadband", "Skyworks Solutions",
+ "Entropic Communications", "Pacific Force Technology", "Zensys A/S", "Legend Silicon Corp.",
+- "sci-worx GmbH", "SMSC (former Oasis Silicon Systems)", "Renesas Technology", "Raza Microelectronics",
++ "sci-worx GmbH", "SMSC (former Oasis Silicon Systems)", "Renesas Electronics (former Renesas Technology)", "Raza Microelectronics",
+ "Phyworks", "MediaTek", "Non-cents Productions", "US Modular",
+ "Wintegra Ltd", "Mathstar", "StarCore", "Oplus Technologies",
+@@ -222,5 +222,5 @@
+ "c2 Microsystems, Inc.", "Level5 Networks", "COS Memory AG", "Innovasic Semiconductor",
+ "02IC Co. Ltd", "Tabula, Inc.", "Crucial Technology", "Chelsio Communications",
+- "Solarflare Communications", "Xambala Inc.", "EADS Astrium", "ATO Semicon Co. Ltd.",
++ "Solarflare Communications", "Xambala Inc.", "EADS Astrium", "Terra Semiconductor Inc. (former ATO Semicon Co. Ltd.)",
+ "Imaging Works, Inc.", "Astute Networks, Inc.", "Tzero", "Emulex",
+ "Power-One", "Pulse~LINK Inc.", "Hon Hai Precision Industry", "White Rock Networks Inc.",
+@@ -252,5 +252,48 @@
+ "InSilica", "Ember Corporation", "Avexir Technologies Corporation", "Echelon Corporation",
+ "Edgewater Computer Systems", "XMOS Semiconductor Ltd.", "GENUSION, Inc.", "Memory Corp NV",
+- "SiliconBlue Technologies", "Rambus Inc."]);
++ "SiliconBlue Technologies", "Rambus Inc.", "Andes Technology Corporation", "Coronis Systems",
++ "Achronix Semiconductor", "Siano Mobile Silicon Ltd.", "Semtech Corporation", "Pixelworks Inc.",
++ "Gaisler Research AB", "Teranetics", "Toppan Printing Co. Ltd.", "Kingxcon",
++ "Silicon Integrated Systems", "I-O Data Device, Inc.", "NDS Americas Inc.", "Solomon Systech Limited",
++ "On Demand Microelectronics", "Amicus Wireless Inc.", "SMARDTV SNC", "Comsys Communication Ltd.",
++ "Movidia Ltd.", "Javad GNSS, Inc.", "Montage Technology Group", "Trident Microsystems", "Super Talent",
++ "Optichron, Inc.", "Future Waves UK Ltd.", "SiBEAM, Inc.", "Inicore, Inc.", "Virident Systems",
++ "M2000, Inc.", "ZeroG Wireless, Inc.", "Gingle Technology Co. Ltd.", "Space Micro Inc.", "Wilocity",
++ "Novafora, Inc.", "iKoa Corporation", "ASint Technology", "Ramtron", "Plato Networks Inc.",
++ "IPtronics AS", "Infinite-Memories", "Parade Technologies Inc.", "Dune Networks",
++ "GigaDevice Semiconductor", "Modu Ltd.", "CEITEC", "Northrop Grumman", "XRONET Corporation",
++ "Sicon Semiconductor AB", "Atla Electronics Co. Ltd.", "TOPRAM Technology", "Silego Technology Inc.",
++ "Kinglife", "Ability Industries Ltd.", "Silicon Power Computer & Communications",
++ "Augusta Technology, Inc.", "Nantronics Semiconductors", "Hilscher Gesellschaft", "Quixant Ltd.",
++ "Percello Ltd.", "NextIO Inc.", "Scanimetrics Inc.", "FS-Semi Company Ltd.", "Infinera Corporation",
++ "SandForce Inc.", "Lexar Media", "Teradyne Inc.", "Memory Exchange Corp.", "Suzhou Smartek Electronics",
++ "Avantium Corporation", "ATP Electronics Inc.", "Valens Semiconductor Ltd", "Agate Logic, Inc.",
++ "Netronome", "Zenverge, Inc.", "N-trig Ltd", "SanMax Technologies Inc.", "Contour Semiconductor Inc.",
++ "TwinMOS", "Silicon Systems, Inc.", "V-Color Technology Inc.", "Certicom Corporation", "JSC ICC Milandr",
++ "PhotoFast Global Inc.", "InnoDisk Corporation", "Muscle Power", "Energy Micro", "Innofidei",
++ "CopperGate Communications", "Holtek Semiconductor Inc.", "Myson Century, Inc.", "FIDELIX",
++ "Red Digital Cinema", "Densbits Technology", "Zempro", "MoSys", "Provigent", "Triad Semiconductor, Inc."],
++["Siklu Communication Ltd.", "A Force Manufacturing Ltd.", "Strontium", "Abilis Systems", "Siglead, Inc.",
++ "Ubicom, Inc.", "Unifosa Corporation", "Stretch, Inc.", "Lantiq Deutschland GmbH", "Visipro",
++ "EKMemory", "Microelectronics Institute ZTE", "Cognovo Ltd.", "Carry Technology Co. Ltd.", "Nokia",
++ "King Tiger Technology", "Sierra Wireless", "HT Micron", "Albatron Technology Co. Ltd.",
++ "Leica Geosystems AG", "BroadLight", "AEXEA", "ClariPhy Communications, Inc.", "Green Plug",
++ "Design Art Networks", "Mach Xtreme Technology Ltd.", "ATO Solutions Co. Ltd.", "Ramsta",
++ "Greenliant Systems, Ltd.", "Teikon", "Antec Hadron", "NavCom Technology, Inc.",
++ "Shanghai Fudan Microelectronics", "Calxeda, Inc.", "JSC EDC Electronics", "Kandit Technology Co. Ltd.",
++ "Ramos Technology", "Goldenmars Technology", "XeL Technology Inc.", "Newzone Corporation",
++ "ShenZhen MercyPower Tech", "Nanjing Yihuo Technology", "Nethra Imaging Inc.", "SiTel Semiconductor BV",
++ "SolidGear Corporation", "Topower Computer Ind Co Ltd.", "Wilocity", "Profichip GmbH",
++ "Gerad Technologies", "Ritek Corporation", "Gomos Technology Limited", "Memoright Corporation",
++ "D-Broad, Inc.", "HiSilicon Technologies", "Syndiant Inc.", "Enverv Inc.", "Cognex",
++ "Xinnova Technology Inc.", "Ultron AG", "Concord Idea Corporation", "AIM Corporation",
++ "Lifetime Memory Products", "Ramsway", "Recore Systems BV", "Haotian Jinshibo Science Tech",
++ "Being Advanced Memory", "Adesto Technologies", "Giantec Semiconductor, Inc.", "HMD Electronics AG",
++ "Gloway International (HK)", "Kingcore", "Anucell Technology Holding",
++ "Accord Software & Systems Pvt. Ltd.", "Active-Semi Inc.", "Denso Corporation", "TLSI Inc.",
++ "Shenzhen Daling Electronic Co. Ltd.", "Mustang", "Orca Systems", "Passif Semiconductor",
++ "GigaDevice Semiconductor (Beijing) Inc.", "Memphis Electronic", "Beckhoff Automation GmbH",
++ "Harmony Semiconductor Corp (former ProPlus Design Solutions)", "Air Computers SRL", "TMT Memory"]
++);
+
+ $use_sysfs = -d '/sys/bus';
diff --git a/system/i2c-tools/slack-desc b/system/i2c-tools/slack-desc
new file mode 100644
index 0000000000..6c3934c6b2
--- /dev/null
+++ b/system/i2c-tools/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+i2c-tools: i2c-tools (utilities for I2C)
+i2c-tools:
+i2c-tools: The I2C tools that used to be part of the lm-sensors package have been
+i2c-tools: split to a separate package.
+i2c-tools: The i2c-tools package contains a heterogeneous set of I2C tools for
+i2c-tools: Linux: a bus probing tool, a chip dumper, register-level SMBus access
+i2c-tools: helpers, EEPROM decoding scripts, EEPROM programming tools, and a
+i2c-tools: python module for SMBus access.
+i2c-tools:
+i2c-tools: homepage: http://lm-sensors.org/wiki/I2CTools
+i2c-tools: