signed /boot/olpc.fth

James Cameron quozl at
Wed Oct 15 19:04:28 EDT 2014

G'day Sebastian,

Thanks for the questions.

1.  Signing a boot script

To sign a Forth boot script, rename it to data.img, sign it with your
deployment o1 key, then wrap it in, copy to, and
place on boot media.

The laptop will open (if it has a lease) or (if
there is no lease), will verify the signature, and will then execute
the script.

In the bios-crypto build tree;

./ o1 olpc.fth

This is further documented on the Wiki [1], with a couple of usage
examples [2] [3], but is possibly best described by the bios-crypto

2.  Forth menus

Yes, there is some nice simple menu code.  It uses the same
infrastructure as the diagnostics test menu [6] [7].  You can find it
in cpu/arm/olpc/bootmenu.fth from SVN 3722 [4].

The same code during development was in an olpc.fth file, before being
moved into the firmware [5].

The icon definitions can be read from USB drive, but since that path
is not signed it is best to use icons that already exist.

Other examples of the menu code can be found in the firmware source.
Let me know if you have problems with it.



James Cameron

More information about the Devel mailing list