Skip to content

Conversation

@crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Aug 20, 2025

The only difference between the I2C implementations is the color channel layout. Introduce two new configs for boards to select which they use.

  • CONFIG_KBLED_I2C_CH_BGR_PACKED: Channels are in BBB|GGG|RRR format
  • CONFIG_KBLED_I2C_CH_BGR_MIXED: Channels are in BGR|BGR|BGR format

Resulting ec.rom binary is identical.

The only difference between the I2C implementations is the color channel
layout. Introduce two new configs for boards to select which they use.

- CONFIG_KBLED_I2C_CH_BGR_PACKED: Channels are in BBB|GGG|RRR format
- CONFIG_KBLED_I2C_CH_BGR_MIXED: Channels are in BGR|BGR|BGR format

Signed-off-by: Tim Crawford <tcrawford@system76.com>
@crawfxrd crawfxrd marked this pull request as ready for review September 8, 2025 22:57
@crawfxrd crawfxrd requested review from a team September 8, 2025 23:00
@jacobgkau jacobgkau self-assigned this Sep 9, 2025
Copy link
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sha256sum of ec.rom for oryp5 changed after rebuilding with this commit, but it also wasn't identical after going back to master and building again. I assume something else in the build process means it's non-reproducible.

I tried to flash this on oryp5 this morning and ran into a lot of problems getting a build/install to work on a fresh Pop!_OS 22.04 installation. This will end up getting tested when we do firmware update certification on any affected models, so I don't see a reason to hold the merge up for what looks like a simple change.

@crawfxrd
Copy link
Member Author

crawfxrd commented Sep 9, 2025

You must set the version to a constant when building for the binary to be identical.

make BOARD=system76/oryp5 VERSION=0

@crawfxrd crawfxrd merged commit 5d861e7 into master Sep 9, 2025
51 checks passed
@crawfxrd crawfxrd deleted the kbled-i2c branch December 8, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants