Skip to content

fw16: add command to write and read expansion bay eeprom #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 6, 2025

Conversation

kiram9
Copy link
Member

@kiram9 kiram9 commented Jun 5, 2025

from a file

Example invocation:

boot.efi --flash-gpu-descriptor-file pcie_4x2.bin

TEST=fail: if the write fails we will error correctly TEST=pass: the command will succeed.
TEST=dump contents using ec console:
i2c read I2C_PORT5 0x50 0x0000 16
00000000: 32 ac 00 00 30 00 00 00 00 00 01 00 08 00 00 00 |2...0... ........| And compare to xxd dump of source file to ensure they match.

@kiram9 kiram9 requested a review from JohnAZoidberg June 5, 2025 08:48
kiram9 and others added 4 commits June 5, 2025 17:22
from a file

Example invocation:

framework_tool.efi --flash-gpu-descriptor-file pcie_4x2.bin

TEST=fail: if the write fails we will error correctly
TEST=pass: the command will succeed.
TEST=dump contents using ec console:
i2c read I2C_PORT5 0x50 0x0000 16
00000000: 32 ac 00 00 30 00 00 00  00 00 01 00 08 00 00 00 |2...0... ........|
And compare to xxd dump of source file to ensure they match.

Signed-off-by: Kieran Levin <ktl@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
X64 is LE natively, so BE must be intended.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
@JohnAZoidberg JohnAZoidberg force-pushed the fw16.dgpu_file_program branch from 830ca55 to 74042d2 Compare June 5, 2025 09:36
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
@JohnAZoidberg JohnAZoidberg force-pushed the fw16.dgpu_file_program branch from 38cca8a to d13b41b Compare June 5, 2025 11:14
@JohnAZoidberg JohnAZoidberg changed the title fw16: add command to write expansion bay eeprom fw16: add command to write and read expansion bay eeprom Jun 5, 2025
@JohnAZoidberg JohnAZoidberg merged commit 4b4d069 into main Jun 6, 2025
7 checks passed
@JohnAZoidberg JohnAZoidberg deleted the fw16.dgpu_file_program branch June 6, 2025 06:21
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.

2 participants