Repository navigation
packages: i2c-tools 4.4 (with machine patch refreshes) - #1141
bhouse-nexthop wants to merge 2 commits into
Conversation
Squashed content of PR opencomputeproject#1141, pulled in as a dependency: older package versions do not build under GCC 14. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
…sstool-NG 1.28 / uClibc-ng 1.0.54) Squashed content of PR opencomputeproject#1129, pulled in as a dependency. (PR opencomputeproject#1129 in turn carries PRs opencomputeproject#1127, opencomputeproject#1140, opencomputeproject#1141 and opencomputeproject#1128 -- including the secure-boot stack: shim 16.1, host pesign, grub SBAT -- so they are transitively included here.) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
Squashed content of PR opencomputeproject#1141, pulled in as a dependency: older package versions do not build under GCC 14. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
…sstool-NG 1.28 / uClibc-ng 1.0.54) Squashed content of PR opencomputeproject#1129, pulled in as a dependency. (PR opencomputeproject#1129 in turn carries PRs opencomputeproject#1142, opencomputeproject#1127, opencomputeproject#1140, opencomputeproject#1141 and opencomputeproject#1128 -- including the secure-boot stack: shim 16.1, host pesign, grub SBAT -- so they are transitively included here.) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
Squashed content of PR opencomputeproject#1141, pulled in as a dependency: older package versions do not build under GCC 14. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
…sstool-NG 1.28 / uClibc-ng 1.0.54) Squashed content of PR opencomputeproject#1129, pulled in as a dependency. (PR opencomputeproject#1129 in turn carries PRs opencomputeproject#1142, opencomputeproject#1127, opencomputeproject#1140, opencomputeproject#1141 and opencomputeproject#1128 -- including the secure-boot stack: shim 16.1, host pesign, grub SBAT -- so they are transitively included here.) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
…the full stack Integration branch: opencomputeproject#1142, opencomputeproject#1127, opencomputeproject#1140, opencomputeproject#1141, opencomputeproject#1128, opencomputeproject#1129, opencomputeproject#1130, opencomputeproject#1131, opencomputeproject#1132 (via the opencomputeproject#1132 stack) plus opencomputeproject#1133. Not for merge; regenerated whenever any of those PRs change. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
Squashed content of PR opencomputeproject#1141, pulled in as a dependency: older package versions do not build under GCC 14. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
…sstool-NG 1.28 / uClibc-ng 1.0.54) Squashed content of PR opencomputeproject#1129, pulled in as a dependency. (PR opencomputeproject#1129 in turn carries PRs opencomputeproject#1142, opencomputeproject#1127, opencomputeproject#1140, opencomputeproject#1141 and opencomputeproject#1128 -- including the secure-boot stack: shim 16.1, host pesign, grub SBAT -- so they are transitively included here.) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
…the full stack Integration branch: opencomputeproject#1142, opencomputeproject#1127, opencomputeproject#1140, opencomputeproject#1141, opencomputeproject#1128, opencomputeproject#1129, opencomputeproject#1130, opencomputeproject#1131, opencomputeproject#1132 (via the opencomputeproject#1132 stack) plus opencomputeproject#1133. Not for merge; regenerated whenever any of those PRs change. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
…sstool-NG 1.28 / uClibc-ng 1.0.54) Squashed content of PR opencomputeproject#1129, pulled in as a dependency. (PR opencomputeproject#1129 in turn carries PRs opencomputeproject#1142, opencomputeproject#1127, opencomputeproject#1140, opencomputeproject#1141 and opencomputeproject#1128 -- including the secure-boot stack: shim 16.1, host pesign, grub SBAT -- so they are transitively included here.) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
…the full stack Integration branch: opencomputeproject#1142, opencomputeproject#1127, opencomputeproject#1140, opencomputeproject#1141, opencomputeproject#1128, opencomputeproject#1129, opencomputeproject#1130, opencomputeproject#1131, opencomputeproject#1132 (via the opencomputeproject#1132 stack) plus opencomputeproject#1133. Not for merge; regenerated whenever any of those PRs change. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
Squashed content of PR opencomputeproject#1141, pulled in as a dependency: older package versions do not build under GCC 14. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
…sstool-NG 1.28 / uClibc-ng 1.0.54) Squashed content of PR opencomputeproject#1129, pulled in as a dependency. (PR opencomputeproject#1129 in turn carries PRs opencomputeproject#1142, opencomputeproject#1127, opencomputeproject#1140, opencomputeproject#1141 and opencomputeproject#1128 -- including the secure-boot stack: shim 16.1, host pesign, grub SBAT -- so they are transitively included here.) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
…the full stack Integration branch: opencomputeproject#1142, opencomputeproject#1127, opencomputeproject#1140, opencomputeproject#1141, opencomputeproject#1128, opencomputeproject#1129, opencomputeproject#1130, opencomputeproject#1131, opencomputeproject#1132 (via the opencomputeproject#1132 stack) plus opencomputeproject#1133. Not for merge; regenerated whenever any of those PRs change. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Brad House <bhouse@nexthop.ai>
|
master is now merged into onie-modernization-2026, including your #1139. This PR conflicts only in build-config/make/i2ctools.make. That conflict isn't from #1139: a follow-up commit on master added a Wayback Machine URL for i2c-tools 3.1.1, because the old host is gone. Take this PR's side (4.4 from kernel.org). Please rebase once #1142 is in. One change is needed beyond the rebase. patches/i2ctools/gitignore.patch is still in the series and fails on 4.4 for every machine: error: .gitignore: does not exist in index If you'd rather I resolve it at merge time, let me know. |
i2c-tools 3.1.1 -> 4.4 (latest). jdelvare.nerim.net is dead -> kernel.org
(.tar.bz2 -> .tar.gz). Rework the 2 remaining ONIE patches for the 4.x
layout (eepromer/ -> eeprog/, static libi2c, include/i2c/smbus.h).
Drop gitignore.patch. 4.4 ships its own .gitignore, and its first rule
is ".*", so the "git add ." in apply-patch-series never indexes
.gitignore itself and the patch fails to import ("error: .gitignore:
does not exist in index") for every machine. The patch only added
ignore entries for build outputs; nothing depends on it.
Signed-off-by: Brad House <bhouse@nexthop.ai>
Five of the six machines that build onie-syseeprom from i2c-tools
(I2CTOOLS_SYSEEPROM = yes) carry patches that no longer apply to 4.4,
so they could not build onie-syseeprom -- and since their busybox has
no syseeprom applet, that is their only way to read the ONIE TLV
EEPROM. CI does not catch this: kvm_x86_64 does not use i2c-tools.
alphanetworks snh60a0_320f, snq60a0_320f, snx60a0_486f:
- Drop 002-i2ctools-sys-eeprom-delay-time.patch from their series and
delete it. It changed the post-write delays in 24cXX.c from
usleep(10) to usleep(5000); 4.4 already does that upstream
(WRITE_DELAY_US 5000), so the patch had nothing left to change.
Side effect: the 2-byte write path, which the patch did not touch,
also goes from 10us to 5ms -- the same delay these machines chose
for the other two paths, and in line with typical EEPROM write
cycle times.
- Refresh 002-i2ctools-mux-set-alpha-*.patch: 4.4 rewrote the
"if ((r = ioctl(...)) < 0)" checks in eeprom_open() as two lines,
which broke the hunk context. Only context and line numbers
change; the added lines are identical.
celestica cel_redstone_xp, cel_smallstone_xp:
- Refresh the sys_eeprom/Module.mk hunks of
i2ctools-celestica-redstone-xp.patch. The patch replaces upstream's
24cXX EEPROM code with Celestica's own cpld/i2c sources, and 4.4
changed the Module.mk lines around it (24cXX now builds against
<i2c/smbus.h> and links libi2c). The C sources are untouched;
onie-syseeprom links the same objects as before plus -lz.
dell dell_s6000_s1220 already applies and builds.
Verified with the build's own cp-machine-patches and apply-patch-series
(git add . + stg import) on the 4.4 tarball: all 8 machine i2ctools
series apply (these 6 plus cls_ds4101 and supermicro_sse_t7132s).
onie-syseeprom cross-builds for all 6 with the x86_64 GCC 8.3.0
toolchain, not with their own GCC 4.9.2 one: the gcc-4.9.2 crosstool
configs predate crosstool-NG 1.24, which aborts on the x86_64 one
("Internal ct-ng error: 'LINUX' not defined"). That is independent of
this change.
Signed-off-by: Brad House <bhouse@nexthop.ai>
7ffd69f to
1c9c9b9
Compare
|
Thanks. Rebased onto onie-modernization-2026 (d662246) and force-pushed.
|
Targets
onie-modernization-2026. Independent of the other modernization PRs. Split out of #1127 during review, because this bump needs changes to vendor machine trees.What changes
ONIE uses i2c-tools only to build
onie-syseeprom(I2CTOOLS_SYSEEPROM = yes). The stock i2c-tools binaries are not installed; busybox providesi2cget/i2cset/etc. Six machines setI2CTOOLS_SYSEEPROM = yes. None of them have the busybox syseeprom applet, so this is their only way to read the ONIE TLV EEPROM.Machine patch changes
Five of the six machines carry i2c-tools patches that don't apply to 4.4:
002-i2ctools-sys-eeprom-delay-time.patchchanges the post-writeusleep(10)tousleep(5000); 4.4 already uses 5 ms (WRITE_DELAY_US 5000), so the patch has nothing left to change002-i2ctools-mux-set-alpha-*.patch: 4.4 rewrote theif ((r = ioctl(...)) < 0)checks ineeprom_open()as two lines, which broke the hunk contexti2ctools-celestica-redstone-xp.patchreplaces the upstream 24cXX code with Celestica's own sources; itssys_eeprom/Module.mkhunks no longer match 4.4One behaviour change, on the three alphanetworks machines: 2-byte EEPROM writes (
i2c_write_2b), which their patch did not touch, also go from a 10 µs to a 5 ms post-write delay. That is the delay those machines already chose for 1- and 3-byte writes, and in line with typical EEPROM write-cycle times.Testing
git apply, which is as strict as the build's StGit import (no fuzz), on i2c-tools 4.4 plus ONIE's base series;onie-syseepromthen builds for all six (host compiler).XTOOLS_LIBC_VERSION, andbuild-config/conf/crosstool/gcc-4.9.2/only has a uClibc-ng 1.0.22 config, so their toolchain cannot be built ononie-modernization-2026today. That predates this PR and is unrelated to it.