Skip to content

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

@JohnAZoidberg

Description

@JohnAZoidberg

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 |

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions