[OLPC Engineering] [Techteam] XO-1.75 OpenFirmware serial terminal

Mitch Bradley wmb at laptop.org
Thu Mar 29 01:56:56 EDT 2012


The space required by the serial terminal thing is insignificant.

On 3/28/2012 4:44 PM, John Watlington wrote:
> On Mar 27, 2012, at 5:52 AM, James Cameron wrote:
>
>> This is a serial terminal implementation for an XO-1.75 using Open Firmware.
> Useful --- the computer science equivalent of the voltmeter.
> Educational --- I learned that OFW has structs, and some new primitives (/n, ukey).
>
>> Credit to the existing Open Firmware serial port FIFO queue
>> implementation.  Couldn't have made it stable without it.
> Nice.  It is cool to see a Forth version of what I wrote so many
> variations of in C.
>
> My favorite two lines (for simplicity) in the terminal emulator were:
> \ serial interrupt handler for received data
> : si ( -- )  ukey read-q enque  ;
>
> I'd love to see serial terminal preloaded, but also acknowledge that I'm the
> one pushing against a 2MB SPI Flash ROM.   How about specifying
> a location in the main build, where another 20KB of example OFW code
> isn't as important ?   Say:
>
> devalias lib int:2          # build a pointer to the library into OFW
>
> dir lib:\ofwlib\              # See what is available (anyway to avoid the dir name ?)
> fload lib:\ofwlib\serial.fth
> serial
>
> We could also move some of the existing non-essential OFW utilities there as
> SPI Flash ROM space gets tighter, such as emacs.
>
> Cheers,
> wad
>
> _______________________________________________
> Techteam mailing list
> Techteam at lists.laptop.org
> http://lists.laptop.org/listinfo/techteam
> _______________________________________________
> Engineering mailing list
> Engineering at laptop.org
> http://lists.laptop.org/listinfo/engineering


More information about the Devel mailing list