Author: quozl Date: Wed Feb 13 08:40:27 2013 New Revision: 3545 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3545
Log: OLPC - move some common developer utilities into a single file.
Added: cpu/x86/pc/olpc/apt.fth Modified: cpu/arm/olpc/4.0/ec-version.fth cpu/arm/olpc/build-fw.fth cpu/x86/pc/olpc/fw.bth cpu/x86/pc/olpc/via/fw.bth
Modified: cpu/arm/olpc/4.0/ec-version.fth ============================================================================== --- cpu/arm/olpc/4.0/ec-version.fth Wed Feb 13 08:36:31 2013 (r3544) +++ cpu/arm/olpc/4.0/ec-version.fth Wed Feb 13 08:40:27 2013 (r3545) @@ -1,4 +1,4 @@ -\ The EC microcode +\ The EC microcode macro: EC_PLATFORM cl4 macro: EC_VERSION 7_0_3_11
Modified: cpu/arm/olpc/build-fw.fth ============================================================================== --- cpu/arm/olpc/build-fw.fth Wed Feb 13 08:36:31 2013 (r3544) +++ cpu/arm/olpc/build-fw.fth Wed Feb 13 08:40:27 2013 (r3545) @@ -945,28 +945,8 @@ quit ;
-: newrom - " flash! http:\192.168.200.200\new.rom" eval -; -: newec - " flash-ec http:\192.168.200.200\ecimage.bin" eval -; -: qz - " qz" $essid " http:\qz" included \ qa test bed scripting, james cameron -; -: .os " more int:\boot\olpc_build" eval ; -: urom " flash! u:\new.rom" eval ; -: uec " flash-ec! u:\ecimage.bin" eval ; -: erom " flash! ext:\new.rom" eval ; -: no-usb-delay " dev /usb false to delay? dend" evaluate ; -: null-fsdisk - " dev /null : size 0 8 ; : write-blocks-start 3drop false ; : write-blocks-end false ; dend" evaluate - " devalias fsdisk //null" evaluate -; -stand-init: wifi - " NN" find-tag if ?-null $essid then - " PP" find-tag if ?-null $wpa then -; +: enable-serial ; +fload ${BP}/cpu/x86/pc/olpc/apt.fth \ Common developer utilities
\ LICENSE_BEGIN \ Copyright (c) 2010 FirmWorks
Added: cpu/x86/pc/olpc/apt.fth ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ cpu/x86/pc/olpc/apt.fth Wed Feb 13 08:40:27 2013 (r3545) @@ -0,0 +1,48 @@ +\ See license at end of file +purpose: Common developer utilities + +: newrom enable-serial " flash! http:\192.168.200.200\new.rom" eval ; +: urom enable-serial " flash! u:\new.rom" eval ; + +: newec " flash-ec http:\192.168.200.200\ecimage.bin" eval ; +: uec " flash-ec! u:\ecimage.bin" eval ; + +: qz " qz" $essid " http:\qz" included ; + +: no-usb-delay " dev /usb false to delay? dend" evaluate ; + +: null-fsdisk \ for testing fs-update without writing + " dev /null : size 0 8 ; : write-blocks-start 3drop false ; : write-blocks-end false ; dend" evaluate + " devalias fsdisk //null" evaluate +; + +: .os " more int:\boot\olpc_build" eval ; + +stand-init: wifi + " NN" find-tag if ?-null $essid then \ network name + " PP" find-tag if ?-null $wpa then \ pass phrase +; + +\ LICENSE_BEGIN +\ Copyright (c) 2013 FirmWorks +\ +\ Permission is hereby granted, free of charge, to any person obtaining +\ a copy of this software and associated documentation files (the +\ "Software"), to deal in the Software without restriction, including +\ without limitation the rights to use, copy, modify, merge, publish, +\ distribute, sublicense, and/or sell copies of the Software, and to +\ permit persons to whom the Software is furnished to do so, subject to +\ the following conditions: +\ +\ The above copyright notice and this permission notice shall be +\ included in all copies or substantial portions of the Software. +\ +\ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +\ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +\ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +\ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +\ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +\ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +\ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +\ +\ LICENSE_END
Modified: cpu/x86/pc/olpc/fw.bth ============================================================================== --- cpu/x86/pc/olpc/fw.bth Wed Feb 13 08:36:31 2013 (r3544) +++ cpu/x86/pc/olpc/fw.bth Wed Feb 13 08:40:27 2013 (r3545) @@ -654,17 +654,10 @@ quit ;
-: newrom " flash! http:\192.168.200.200\new.rom" eval ; -: urom " flash! u:\new.rom" eval ; -: qz - " qz" $essid " http:\qz" included \ qa test bed scripting, james cameron -; -: .os " more int:\boot\olpc_build" eval ; - -\ Fancy battery charge logger. -fload ${BP}/cpu/x86/pc/olpc/charge.fth - +: enable-serial ; +fload ${BP}/cpu/x86/pc/olpc/charge.fth \ Fancy battery charge logger fload ${BP}/cpu/x86/pc/olpc/diskspeed.fth \ Mass storage speed test +fload ${BP}/cpu/x86/pc/olpc/apt.fth \ Common developer utilities
tag-file @ fclose tag-file off
Modified: cpu/x86/pc/olpc/via/fw.bth ============================================================================== --- cpu/x86/pc/olpc/via/fw.bth Wed Feb 13 08:36:31 2013 (r3544) +++ cpu/x86/pc/olpc/via/fw.bth Wed Feb 13 08:40:27 2013 (r3545) @@ -741,25 +741,9 @@ fallback-out-ih ?dup if remove-output then ;
-: newrom - enable-serial - " flash! http:\192.168.200.200\new.rom" eval -; -: urom enable-serial " flash! u:\new.rom" eval ; -: qz - " qz" $essid " http:\qz" included \ qa test bed scripting, james cameron -; -: .os " more int:\boot\olpc_build" eval ; -: no-usb-delay " dev /usb false to delay? dend" evaluate ; -: null-fsdisk - " dev /null : size 0 8 ; : write-blocks-start 3drop false ; : write-blocks-end false ; dend" evaluate - " devalias fsdisk //null" evaluate -; - -\ Fancy battery charge logger. -fload ${BP}/cpu/x86/pc/olpc/charge.fth - +fload ${BP}/cpu/x86/pc/olpc/charge.fth \ Fancy battery charge logger fload ${BP}/cpu/x86/pc/olpc/diskspeed.fth \ Mass storage speed test +fload ${BP}/cpu/x86/pc/olpc/apt.fth \ Common developer utilities
tag-file @ fclose tag-file off