Skip to content
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

Allow flashing EC only, update docs on flashing #537

Merged
merged 2 commits into from
May 20, 2024
Merged

Conversation

crawfxrd
Copy link
Member

As somewhat of a hack, allow flashing only the EC by deleting the firmware.rom file before running flash.sh.

flash.sh was changed from internally flashing to using the UEFI application (firmware-update). The option --without-ec was removed as part of this.

`flash.sh` was changed from internally flashing to using the UEFI
application (firmware-update). The option `--without-ec` was removed as
part of this.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
docs/flashing.md Outdated Show resolved Hide resolved
As somewhat of a hack, allow flashing only the EC by deleting the
`firmware.rom` file before running `flash.sh`.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
@crawfxrd crawfxrd marked this pull request as ready for review March 22, 2024 21:01
@crawfxrd crawfxrd requested review from jackpot51 and a team March 22, 2024 21:01
@XV-02 XV-02 self-assigned this Apr 15, 2024
@XV-02
Copy link
Contributor

XV-02 commented Apr 15, 2024

Are there any specific behavioural changes I should be looking for on this?

It looks like:

  • I can successfully independently run the flash cycle with either ec.rom or firmware.rom deleted.
  • The firmware lock functions as I would broadly expect ( 1- I used the internal flasher; 2 - on reboot, firmware update presents the "hit enter to flash" prompt; 3 - on hitting enter, system reboots and presents the unlock screen; 4 - I unlock and system flashes as expected.)

I do note that, on a clean pop install and fresh repo clone, running the build script after ./scripts/install-deps.sh returns an error around pkg-config and libcrypto that required installing libssl-dev to seemingly fix.

Copy link
Contributor

@XV-02 XV-02 left a comment

Choose a reason for hiding this comment

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

This appears to be working correctly. I could independently flash EC and Firmware, and everything worked as expected.

I could successfully flash with flashrom. But caveat emptor, as we don't have systems which are both supported by flashrom and which have locking firmware that can be unlocked with system76/ec#450 to test that specific functionality overlap.

@jackpot51 jackpot51 merged commit a9e791c into master May 20, 2024
@jackpot51 jackpot51 deleted the flash-ec-only branch May 20, 2024 13:54
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.

None yet

4 participants