Author: quozl
Date: Mon Nov 21 05:09:15 2011
New Revision: 2695
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2695
Log:
OLPC - instance buffer scan-ssid is d# 34 bytes long, so the maximum length check in set-ssid was invalid, (found during code review only)
Modified:
dev/libertas.fth
Modified: dev/libertas.fth
==============================================================================
--- dev/libertas.fth Mon Nov 21 01:23:36 2011 (r2694)
+++ dev/libertas.fth Mon Nov 21 05:09:15 2011 (r2695)
@@ -1040,7 +1040,7 @@
2dup " olpc-mesh" $= if passive-scan then
2dup " olpc-NANDblaster" $= if passive-scan then
- h# 32 min scan-ssid pack drop
+ d# 32 min scan-ssid pack drop
;
: scan ( adr len -- actual )
Author: quozl
Date: Sun Nov 20 23:23:51 2011
New Revision: 2693
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2693
Log:
OLPC XO-1.75 - community testers did not know how to use the accelerometer test, so add a test environment directive.
Modified:
cpu/arm/olpc/1.75/accelerometer.fth
Modified: cpu/arm/olpc/1.75/accelerometer.fth
==============================================================================
--- cpu/arm/olpc/1.75/accelerometer.fth Thu Nov 17 00:11:05 2011 (r2692)
+++ cpu/arm/olpc/1.75/accelerometer.fth Sun Nov 20 23:23:51 2011 (r2693)
@@ -12,7 +12,7 @@
: ctl1! ( b -- ) h# 20 acc-reg! ;
: ctl4! ( b -- ) h# 23 acc-reg! ;
: accelerometer-on ( -- ) h# 47 ctl1! ;
-: accelerometer-off ( -- ) h# 07 ctl1! ;
+: accelerometer-off ( -- ) h# 07 ctl1! ; \ should this be 00?
: wext ( b -- n ) dup h# 8000 and if h# ffff0000 or then ;
: acceleration@ ( -- x y z )
begin h# 27 acc-reg@ h# 08 and until \ wait for data available
@@ -136,6 +136,7 @@
final-test? if accelerometer-off false exit then
+ ." Don't move!" cr
lis-selftest
;
Author: quozl
Date: Tue Nov 15 05:21:53 2011
New Revision: 2690
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2690
Log:
OLPC trac 11427 - test-all stopped working at the first device that had no reg property, caused by stack imbalance in most-tests premature exit paths
Modified:
ofw/core/ofwcore.fth
Modified: ofw/core/ofwcore.fth
==============================================================================
--- ofw/core/ofwcore.fth Tue Nov 15 02:14:16 2011 (r2689)
+++ ofw/core/ofwcore.fth Tue Nov 15 05:21:53 2011 (r2690)
@@ -3278,18 +3278,18 @@
' (hold-message) to hold-message
: most-tests ( -- exit? )
- " selftest" current-device (search-wordlist) if ( xt )
+ " selftest" current-device (search-wordlist) if ( xt )
- drop ( )
+ drop ( )
\ We only want to execute the selftest routine if the device has
\ a "reg" property. This eliminates the execution of selftest
\ routines for "wildcard" devices like st and sd.
- " reg" get-property if exit then 2drop ( )
+ " reg" get-property if false exit then 2drop ( )
\ We sometimes want to skip the testing of certain devices.
- current-device skip-test? if exit then ( )
+ current-device skip-test? if false exit then ( )
??cr ." Testing " pwd
" selftest" current-device ( method-adr,len phandle )
@@ -3317,16 +3317,10 @@
then ( exit? )
;
-\ "action-acf" is executed for each device node in the subtree
-\ rooted at dev-addr,len , with current-device set to the
-\ node in question. "action-acf" can perform arbitrary tests
-\ on the node to determine if that node is appropriate for
-\ the action that it wished to undertake.
-
: test-subtree ( dev-addr,len -- )
current-device >r ( dev-addr,len r: phandle )
- find-device ( r: phandle xt )
- ['] most-tests ['] (search-preorder) catch 2drop ( r: phandle xt )
+ find-device ( r: phandle )
+ ['] most-tests ['] (search-preorder) catch 2drop ( r: phandle )
r> push-device ( )
;