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

Dynamic binary EC parsing and flashing for both MEC and NPCX #64

Open
JohnAZoidberg opened this issue Nov 19, 2024 · 0 comments
Open

Dynamic binary EC parsing and flashing for both MEC and NPCX #64

JohnAZoidberg opened this issue Nov 19, 2024 · 0 comments
Assignees

Comments

@JohnAZoidberg
Copy link
Member

JohnAZoidberg commented Nov 19, 2024

Framework 13 Intel Gen 11-13 use MEC EC. Everything else uses NPCX.
After we introduced NPCX, I hardcoded some things for that. Should support both:

See:

  • let offset = if ro {
    EC_RO_VER_OFFSET
    } else {
    EC_RW_VER_OFFSET
    };
    let offset_zephyr = if ro {
    EC_RO_VER_OFFSET_ZEPHYR
    } else {
    EC_RW_VER_OFFSET_ZEPHYR
    };
  • /// MEC/Legacy EC
    /// | Start | End | Size | Region |
    /// | 00000 | 3BFFF | 3C000 | RO Region |
    /// | 3C000 | 3FFFF | 04000 | Preserved |
    /// | 40000 | 3C000 | 39000 | RO Region |
    /// | 79000 | 79FFF | 01000 | Preserved |
    /// | 80000 | 80FFF | 01000 | Flash Flags |
    ///
    /// NPC/Zephyr
    /// | Start | End | Size | Region |
    /// | 00000 | 3BFFF | 3C000 | RO Region |
    /// | 3C000 | 3FFFF | 04000 | Preserved |
    /// | 40000 | 3C000 | 39000 | RO Region |
    /// | 79000 | 79FFF | 01000 | Flash Flags |
@JohnAZoidberg JohnAZoidberg self-assigned this Nov 19, 2024
@JohnAZoidberg JohnAZoidberg changed the title Dynamic EC parsing and flashing for both MEC and NPCX Dynamic binary EC parsing and flashing for both MEC and NPCX Nov 26, 2024
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

No branches or pull requests

1 participant