Changeset 3383


Ignore:
Timestamp:
Oct 25, 2012, 9:30:24 AM (2 years ago)
Author:
quozl
Message:

OLPC XO-4 - automatic reflash of Neonode touchscreen firmware, costs 276ms each boot

Location:
cpu/arm/olpc
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/4.0/olpc.bth

    r3340 r3383  
    33command: &builder &this 
    44in: ${BP}/cpu/arm/olpc/4.0/build/ec.img 
     5in: ${BP}/cpu/arm/olpc/4.0/build/nn.img 
    56in: ${BP}/cpu/arm/olpc/4.0/build/fw.img 
    67in: ${BP}/cpu/arm/olpc/4.0/build/resetvec.img 
     
    155156 
    156157   " ec.img"                                    " ecimage.bin"   $add-deflated-dropin 
     158   " nn.hex"                                    " nn.hex"        $add-deflated-dropin 
    157159   " ${BP}/clients/emacs/x86/emacs.rc"          " emacs.rc"      $add-deflated-dropin 
    158160   " ${BP}/clients/emacs/emacs.hlp"             " emacs.hlp"     $add-deflated-dropin 
  • cpu/arm/olpc/bsl.fth

    r3266 r3383  
    223223; 
    224224 
     225defer bsl-progress  ' 2drop is bsl-progress  ( offset size -- ) 
    225226: rx-data-block  ( adr len device-adr -- ) 
     227   dup h# 8000 - h# 8000 bsl-progress 
    226228   over  h# 12 frame(     ( adr len device-adr ) 
    227229   send-summed            ( adr len )   \ device address 
  • cpu/arm/olpc/build-fw.fth

    r3364 r3383  
    367367[ifdef] bsl-uart-base 
    368368fload ${BP}/cpu/arm/olpc/bsl.fth 
     369fload ${BP}/cpu/arm/olpc/nnflash.fth 
    369370[then] 
    370371 
     
    858859      then 
    859860   then 
     861[ifdef] update-nn-flash? 
     862   update-nn-flash?  if 
     863      ['] ?enough-power catch  ?dup  if  ( error ) 
     864         show-no-power 
     865         .error 
     866         ." Skipping NN reflash, not enough power" cr 
     867         d# 1000 ms 
     868      else 
     869         jots  ['] jot to bsl-progress 
     870         update-nn-flash 
     871      then 
     872   then 
     873[then] 
    860874\+ use-screen-kbd  open-hotspot 
    861875 
Note: See TracChangeset for help on using the changeset viewer.