Ticket #11464 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

XO-1.75 EC write protected while SPI FLASH writable

Reported by: Quozl Owned by: Quozl
Priority: normal Milestone: 1.75-firmware
Component: ofw - open firmware Version: 1.75/1.5/1.0 Software Build os883 aka 11.3.0
Keywords: Cc:
Action Needed: no action Verified: no
Deployments affected: Blocked By:
Blocking:

Description (last modified by Quozl) (diff)

Occasionally a unit has a write protected EC even though the SPI FLASH is not write protected. The condition persists until battery and external power are removed.

The symptom up to Q4C04, but not Q4B10, is invisible.

From Q4C05 the symptom will be successful flash but additional warnings:

Checking integrity
Write Protected EC
SPI FLASH is type 34 - Macronyx
...

An early step in flash is try to hold the EC in reset. This feature (#11215) was introduced in Q4B10, but broke in Q4B11, and will be reintroduced in Q4C05. This depends on the security flip-flop not being triggered by protect-fw, which in turn depends on the wp tag not being present.

Seen on two B1s in the past few days.

Change History

Changed 2 years ago by Quozl

  • description modified (diff)

Changed 2 years ago by wmb@…

I just got "EDI byte in timeout" after reflashing:

ok newrom
Reading http:\\192.168.200.200\new.rom
Scan for: OLPCOFW
Associate with: OLPCOFW
DHCP got 192.168.200.22
Got firmware version: CL2   Q4C04mcQ4C
Checking integrity ...
Write Protected EC
SPI FLASH is type 34 - Macronyx
Writing
d0000
Writing
f0000
Verifying
d0000
Verifying
f0000
Evaluating: flash! http:\\192.168.200.200\new.rom
EDI byte in timeout4 - Macronyx
ok

It happened after I had been doing suspend/resume tests with "wakeup-loop". I typed "newrom" after that test, without rebooting.

Changed 2 years ago by Quozl

  • next_action changed from reproduce to code

Thanks, that agrees with my tests; SEC_TRG goes high over suspend.

Changed 2 years ago by Quozl

  • summary changed from XO-1.75 B1 EC write protected while SPI FLASH writable to XO-1.75 EC write protected while SPI FLASH writable

Occurs on C1 as well as B1, reproducer:

ok s3-selftest
ok ignore-power-button
Write Protected EC
ok 

Changed 2 years ago by Quozl

  • next_action changed from code to add to build

Fixed in CForth commit 89de506, tested in q4c04jh.rom, to be added to next OpenFirmware build.

Changed 2 years ago by Quozl

  • status changed from new to closed
  • next_action changed from add to build to no action
  • resolution set to fixed

Fixed in Q4C05. Tested. Closing.

Note: See TracTickets for help on using tickets.