1.\" $NetBSD: elftosb.8,v 1.4 2018/09/14 07:07:41 skrll Exp $
2.\"
3.\" Copyright (c) 2012 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25.\" POSSIBILITY OF SUCH DAMAGE.
26.\"
27.Dd November 3, 2012
28.Dt ELFTOSB 8
29.Os
30.Sh NAME
31.Nm elftosb
32.Nd generate secure boot images for Freescale processors
33.Sh SYNOPSIS
34.Nm
35.Oo Fl ?, Fl Fl help Oc
36.Oo Fl C, Fl Fl component Ar version Oc
37.Oo Fl c, Fl Fl command Ar file Oc
38.Oo Fl D, Fl Fl define Ar const Oc
39.Oo Fl d, Fl Fl debug Oc
40.Oo Fl f, Fl Fl chip-family Ar family Oc
41.Oo Fl k, Fl Fl key Ar file Oc
42.Oo Fl O, Fl Fl option Ar option Oc
43.Oo Fl o, Fl Fl output Ar file Oc
44.Oo Fl P, Fl Fl product Ar version Oc
45.Oo Fl p, Fl Fl search-path Ar path Oc
46.Oo Fl q, Fl Fl quiet Oc
47.Oo Fl V, Fl Fl verbose Oc
48.Oo Fl v, Fl Fl version Oc
49.Oo Fl z, Fl Fl zero-key Oc
50.Ar files...
51.Sh DESCRIPTION
52The
53.Nm
54program is used to create a digitaly signed secure boot (sb) file.
55This sb file can be booted by the first stage boot loader found in
56Freescale i.MX23 and i.MX28 application processors.
57One or several ELF files and optionally a key are taken as input and
58processed under the control of a command file to generate the sb file.
59.Sh SEE ALSO
60.Xr sbkeygen 8 ,
61.Xr sbtool 8
62.br
63Freescale Application Note AN4555
64.Sh COPYRIGHT
65Copyright (c) 2004-2010 Freescale Semiconductor, Inc.
66.Sh BUGS
67The
68.Nm
69program and its command file syntax are poorly documented.
70