Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

95.17. i2c-tools-4.4

i2cdetect, i2cget, i2cset and the SMBus library, over /dev/i2c-*

4.4-1 · GPL-2.0-or-later AND LGPL-2.1-or-later · 0.1 SBU · 394.4 KiB, 26 files · 41_system, 657 of 1047 · ports/core/hardware/i2c-tools

Homepage: https://i2c.wiki.kernel.org/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/hardware.txt:

i2cdetect and i2cget on a bus a person is deliberately poking at. The I2C permission is video and 70-kdos-i2c.rules, NOT dialout: the rule is scoped to the adapters that hang off a display controller, because the same /dev node class also carries the chipset SMBus and every DIMM's SPD EEPROM.

Depends on: perl.

Required by (1): nut.

Sources: i2c-tools-4.4.tar.gz (92.4 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install i2c-tools'

build.sh:

make PREFIX=/usr BUILD_DYNAMIC_LIB=1 USE_STATIC_LIB=0
make PREFIX=/usr BUILD_DYNAMIC_LIB=1 USE_STATIC_LIB=0 DESTDIR=$PKG install

Programs: ddcmon, decode-dimms, decode-edid, decode-vaio, i2c-stub-from-dump, i2cdetect, i2cdump, i2cget, i2cset, i2ctransfer.

Libraries: libi2c.a, libi2c.so.

Directories: /usr/include/i2c, /usr/share/licenses/i2c-tools.