From patchwork Sun Jul 10 21:02:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 5742 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Lgzx10v2dz40TZ for ; Sun, 10 Jul 2022 21:02:29 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Lgzwy5VnBzlC; Sun, 10 Jul 2022 21:02:26 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Lgzwy4MJKz2xyQ; Sun, 10 Jul 2022 21:02:26 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Lgzwx012wz2xMw for ; Sun, 10 Jul 2022 21:02:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Lgzww1QQdzlC; Sun, 10 Jul 2022 21:02:24 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1657486944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=M04zbHeA21/LK3xbsI0zWVR56+uzJxHxP6x+9RhtTNU=; b=lPndmQ5qCRDB0B13vKl0+q02vD1mL1/wnjB52sISHngfNXRprdgvIQR0oAoOgHx7Ig6MeO VW0UCS481ty4oNAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1657486944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=M04zbHeA21/LK3xbsI0zWVR56+uzJxHxP6x+9RhtTNU=; b=s0TsrnrYx4oSrnwBtNJolSq7jUSh7lyGhuomogvwMSJXMtTK6RVZqSGO2bp0TdCyElgRfF S1jaxp55SJDF67eIkcuvHEuSjf2PjLzCWkusb7AONIjrTKXP4RklgJTT0tEGLKxjYgPpQf 1aTaS3CRY1Gk27bCJUvZ39f/ZrNezqSd6uFixTVtqA8Oyy6nr/Pn1mXZrjIUDlW9oiIJu/ e8ZGwNPb+HKPWGOopXD6FVCI9bjFLwj3d6X1hZtko+Mw8U2c2mlBHIEX2PszV7gqmicHM1 3gyT0RXR4wU56Pk5RXZX1DehuNhpTnBNbl5OJRUwkETyMZ/DeVsmLQgJJAt7rA== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] i2c-tools: Update to version 4.3 Date: Sun, 10 Jul 2022 23:02:21 +0200 Message-Id: <20220710210221.3037904-1-adolf.belka@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" - Update from version 3.1.2 (July 2017) to 4.3 (July 2021) - Update of rootfile - Changelog 4.3 (2021-07-22) decode-dimms: Attempt to decode LPDDR3 modules eeprom, eepromer: Removed the tools in favor of eeprog i2cdetect: Sort the bus list by number i2cdump: Add range support to I2C block mode Deprecate SMBus block mode i2cget: Add support for I2C block read Add support for SMBus block read i2ctransfer: Reverted check for returned length from driver 4.2 (2020-09-22) manpages: Add BUGS section to let people know how to contact us Makefile: Allow to preset all CFLAGS and LDFLAGS variables tools: Consistently use snprintf instead of sprintf Restrict addresses 0x03-0x07, too (defined by I2C standard) decode-dimms: Print SPD revision for DDR3 too Print primary bus width for DDR3 and DDR4 List ee1004 as a candidate driver Display MAC for DDR3 Add MAC abbreviation for DDR4 Round DDR4 speed properly Detect and report truncated input files Print kernel driver used Print DDR memory speed in MT/s Add DDR5 memory types Decode manufacturing data for LPDDR3 Fix the version string Point the user to the right drivers Update the list of vendors to Jedec JEP106BB decode-vaio: Add support for the at24 driver Scan more i2c buses i2cset: Fix short writes with mask i2ctransfer: Mention '-a' everywhere in the manpage Support messages using I2C_M_RECV_LEN Add check for returned length from driver i2c-stub-from-dump: Read dumps from hexdump -C library: Add a manual page to document the API 4.1 (2018-11-30) Makefile: Make STRIP, DESTDIR and PREFIX overridable tools: Fix potential buffer overflows in i2cbusses Fix build race Allow usage of reserved addresses with the '-a' flag decode-dimms: Add preliminary DDR4 support Decode size and timings of DDR4 Decode misc parameters of DDR4 Decode physical characteristics of DDR4 Documentation update for DDR4 Verify the CRC of DDR4 data block 1 Update manufacturer IDs (JEP106AX) eeprog: Fix ambiguous parentheses Fix build race i2ctransfer: Rename option '-f' to '-a' for consistency i2c-dev.h: Delete library: Fix build race Allow disabling the dynamic flavor Mention the correct license in source files py-smbus: Fix i2c_smbus_* error propagation 4.0 (2017-10-30) tools: Fix build with recent compilers (gcc 4.6+) Add examples to the manual pages README: Clarify licenses Mention the current maintainer decode-dimms: Decode module configuration type of DDR2 SDRAM Decode bus width extension of DDR3 SDRAM Don't choke when no EEPROM is found Don't make columns larger than they need to be Make side-by-side output more robust Print module organization of DDR SDRAM Merge cells by default in side-by-side output Print extra timing values of DDR SDRAM Print DDR and DDR2 core timings for all supported CAS values Print DDR2 equivalent speed of tCK max Don't print undefined DDR2 SDRAM timings Print SDR, DDR, DDR2, DDR3 core timings for all standard speeds Update manufacturer IDs Make DDR3 manufacturer count parity error non-fatal Strip former manufacturer name in side-by-side output mode Remove duplicate "ns" in SDR timings Add section headers for SDR modules Fix decoding of SDR SPD revision Prevent hang on reserved DDR3 module type Decode more DDR3 module types Fix DDR3 tRAS decoding Fix DDR3 core timings rounding Round down PC3 numbers to comply with Jedec Don't print the DDR3 time bases Decode the FTB fields of DDR3 tCk, tAA, tRCD, tRP and tRC Fix speed and PC3 number of high-speed DDR3 modules Decode DDR3 reference card revision Print width of all known DDR3 module types Print physical characteristics for all DDR3 module types Don't print raw SSTE32882 register values Add support for Load Reduced DIMM (LRDIMM) DDR3 modules Fully decode the DDR3 SDRAM Device Type field Fix DDR3 extended temp range refresh rate decoding Encode "degrees" to HTML degree symbol Generate XHTML 1.1 compliant markup Add a manual page Correctly check for out-of-bounds vendor ID Update manufacturer IDs (JEP106AQ) decode-vaio: Add a manual page eeprog: Add a manual page Moved to a separate subdirectory Increase delay after writes eeprom: Add a manual page Marked as deprecated eepromer: Add a manual page Marked as deprecated i2cdetect: Do a best effort detection if functionality is missing Clarify the SMBus commands used for probing by default i2ctransfer: New tool to send user-defined I2C messages in one transfer i2c-dev.h: Minimize differences with kernel flavor Move SMBus helper functions to include/i2c/smbus.h i2c-stub-from-dump: Be more tolerant on input dump format library: New libi2c library Properly propagate real error codes on read errors Use I2C_SMBUS_BLOCK_MAX instead of hard-coding 32 lib/smbus.c: Add missing include which was causing a build error py-smbus: Fix module level docs Add support for python 3 Signed-off-by: Adolf Belka Reviewed-by: Peter Müller --- config/rootfiles/common/i2c-tools | 9 +++++++++ lfs/i2c-tools | 8 +++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/config/rootfiles/common/i2c-tools b/config/rootfiles/common/i2c-tools index fb5ee8326..7dec1eec1 100644 --- a/config/rootfiles/common/i2c-tools +++ b/config/rootfiles/common/i2c-tools @@ -2,15 +2,24 @@ usr/bin/ddcmon usr/bin/decode-dimms usr/bin/decode-edid usr/bin/decode-vaio +#usr/include/i2c +#usr/include/i2c/smbus.h +#usr/lib/libi2c.so +usr/lib/libi2c.so.0 +usr/lib/libi2c.so.0.1.1 usr/sbin/i2c-stub-from-dump usr/sbin/i2cdetect usr/sbin/i2cdump usr/sbin/i2cget usr/sbin/i2cset +usr/sbin/i2ctransfer #usr/share/man/man1/decode-dimms.1 #usr/share/man/man1/decode-vaio.1 +#usr/share/man/man3/libi2c.3 #usr/share/man/man8/i2c-stub-from-dump.8 #usr/share/man/man8/i2cdetect.8 #usr/share/man/man8/i2cdump.8 #usr/share/man/man8/i2cget.8 #usr/share/man/man8/i2cset.8 +#usr/share/man/man8/i2ctransfer.8 + diff --git a/lfs/i2c-tools b/lfs/i2c-tools index 9910afe53..cb3a9e0b6 100644 --- a/lfs/i2c-tools +++ b/lfs/i2c-tools @@ -24,7 +24,7 @@ include Config -VER = 3.1.2 +VER = 4.3 THISAPP = i2c-tools-$(VER) DL_FILE = $(THISAPP).tar.xz @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_BLAKE2 = 7c1a4ac9034a33bffed989b7c960bfadafc537007561a5c4ced231ae999691a0a76f5f1a2df41bddae1537bf7b627e2b09788dc056af16b58da4af3d647a4b21 +$(DL_FILE)_BLAKE2 = c7300224c8d32785cd067b632bf0e9591f05264b1572f44aebda5f30a95164732d606710c13739ccb7899476219ceb3033beaf95b718ed7e18122f9181dc13fc install : $(TARGET) @@ -74,6 +74,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && make $(MAKETUNING) - cd $(DIR_APP) && make install prefix=/usr + cd $(DIR_APP) && make install PREFIX=/usr \ + BUILD_DYNAMIC_LIB=1 \ + BUILD_STATIC_LIB=0 @rm -rf $(DIR_APP) @$(POSTBUILD)