[openfirmware] r1630 - cpu/x86/pc/olpc/via

svn at openfirmware.info svn at openfirmware.info
Fri Dec 18 00:54:58 CET 2009


Author: pgf
Date: 2009-12-18 00:54:58 +0100 (Fri, 18 Dec 2009)
New Revision: 1630

Modified:
   cpu/x86/pc/olpc/via/runin.fth
Log:

bypass $rename on int:, fix stack/parameter problems in show-tag
and handle-tag, set final TS tag to SHIP, and don't close CIFS
connection while handling tags -- the factory server seems to not
respond on a quick reconnect.



Modified: cpu/x86/pc/olpc/via/runin.fth
===================================================================
--- cpu/x86/pc/olpc/via/runin.fth	2009-12-17 07:42:02 UTC (rev 1629)
+++ cpu/x86/pc/olpc/via/runin.fth	2009-12-17 23:54:58 UTC (rev 1630)
@@ -110,10 +110,10 @@
    put-ascii-tag
 ;
 : show-tag  ( value$ -- )
-   $tag-printable?  if  ?-null type  else  wrapped-cdump  then
+   2dup $tag-printable?  if  ?-null type  else  wrapped-cdump  then
 ;
 : do-tag-error  ( -- )
-   \ Don't know what to do here
+   ." Problem with tag processing.  Halting." cr
    begin halt again
 ;
 : handle-tag  ( value$ key$ -- )
@@ -122,11 +122,10 @@
       2>r 2over 2r@ $=  if                   ( value$ key$ r: old-value$' )
          2drop 2drop 2r> 2drop               ( )
       else                                   ( value$ key$ r: old-value$' )
-         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
+         type ."  tag changed!" cr            ( value$ r: old-value$' )
+         ."   Old: " 2r> show-tag cr         ( value$ )
+         ."   New: " show-tag cr             ( )
+         do-tag-error
       then
    else                                      ( value$ key$ )   \ New tag, add it
       put-tag
@@ -172,11 +171,9 @@
    " BD" ($delete-tag)
    " MD" ($delete-tag)
    make-md-tag
-   " FINAL"  " TS" ($add-tag)
 
    response$ parse-tags
 
-   \ per request from wei-heng
    " TS" ($delete-tag)
    " SHIP"  " TS" put-ascii-tag
 
@@ -276,6 +273,11 @@
    cifs-ih 0= abort" Cannot open SMB share"
 ;
 
+\ $rename gives "Unimplemented package interface procedure" on ext2
+: do-rename
+   2>r  2dup  2r>  $copy  $delete
+;
+
 : finish-final-test  ( -- )
    wait-connections
 
@@ -284,19 +286,19 @@
 \   verify-rtc-date
 
    ." Getting final tags .. "
-   cifs-connect final-tag-exchange cifs-disconnect
+   cifs-connect final-tag-exchange \ Note: no disconnect...
    ." Done" cr
 
-   \ save a copy of the factory server string, before we destroy MS tag
-   factory-server$ dup alloc-mem $save
-
    inject-tags
 
-   my-cifs-connect final-result cifs-disconnect
+   ." Submitting results .. "
+   final-result cifs-disconnect
+   ." Done" cr
+
    " int:\runin\olpc.fth" $delete-all
 
    \ Ultimately this should just be delete of runin\olpc.fth
-   \ " int:\runin\olpc.fth" " int:\runin\runin.sav" $rename
+   " int:\runin\olpc.fth" " int:\runin\runin.sav" do-rename
 ;
 
 \ Make the "wait for SD insertion" step highly visible 
@@ -317,7 +319,7 @@
 \ the Linux-based runin tests again.
 : rerunin  ( -- )
    " int:\runin\olpc.fth" $delete-all
-   fail-log-file$ fail-backup-file$ $rename
+   fail-log-file$ fail-backup-file$ do-rename
 ;
 
 : after-runin  ( -- )




More information about the openfirmware mailing list