Skip to content

Commit 67ed2eb

Browse files
committed
Fix some ec binary parsing typos
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent c3ce669 commit 67ed2eb

File tree

1 file changed

+4
-4
lines changed
  • framework_lib/src/chromium_ec

1 file changed

+4
-4
lines changed

framework_lib/src/chromium_ec/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -793,16 +793,16 @@ impl CrosEc {
793793
/// | Start | End | Size | Region |
794794
/// | 00000 | 3BFFF | 3C000 | RO Region |
795795
/// | 3C000 | 3FFFF | 04000 | Preserved |
796-
/// | 40000 | 3C000 | 39000 | RO Region |
796+
/// | 40000 | 78FFF | 39000 | RW Region |
797797
/// | 79000 | 79FFF | 01000 | Preserved |
798798
/// | 80000 | 80FFF | 01000 | Flash Flags |
799799
///
800800
/// NPC/Zephyr
801801
/// | Start | End | Size | Region |
802802
/// | 00000 | 3BFFF | 3C000 | RO Region |
803803
/// | 3C000 | 3FFFF | 04000 | Preserved |
804-
/// | 40000 | 3C000 | 39000 | RO Region |
805-
/// | 79000 | 79FFF | 01000 | Flash Flags |
804+
/// | 40000 | 78FFF | 39000 | RW Region |
805+
/// | 7F000 | 7FFFF | 01000 | Flash Flags |
806806
pub fn reflash(&self, data: &[u8], ft: EcFlashType, dry_run: bool) -> EcResult<()> {
807807
let mut res = Ok(());
808808

@@ -926,7 +926,7 @@ impl CrosEc {
926926
println!(" RO verify success");
927927
} else {
928928
error!("RO verify fail!");
929-
res = Err(EcError::DeviceError("RW verify fail!".to_string()));
929+
res = Err(EcError::DeviceError("RO verify fail!".to_string()));
930930
}
931931
}
932932

0 commit comments

Comments
 (0)