Changeset 2158


Ignore:
Timestamp:
Jan 28, 2011, 4:00:03 AM (3 years ago)
Author:
quozl
Message:

Reinstate machine signature check using prefix of model property as
used by the device tree. Tested by attempting to flash Q4A12 on
XO-1.5. #10616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dev/olpc/spiflash/spiui.fth

    r2153 r2158  
    6969 
    7070   ." Got firmware version: " 
    71    flash-buf h# f.ffc0 +  h# 10  type cr 
     71   flash-buf h# f.ffc0 +  dup  h# 10  type cr  ( adr ) 
     72   h# ffff.ffc0 3 comp  abort" Wrong machine signature" 
    7273 
    7374   ?crc 
     
    277278   dup /flash <>  abort" Wrong image length"      ( adr len ) 
    278279   2dup +  h# 40 -                                ( adr len signature-adr ) 
    279    dup " CL1" comp  abort" No firmware signature" ( adr len signature-adr ) 
     280   h# ffff.ffc0 3 comp  abort" Wrong machine signature" 
     281                                                  ( adr len signature-adr ) 
    280282   ." Firmware: " h# 10 type                      ( adr len ) 
    281283   \ XXX add some more sanity checks 
Note: See TracChangeset for help on using the changeset viewer.