[openfirmware] r1621 - cpu/x86/pc/olpc/via
svn at openfirmware.info
svn at openfirmware.info
Wed Dec 16 08:24:34 CET 2009
Author: pgf
Date: 2009-12-16 08:24:34 +0100 (Wed, 16 Dec 2009)
New Revision: 1621
Modified:
cpu/x86/pc/olpc/via/runin.fth
Log:
more changes for initial production
Modified: cpu/x86/pc/olpc/via/runin.fth
===================================================================
--- cpu/x86/pc/olpc/via/runin.fth 2009-12-16 04:56:37 UTC (rev 1620)
+++ cpu/x86/pc/olpc/via/runin.fth 2009-12-16 07:24:34 UTC (rev 1621)
@@ -54,7 +54,7 @@
0 0 2value response$
-: final-filename$ ( -- adr len ) board#$ " %s.txt" sprintf ;
+: final-filename$ ( -- adr len ) sn$ " %s.txt" sprintf ;
\ Send the board number as the request and return the response data
: final-tag-exchange ( -- )
@@ -122,10 +122,11 @@
2>r 2over 2r@ $= if ( value$ key$ r: old-value$' )
2drop 2drop 2r> 2drop ( )
else ( value$ key$ r: old-value$' )
- type ." tag changed!" cr ( value$ r: old-value$' )
- ." Old: " r> show-tag cr ( value$ )
- ." New: " show-tag cr ( )
- do-tag-error
+ 2drop 2drop 2r> 2drop ( )
+ \ type ." tag changed!" cr ( value$ r: old-value$' )
+ \ ." Old: " r> show-tag cr ( value$ )
+ \ ." New: " show-tag cr ( )
+ \ do-tag-error
then
else ( value$ key$ ) \ New tag, add it
put-tag
@@ -169,11 +170,16 @@
" TS" ($delete-tag)
" MS" ($delete-tag)
" BD" ($delete-tag)
+ " MD" ($delete-tag)
make-md-tag
- " SHIP" " TS" ($add-tag)
+ " FINAL" " TS" ($add-tag)
response$ parse-tags
+ \ per request from wei-heng
+ " TS" ($delete-tag)
+ " SHIP" " TS" put-ascii-tag
+
flash-write-enable
(put-mfg-data)
\ Change "ww" to "wp" if we want security to be enabled
@@ -237,6 +243,7 @@
exit
then ( data$ tag$ )
+ 2swap ?-null 2swap
put-key:value ( )
;
@@ -253,7 +260,7 @@
final-filename$ open-temp-file
upload-tags
pass? if " PASS" else " FAIL" then " RESULT=" put-key+value
- " Result" submit-file
+ " Handshake" submit-file
;
: wait-connections ( -- )
@@ -264,6 +271,11 @@
\ wait-usb-key
;
+: my-cifs-connect ( adr -- )
+ open-dev to cifs-ih
+ cifs-ih 0= abort" Cannot open SMB share"
+;
+
: finish-final-test ( -- )
wait-connections
@@ -275,13 +287,16 @@
cifs-connect final-tag-exchange cifs-disconnect
." Done" cr
+ \ save a copy of the factory server string, before we destroy MS tag
+ factory-server$ dup alloc-mem $save
+
inject-tags
- cifs-connect final-result cifs-disconnect
- \ " int:\runin\olpc.fth" $delete-all
+ my-cifs-connect final-result cifs-disconnect
+ " int:\runin\olpc.fth" $delete-all
\ Ultimately this should just be delete of runin\olpc.fth
- " int:\runin\olpc.fth" " int:\runin\final.fth" $rename
+ \ " int:\runin\olpc.fth" " int:\runin\runin.sav" $rename
;
\ Make the "wait for SD insertion" step highly visible
More information about the openfirmware
mailing list