j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: wmb Date: 2007-06-05 21:15:23 +0200 (Tue, 05 Jun 2007) New Revision: 437
Modified: cpu/x86/pc/olpc/sdtools/maketar cpu/x86/pc/olpc/sdtools/sd.fth Log: OLPC sdkit - added EC access routines, put all the files in a subdirectory.
Modified: cpu/x86/pc/olpc/sdtools/maketar =================================================================== --- cpu/x86/pc/olpc/sdtools/maketar 2007-06-04 23:30:10 UTC (rev 436) +++ cpu/x86/pc/olpc/sdtools/maketar 2007-06-05 19:15:23 UTC (rev 437) @@ -1,9 +1,11 @@ #!/bin/sh -ls ../../../../../cpu/x86/Linux -cp ../../../../../cpu/x86/Linux/forth . -cp ../../../../../cpu/x86/build/builder.dic . -cp ../../../../../cpu/x86/ioports.fth . -cp ../../../../../cpu/x86/pc/olpc/mfgdata.fth . -cp ../../../../../dev/olpc/dcon/dconsmb.fth . -tar cfz sdkit.tgz forth builder.dic sd.fth ioports.fth dconsmb.fth mfgdata.fth dumpgamma.fth sd -rm -f builder.dic forth ioports.fth mfgdata.fth dconsmb.fth +mkdir -p sdkit +cp ../../../../../cpu/x86/Linux/forth sdkit +cp ../../../../../cpu/x86/build/builder.dic sdkit +cp ../../../../../cpu/x86/ioports.fth sdkit +cp ../../../../../cpu/x86/pc/olpc/mfgdata.fth sdkit +cp ../../../../../dev/olpc/dcon/dconsmb.fth sdkit +cp ../../../../../dev/olpc/kb3700/ecio.fth sdkit +cp sd sd.fth dumpgamma.fth sdkit +tar cfz sdkit.tgz sdkit +# rm sdkit/*
Modified: cpu/x86/pc/olpc/sdtools/sd.fth =================================================================== --- cpu/x86/pc/olpc/sdtools/sd.fth 2007-06-04 23:30:10 UTC (rev 436) +++ cpu/x86/pc/olpc/sdtools/sd.fth 2007-06-05 19:15:23 UTC (rev 437) @@ -34,7 +34,8 @@ : r ( offset -- ) sdl@ u. ; : w ( l offset -- ) sdl! ;
-fff0.0000 10.0000 mmap constant flash-base +-1 value flash-base +fff0.0000 10.0000 mmap to flash-base \needs cdump : cdump ( adr len -- ) bounds ?do i c@ .x loop ; \needs .mfg-data fload mfgdata.fth
@@ -60,6 +61,12 @@
\needs vp@ fload dumpgamma.fth
+: unimp true abort" SPI reflashing is not implemented in this version" ; +: spicmd! unimp ; : spi-cmd-wait unimp ; : power-off unimp ; +defer spi-start defer spi@ defer spi! defer spi-out defer spi-reprogrammed +1 value spi-us +\needs ec@ fload ecio.fth + \ LICENSE_BEGIN \ Copyright (c) 2006 FirmWorks \